caesarxuchao / example-webhook-admission-controller

An example of Kubernetes wehbook admission extension
Apache License 2.0
52 stars 34 forks source link

can't make docker image #1

Open mahzoun opened 7 years ago

mahzoun commented 7 years ago

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?

caesarxuchao commented 7 years ago

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?

mahzoun commented 7 years ago

The problem was with the CI, the base image that I tried to create my image on it had problems.