Skip to content

Latest commit

 

History

History
14 lines (7 loc) · 505 Bytes

README.md

File metadata and controls

14 lines (7 loc) · 505 Bytes

k8s-webhook

Sample webhook project using controller runtime

kubebuilder init --domain deven01.webhooks.io --skip-go-version-check

kubebuilder create api --group core --version v1 --kind Pod --resource=false --controller=false

kubebuilder create webhook --group core --version v1 --kind Pod --programmatic-validation --defaulting

https://kubebuilder.io/reference/webhook-for-core-types.html

go run main.go -metrics-bind-address :8084 -health-probe-bind-address :8087 -kubeconfig