Comments (3)
I don't think you've found a bug here, I think you're stubbing your toe on a planned Kubernetes deprecation. Looking at the pure K8s client Deployment object in the debugger (V1Deployment), it also shows a None for self_link (which Hikaru knows to map to selfLink), so Hikaru isn't being handed anything useful on my testbed.
Further, this Kubernetes issue from Jul 2019, kubernetes/enhancements#1164, says that selfLink is to be deprecated. It's unclear as to the timing of that, but the availability of the field is probably dependent on the version of the server you're running, and perhaps the version of the underlying K8s Python client. My k3s infra says it's following 1.20 which is well in the range where the field would no longer be provided. Even if it was previously populated it sounds like it's a bad idea to rely on it since it's targeted for deprecation. I'll leave this open until I hear back from you, but my inclination is to close this issue.
from hikaru.
I'll close this tomorrow unless I hear otherwise.
from hikaru.
Hi, you can close this. You're correct about the deprecation. I can confirm on my own cluster that selfLink
no longer exists by running kubectl get deployment -o yaml
.
As an aside, here is what tripped me up: When I originally opened this issue I first verified that selfLink
existed on my cluster and was only missing from Hikaru... But I performed the check using the Lens client and apparently Lens is patching in selfLink
even when it doesn't exist on the API Server. See https://github.com/lensapp/lens/pull/1804/files
from hikaru.
Related Issues (20)
- Wrong object type created despite calling hikaru.register_version_kind_class HOT 5
- Black maybe better be a dev dependency HOT 5
- Node from_dict fails on required field port (in DeamonEndpoint) HOT 3
- List methods aren't assigned to classes consistently HOT 4
- convert underscore to dash implicitely in _clean_dict may introduce in un-expected labels HOT 5
- Hikaru functions should return a specific type HOT 3
- support for auto-generation HOT 4
- VolumeSnapshot missing HOT 11
- deserialize/serialize yaml preserving comments and formatting HOT 1
- Support for Argo Workflows? HOT 4
- Support for K8s v1.25 HOT 5
- Unpin Black version HOT 2
- PodStatus's podIP and hostIP attributes are not set on readNamespacedPod(...) HOT 3
- Import errors HOT 2
- Full correctness checking of objects HOT 1
- Kubernetes 409 when updating CRD with context manager HOT 4
- Errors importing Pod from hikaru on latest version HOT 3
- Missing fields in Pod.spec.containers[*].livenessProbe HOT 8
- Update tests for newer version of pytest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hikaru.