Skip to content

Kubernetes Admission Webhooks example for both validation and mutation.

Notifications You must be signed in to change notification settings

sedooe/admission-webhooks-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

admission-webhooks-example

Injects organization and project labels with MutatingWebhook and validates that there is no change on these labels with ValidatingWebhook.

Use ngrok for the ease of development.

  • dep ensure
  • ngrok http 8080
  • Replace the ngrok url in the resource files with yours.
  • kubectl apply -f .
  • go build && go run *.go

About

Kubernetes Admission Webhooks example for both validation and mutation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages