Skip to content

Commit

Permalink
Cluster role binding name needs to be unique.
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamDumpleton committed May 10, 2022
1 parent 04715df commit 0236c49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions session-manager/handlers/application_vcluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def vcluster_session_objects_list(application_properties):
"apiVersion": "rbac.authorization.k8s.io/v1",
"kind": "RoleBinding",
"metadata": {
"name": "my-vcluster-local",
"name": "my-vcluster",
"namespace": "$(session_namespace)-vc",
},
"subjects": [
Expand All @@ -167,7 +167,7 @@ def vcluster_session_objects_list(application_properties):
"apiVersion": "rbac.authorization.k8s.io/v1",
"kind": "ClusterRoleBinding",
"metadata": {
"name": "my-vcluster-global",
"name": "my-vcluster-$(session_namespace)-vc",
"namespace": "$(session_namespace)-vc",
},
"subjects": [
Expand Down

0 comments on commit 0236c49

Please sign in to comment.