gardener / kupid

Inject scheduling criteria into target pods orthogonally by policy definition.
Apache License 2.0
11 stars 19 forks source link

Migrate apiVersions for Webhook and CRD resources as supported with k8s v1.22+ #36

Closed ashwani2k closed 2 years ago

ashwani2k commented 2 years ago

What this PR does / why we need it:

Kubernetes v1.22 release stopped serving the following deprecated API versions:

  1. Webhook The admissionregistration.k8s.io/v1beta1 API version of MutatingWebhookConfiguration and ValidatingWebhookConfiguration is no longer served as of v1.22.

  2. CustomResourceDefinition The apiextensions.k8s.io/v1beta1 API version of CustomResourceDefinition is no longer served as of v1.22.

This PR migrates -

Which issue(s) this PR fixes: Fixes #32

Special notes for your reviewer: Tested with a local seed on 1.21.8 as well as an upgrade to the seed to v1.22+.

Release note:

Migrated the manifests and clients to use the  `admissionregistration.k8s.io/v1`  and  `admissionregistration.k8s.io/v1`  as supported from k8s v1.22 onwards. 
Please ensure to update your deployment to Kupid `v0.2.0` on your garden cluster before creating a seed with k8s v1.22 or higher.