mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +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
|
return err
|
||||||
}
|
}
|
||||||
if d != authorizer.DecisionAllow {
|
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
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user