Git Product home page Git Product logo

Comments (3)

haxsaw avatar haxsaw commented on June 14, 2024

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.

haxsaw avatar haxsaw commented on June 14, 2024

I'll close this tomorrow unless I hear otherwise.

from hikaru.

aantn avatar aantn commented on June 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.