Last active
April 5, 2021 19:38
-
-
Save developer-guy/9c3b3ba038dc2dd0064d8bdb4023a812 to your computer and use it in GitHub Desktop.
register webhook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pv := v1.NewPodValidator(mgr.GetClient()) | |
mgr.GetWebhookServer().Register("/validate-core-v1-pod", &webhook.Admission{Handler: pv}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment