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
Upgrade k8s.io/* to v0.23, sigs.k8s.io/controller-runtime to v0.11 #5282
Comments
/assign @acumino |
@acumino The API server metrics added in kubernetes/kubernetes#104983 look amazingly useful to me.
|
@timebertt I was checking on this To use But in g/g |
Thanks for checking the details. Regarding gardener/pkg/seedadmissioncontroller/webhooks/admission/extensionresources/admission.go Lines 51 to 60 in 2beb979
I think, this would greatly benefit from it in terms of readability and minimize custom coding. Basically we can drop this code here in favor of reusing the upstream implementation: gardener/pkg/seedadmissioncontroller/webhooks/admission/extensionresources/admission.go Lines 182 to 281 in 2beb979
|
In case of |
Hmm, the current approach does have quite some custom coding, see the second code block I referenced. Basically half the file can be dropped by reusing upstream implementations. |
The implementation will be mostly easy only. But I feel, we are not going to have many benefits from it, I can open a PR in the coming days, and then we can look if we want the newer way. |
One more hurdle which I missed previously is that the |
@timebertt Can you take a look here? |
You can call
Then you don't need to change the validation code and can simply call it in the CustomValidator implementation.
|
/close |
@acumino: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
How to categorize this issue?
What would you like to be added:
We should upgrade to the latest versions of our go upstream dependencies:
sigs.k8s.io/controller-runtime@v0.11.x
: https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.11.0k8s.io/*@v0.23.x
sigs.k8s.io/controller-tools@v0.8.x
: https://github.com/kubernetes-sigs/controller-tools/releases/tag/v0.8.0Important changes / Action items
Here is a list of a few upstream changes to look out for when vendoring g/g, k/* and c-r in any of our repos (e.g. extensions). Please consider the release notes of controller-runtime@v0.11.0 and upwards as well for a more complete list and more details.
ℹ️ other changes / good to know / for information only:
drop managed fields from audit entries kubernetes/kubernetes#94986 A new field
omitManagedFields
has been added to bothaudit.Policy
andaudit.PolicyRule
so cluster operators can opt in to omit managed fields of the request and response bodies from being written to the API audit log.Try yet again to add metrics about LIST handling kubernetes/kubernetes#104983 kube-apiserver's Prometheus metrics have been extended
Add pod os field kubernetes/kubernetes#104693 Introduce OS field in the Pod Spec
✨ Allow webhooks to register custom validators/defaulter types kubernetes-sigs/controller-runtime#1676
extensionresources
webhook (webhook calling validation code for extension resources) withbuilder.WebhookBuilder.WithValidator
➡️ Use Custom Validator of c-r for webhook #5782Fix workqueue memory leak kubernetes/kubernetes#104991 included in 1.23 might solve gardenlet leaks memory #4609
The text was updated successfully, but these errors were encountered: