diff --git a/templates/clusterrole-binding.yaml b/templates/role-binding.yaml similarity index 90% rename from templates/clusterrole-binding.yaml rename to templates/role-binding.yaml index a08acd0..2bbd293 100644 --- a/templates/clusterrole-binding.yaml +++ b/templates/role-binding.yaml @@ -1,6 +1,6 @@ {{- if .Values.serviceAccount.create -}} apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding +kind: RoleBinding metadata: name: {{ include "minecluster.serviceAccountName" . }} subjects: @@ -8,7 +8,7 @@ subjects: name: {{ include "minecluster.serviceAccountName" . }} namespace: {{ .Values.mcl.deploymentNamespace | default .Release.Namespace }} roleRef: - kind: ClusterRole + kind: Role name: {{ include "minecluster.serviceAccountName" . }} apiGroup: rbac.authorization.k8s.io {{- end }} diff --git a/templates/clusterrole.yaml b/templates/role.yaml similarity index 97% rename from templates/clusterrole.yaml rename to templates/role.yaml index e5e877a..cccb8dd 100644 --- a/templates/clusterrole.yaml +++ b/templates/role.yaml @@ -1,6 +1,6 @@ {{- if .Values.serviceAccount.create -}} apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole +kind: Role metadata: name: {{ include "minecluster.serviceAccountName" . }} rules: