Merge pull request #124653 from m1kola/fix_error_message

admission-control: fix error message formatting
This commit is contained in:
Kubernetes Prow Robot 2024-05-08 10:15:54 -07:00 committed by GitHub
commit b36ddbb372
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -110,7 +110,7 @@ func (v *validatingAdmissionPolicyBindingStrategy) authorize(ctx context.Context
return err
}
if d != authorizer.DecisionAllow {
return fmt.Errorf(`user %v does not have "%v" permission on the object referenced by paramRef`, verb, user)
return fmt.Errorf(`user %v does not have "%v" permission on the object referenced by paramRef`, user, verb)
}
return nil