mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
admission-control: fix error message formatting
Signed-off-by: Mikalai Radchuk <radchuk.m@gmail.com>
This commit is contained in:
parent
b041e54e70
commit
80b5dcc1df
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user