caesarxuchao / example-webhook-admission-controller Goto Github PK
View Code? Open in Web Editor NEWAn example of Kubernetes wehbook admission extension
License: Apache License 2.0
An example of Kubernetes wehbook admission extension
License: Apache License 2.0
The issue I'm having with it is that it installs the admission controller service with a fixed clusterIP: 10.0.0.231
. In the webhook code, the address resolver will resolve the webhook to https://10.0.0.231:443
. But, this IP address is not accessible to the API server, so I don't see a request to this URL succeeding. How is this supposed to work?
Hi,
I have tried and edited the example successfully on Minikube.
Then I switched to deployment instead of specifying pod by hand and it is not working anymore, is there any specific reason why to use pod?
Thanks
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?
Hi,
There is a typo in admissionregistration. I know it is now registered via the code but somebody (like me) may find it useful. I fixed it here https://github.com/tivvit/example-webhook-admission-controller/tree/fix_admissionregistration but I cannot make the pull request to tag, so I suggest moving it to branch and then I will do the pull request.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.