You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a developer writing defaulting and validating webhooks I would like to have access to the admission.Request without having to write an entire admission.Handler.
Our specific use case in Cluster API is that we want to validate an object on update depending on if the admission request is a dryrun.
Other use cases:
Leverage request.UserInfo to block requests
Possible solution:
Expose admission.Request in the context.Context passed into the Default/Validate funcs in the CustomDefaulter/CustomValidator (and a corresponding util func to read it from there)
Idea is to avoid changing the Validator/CustomValidator Defaulter/CustomValidator again / introducing new ones
The text was updated successfully, but these errors were encountered:
As a developer writing defaulting and validating webhooks I would like to have access to the
admission.Request
without having to write an entireadmission.Handler
.Our specific use case in Cluster API is that we want to validate an object on update depending on if the admission request is a dryrun.
Other use cases:
request.UserInfo
to block requestsPossible solution:
admission.Request
in thecontext.Context
passed into the Default/Validate funcs in theCustomDefaulter
/CustomValidator
(and a corresponding util func to read it from there)The text was updated successfully, but these errors were encountered: