Skip to content

Commit

Permalink
Replace Name with GlobalRoleName (#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonCrowther authored Jan 23, 2025
1 parent b786408 commit d255932
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (a *admitter) Admit(request *admission.Request) (*admissionv1.AdmissionResp
globalRole, err := a.grResolver.GlobalRoleCache().Get(newGRB.GlobalRoleName)
if err != nil {
if !apierrors.IsNotFound(err) {
return nil, fmt.Errorf("failed to get GlobalRole '%s': %w", newGRB.Name, err)
return nil, fmt.Errorf("failed to get GlobalRole '%s': %w", newGRB.GlobalRoleName, err)
}
fieldErr := field.NotFound(fldPath.Child("globalRoleName"), newGRB.GlobalRoleName)
return admission.ResponseBadRequest(fieldErr.Error()), nil
Expand Down

0 comments on commit d255932

Please sign in to comment.