Skip to content

Commit

Permalink
Bug 1927882: allow choice of binding type when creating RoleBinding
Browse files Browse the repository at this point in the history
Note this reverses part of changes in openshift#6035 since that change caused bug 1927882.
  • Loading branch information
rhamilto authored and openshift-cherrypick-robot committed Feb 16, 2021
1 parent 0466794 commit def5305
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions frontend/public/components/RBAC/bindings.jsx
Expand Up @@ -285,10 +285,8 @@ export const RoleBindingsPage = ({
staticFilters = undefined,
name,
kind,
createPath = `/k8s/${
namespace
? `ns/${namespace}/rolebindings/~new?namespace=${namespace}`
: `cluster/rolebindings/~new${name && kind ? `?subjectName=${name}&subjectKind=${kind}` : ''}`
createPath = `/k8s/cluster/rolebindings/~new${
name && kind ? `?subjectName=${name}&subjectKind=${kind}` : ''
}`,
}) => {
const { t } = useTranslation();
Expand Down

0 comments on commit def5305

Please sign in to comment.