Skip to content

Instantly share code, notes, and snippets.

@YurgenUA
Created May 25, 2025 21:13
Show Gist options
  • Save YurgenUA/789397a8df53b91d137ad1c7275dad72 to your computer and use it in GitHub Desktop.
Save YurgenUA/789397a8df53b91d137ad1c7275dad72 to your computer and use it in GitHub Desktop.
...
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