-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(k8s): Update Kubernetes client-go to latest 1.26 release #250
Conversation
v0.26.1 is the latest release for the latest maintained version of Kubernetes.
`$ go get k8s.io/apiextensions-apiserver@release-1.26`.
The fake client now requires additional data to fully represent what a real client provides (namely, the List kind).
Some in cluster testing. Without RBAC permissions:
With RBAC permissions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still need to solve for #214
@@ -212,7 +212,7 @@ func stopUnwantedCrdInformers(existing map[crdGroupVersionResourceKind]*crdInfor | |||
} | |||
|
|||
func getCrdList(crdClient clientset.Interface) ([]crdGroupVersionResourceKind, error) { | |||
crdList, err := crdClient.ApiextensionsV1().CustomResourceDefinitions().List(metav1.ListOptions{}) | |||
crdList, err := crdClient.ApiextensionsV1().CustomResourceDefinitions().List(context.TODO(), metav1.ListOptions{}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have an existing ctx
to use so we can use context.TODO()
to keep existing behaviour.
Tested on 1.22.15 and 1.26.0 with https://kind.sigs.k8s.io/