Skip to content

Commit

Permalink
Use Namespaced scope for ClusterAuthToken validator (#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmatseykanets authored Oct 16, 2024
1 parent 7faaa62 commit 8d0a593
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (v *Validator) Operations() []admissionregistrationv1.OperationType {
// ValidatingWebhook returns the ValidatingWebhook.
func (v *Validator) ValidatingWebhook(clientConfig admissionregistrationv1.WebhookClientConfig) []admissionregistrationv1.ValidatingWebhook {
return []admissionregistrationv1.ValidatingWebhook{
*admission.NewDefaultValidatingWebhook(v, clientConfig, admissionregistrationv1.ClusterScope, v.Operations()),
*admission.NewDefaultValidatingWebhook(v, clientConfig, admissionregistrationv1.NamespacedScope, v.Operations()),
}
}

Expand Down

0 comments on commit 8d0a593

Please sign in to comment.