kubelet-rubber-stamp icon indicating copy to clipboard operation
kubelet-rubber-stamp copied to clipboard

kubelet-rubber-stamp is incompatible with K8s v1.22

Open shosti opened this issue 3 years ago • 3 comments

Since upgrading a cluster to v1.22, kubelet-rubber-stamp gets into a crash loop with errors like the following:

I0814 01:45:21.588169       1 main.go:19] Go Version: go1.11.13
I0814 01:45:21.588208       1 main.go:20] Go OS/Arch: linux/amd64
I0814 01:45:21.588217       1 main.go:21] operator-sdk Version: v0.4.0
I0814 01:45:23.097597       1 main.go:49] Registering Components.
I0814 01:45:23.100022       1 main.go:61] Starting the Cmd.
F0814 01:45:26.095171       1 main.go:64] no matches for kind "CertificateSigningRequest" in version "certificates.k8s.io/v1beta1"

Presumably this is because the beta APIs have been removed and need to be replaced with the v1 APIs.

shosti avatar Aug 14 '21 01:08 shosti

getting the same error, I think it is because of client-go version. I tried updating client-go module version manually but the build is failing because of dependency. Somebody can suggest the versions in sync for the following modules github.com/operator-framework/operator-sdk ? k8s.io/api v0.22.0-rc.0 k8s.io/apimachinery v0.22.0-rc.0 k8s.io/client-go v0.22.0-rc.0 k8s.io/klog v1.0.0 sigs.k8s.io/controller-runtime ?

roylkng avatar Aug 18 '21 05:08 roylkng

Any chance of getting #41 merged anytime soon? Or would another solution be preferred?

sdlarsen avatar Aug 25 '21 07:08 sdlarsen

maybe this other project I wrote is worth checking? https://github.com/postfinance/kubelet-csr-approver should provide the same functionality with more secure checks than this project. feedback on this welcome :)

clementnuss avatar Nov 25 '21 13:11 clementnuss