kelseyhightower / grafeas-tutorial

A step by step guide for getting started with Grafeas and Kubernetes.
Apache License 2.0
190 stars 45 forks source link

Issue on admission-hook-configuration.yaml #5

Closed elangoc closed 6 years ago

elangoc commented 6 years ago

Hi, I am getting below error while executing "kubectl apply -f kubernetes/admission-hook-configuration.yaml" to create the image-signature-webook. Please let me the fix if you have. Thanks.

kubectl apply -f kubernetes/admission-hook-configuration.yaml --validate=false

error: unable to recognize "kubernetes/admission-hook-configuration.yaml": no matches for admissionregistration.k8s.io/, Kind=ExternalAdmissionHookConfiguration

~Elango

kelseyhightower commented 6 years ago

This is now fixed on master and has been update to use the new Validating Admission Webhooks: https://kubernetes.io/docs/admin/admission-controllers/#validatingadmissionwebhook-alpha-in-18-beta-in-19

dragondscv commented 6 years ago

Hi, is there a document about the spec of ValidatingWebhookConfiguration? I tried to upgrade to 1.9 and the external admission hook broke. error: error validating "/etc/k8s/admission-hook-config.yaml": error validating data: ValidationError(ValidatingWebhookConfiguration): unknown field "externalAdmissionHooks" in io.k8s.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration; if you choose to ignore these errors, turn validation off with --validate=false

Is there a way to use GenericAdmissionWebhook in 1.9? I checked the documentation and it's still refering to GenericAdmissionWebhook: GenericAdmissionWebhook