example-webhook-admission-controller
example-webhook-admission-controller copied to clipboard
can't make docker image
I get this when i try to run make:
Step 5 : RUN go install github.com/caesarxuchao/example-webhook-admission-controller
---> Running in 3bc033d3ffdd
# github.com/caesarxuchao/example-webhook-admission-controller
github.com/caesarxuchao/example-webhook-admission-controller/config.go:89: undefined: "github.com/caesarxuchao/example-webhook-admission-controller/vendor/k8s.io/client-go/kubernetes/typed/admissionregistration/v1alpha1".ExternalAdmissionHookConfiguration
The command '/bin/sh -c go install github.com/caesarxuchao/example-webhook-admission-controller' returned a non-zero code: 2
make: *** [all] Error 2
what should i do?
Did you remove the vendor directory? Anyway, could you try again with the latest example, on a v1.9.0-alpha.1 or v1.8.0 Kuberentes cluster?
The problem was with the CI, the base image that I tried to create my image on it had problems.