admission-control: fix error message formatting

Signed-off-by: Mikalai Radchuk <radchuk.m@gmail.com>
This commit is contained in:
Mikalai Radchuk 2024-05-01 14:19:03 +02:00
parent b041e54e70
commit 80b5dcc1df

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