Created
May 25, 2025 21:13
-
-
Save YurgenUA/789397a8df53b91d137ad1c7275dad72 to your computer and use it in GitHub Desktop.
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
... | |
if os.Getenv("ENABLE_WEBHOOKS") != "false" { | |
... | |
// Register admission webhook handler | |
mgr.GetWebhookServer().Register("/validate-v1-pod", &webhook.Admission{ | |
Handler: &webhookquotav1alpha1.PodValidator{ | |
Client: mgr.GetClient(), | |
CfgMapNamespace: "playground", | |
CfgMapName: "client-quotas", | |
}, | |
}) | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment