Skip to content
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

Error validating data: unknown field "webHooks" #6

Open
andyrhee opened this issue May 1, 2018 · 1 comment
Open

Error validating data: unknown field "webHooks" #6

andyrhee opened this issue May 1, 2018 · 1 comment

Comments

@andyrhee
Copy link

andyrhee commented May 1, 2018

When I run the following, I get the error:

$ kubectl apply -f kubernetes/validating-webhook-configuration.yaml
error: error validating "kubernetes/validating-webhook-configuration.yaml": error validating data: ValidationError(ValidatingWebhookConfiguration): unknown field "webHooks" in io.k8s.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration; if you choose to ignore these errors, turn validation off with --validate=false

This can be fixed simply by changing webHooks to webhooks:

$ git diff
diff --git a/kubernetes/validating-webhook-configuration.yaml b/kubernetes/validating-webhook-configuration.yaml
index 886ea73..1a716fb 100644
--- a/kubernetes/validating-webhook-configuration.yaml
+++ b/kubernetes/validating-webhook-configuration.yaml
@@ -2,7 +2,7 @@ apiVersion: admissionregistration.k8s.io/v1beta1
 kind: ValidatingWebhookConfiguration
 metadata:
   name: image-signature-webook
-webHooks:
+webhooks:
   - name: image-signature.hightowerlabs.com
     rules:
       - apiGroups:

My kubectl version:

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"9+", GitVersion:"v1.9.2-eks.1", GitCommit:"e6c42d312ce5a80461ce10e6543e8fe0346bf065", GitTreeState:"clean", BuildDate:"2018-02-16T21:41:28Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.3", GitCommit:"d2835416544f298c919e2ead3be3d0864b52323b", GitTreeState:"clean", BuildDate:"2018-02-07T11:55:20Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}

I can submit a PR if you want me to, but this is a simple fix so...

@jomojowo
Copy link

Hi Andyrhee,

Were you able to get grafeas and webhook validation working?
Am issues getting it working.
validating not working for me. kindly, assist if you can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants