Skip to content

How do I determine if an admission webhook request is dryRun? #4198

Closed Answered by detro
detro asked this question in Support
Discussion options

You must be logged in to vote

Neeeevermind, I found it: https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/webhook/admission#RequestFromContext

Sorry for the noise.

Maybe we should add this to the documentation though, as the default setup for the defaulter webhook that Kubebuilder puts in place is NonOnDryRun.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by detro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
1 participant