Skip to content

Commit

Permalink
Merge pull request #12921 from Mylanos/OCPBUGS-15060-Duplicate-RoleBi…
Browse files Browse the repository at this point in the history
…nding-leads-to-Unsupported-value-error

OCPBUGS-15060: "Duplicate RoleBinding" leads to "Unsupported value" error
  • Loading branch information
openshift-merge-robot committed Jun 26, 2023
2 parents 61345a0 + cfc076a commit 682e009
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/public/components/RBAC/bindings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -455,9 +455,10 @@ class BaseEditRoleBindingWithTranslation extends React.Component {
},
subjects: [
{
apiGroup: 'rbac.authorization.k8s.io',
kind: subjectKind || 'User',
name: subjectName || '',
apiGroup:
subjectKind === 'ServiceAccount' || !subjectKind ? '' : 'rbac.authorization.k8s.io',
},
],
});
Expand Down

0 comments on commit 682e009

Please sign in to comment.