Closed chdorb closed 2 years ago
with kubernetes cli-runtime v1.22.0, maybe too old π€ (I'm just trying to package it properly for Fedora)
@chdorb Hi, thank you for reaching out.
What I investigated:
WithDiscoveryQPS was added in https://github.com/kubernetes/cli-runtime/commit/1fc251024e45e16b945287fd7f17007cd39aeb0f and tagged as follows.
v0.24.0-alpha.1 v0.24.0-alpha.0 v0.23.2-rc.0 v0.23.1 v0.23.1-rc.0 v0.23.0 v0.23.0-rc.1 v0.23.0-rc.0 kubernetes-1.24.0-alpha.1 kubernetes-1.24.0-alpha.0 kubernetes-1.23.2-rc.0 kubernetes-1.23.1 kubernetes-1.23.1-rc.0 kubernetes-1.23.0 kubernetes-1.23.0-rc.1 kubernetes-1.23.0-rc.0
It doesn't include v1.22.0
and there is no WithDiscoveryQPS
implementation in v1.22.0.
with kubernetes cli-runtime v1.22.0, maybe too old π€
Your suggestion seems to be correct.
Will update kubectl
version work for you?
But, I am not sureπ₯²
Yes you're right, this method is available from v1.23 of kubernetes. I just wanted to package an rpm (with build and dependencies requirements available) for Fedora Linux distribution, but even in rawhide (development version), lastest package is on v1.22.0 version https://src.fedoraproject.org/rpms/golang-k8s-cli-runtime
I'll wait for building the package but it's ok to run it with the compiled release you provide. π I close this issue.
PS: thank you for this great tool, as kubectl explain
needs knowing in advance the resources name/fields and that's by default not explained ! π