mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Merge pull request #124653 from m1kola/fix_error_message
admission-control: fix error message formatting
This commit is contained in:
commit
b36ddbb372
@ -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