Skip to content

Commit

Permalink
Fix RBAC: Unique name for ClusterRoleBinding when running on shared c…
Browse files Browse the repository at this point in the history
…luster (istio#1238)
  • Loading branch information
andraxylia authored Sep 11, 2017
1 parent 5ca1648 commit e11934b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pilot/test/integration/testdata/rbac-beta.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ rules:
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: istio-pilot-admin-role-binding
name: istio-pilot-admin-role-binding-{{.IstioNamespace}}
subjects:
- kind: ServiceAccount
name: istio-pilot-service-account
Expand All @@ -74,7 +74,7 @@ roleRef:
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: istio-ca-role-binding
name: istio-ca-role-binding-{{.IstioNamespace}}
subjects:
- kind: ServiceAccount
name: istio-ca-service-account
Expand All @@ -88,7 +88,7 @@ roleRef:
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: istio-mixer-role-binding
name: istio-mixer-role-binding-{{.IstioNamespace}}
subjects:
- kind: ServiceAccount
name: istio-mixer-service-account
Expand All @@ -102,7 +102,7 @@ roleRef:
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: istio-ingress-admin-role-binding
name: istio-ingress-admin-role-binding-{{.IstioNamespace}}
subjects:
- kind: ServiceAccount
name: istio-ingress-service-account
Expand All @@ -116,7 +116,7 @@ roleRef:
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: istio-egress-admin-role-binding
name: istio-egress-admin-role-binding-{{.IstioNamespace}}
subjects:
- kind: ServiceAccount
name: istio-egress-service-account
Expand All @@ -130,7 +130,7 @@ roleRef:
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: istio-sidecar-initializer-admin-role-binding
name: istio-sidecar-initializer-admin-role-binding-{{.IstioNamespace}}
subjects:
- kind: ServiceAccount
name: istio-sidecar-initializer-service-account
Expand Down

0 comments on commit e11934b

Please sign in to comment.