admission-controller-webhook-demo icon indicating copy to clipboard operation
admission-controller-webhook-demo copied to clipboard

Does not working with v1.23

Open Tej-Singh-Rana opened this issue 3 years ago • 2 comments

I tested out with the Kubernetes version 1.23 and didn't work. Could you please check this? Note: - MutatingWebhookConfiguration API version has been changed "admissionregistration.k8s.io/v1beta1" to "admissionregistration.k8s.io/v1".

Regards,

Tej-Singh-Rana avatar May 06 '22 20:05 Tej-Singh-Rana

Hi @Tej-Singh-Rana, You need to change the manifest of MutatingWebhookConfiguration to be apiVersion: admissionregistration.k8s.io/v1 and admissionReviewVersions to be v1. The new K8s versions are using admissionregistration.k8s.io/v1 and not the beta one.

Can you please share if creating all the resources together worked fine? I am facing a problem where the pod and deployment are stuck if I create the Deployment, Service and webhook together and not separated

TzlilSwimmer123 avatar May 08 '22 17:05 TzlilSwimmer123

Hi @TzlilSwimmer123 , Yeah, it worked after changing the api version admissionregistration.k8s.io/v1beta1 to admissionregistration.k8s.io/v1 and admissionReviewVersions: ["v1", "v1beta1"] to admissionReviewVersions: ["v1beta1"].

Regards,

Tej-Singh-Rana avatar May 14 '22 16:05 Tej-Singh-Rana