From 0b8202f90112522727f1aae04adb153f2e26373b Mon Sep 17 00:00:00 2001 From: Vladimir Smagin <21h@blindage.org> Date: Fri, 5 Jun 2020 01:23:42 +0700 Subject: [PATCH] helm --- deploy/helm_chart/templates/clusterrole.yaml | 2 +- deploy/helm_chart/templates/clusterrole_binding.yaml | 4 ++-- deploy/helm_chart/templates/role.yaml | 2 +- deploy/helm_chart/templates/role_binding.yaml | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/deploy/helm_chart/templates/clusterrole.yaml b/deploy/helm_chart/templates/clusterrole.yaml index 55791a9..d5b8edd 100644 --- a/deploy/helm_chart/templates/clusterrole.yaml +++ b/deploy/helm_chart/templates/clusterrole.yaml @@ -3,7 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: creationTimestamp: null - name: redis-operator + name: {{ include "redis-operator.serviceAccountName" . }} rules: - apiGroups: - "" diff --git a/deploy/helm_chart/templates/clusterrole_binding.yaml b/deploy/helm_chart/templates/clusterrole_binding.yaml index 45d3a98..f71bf24 100644 --- a/deploy/helm_chart/templates/clusterrole_binding.yaml +++ b/deploy/helm_chart/templates/clusterrole_binding.yaml @@ -2,7 +2,7 @@ kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: - name: redis-operator + name: {{ include "redis-operator.serviceAccountName" . }} subjects: - kind: ServiceAccount name: {{ include "redis-operator.serviceAccountName" . }} @@ -13,6 +13,6 @@ subjects: {{ end }} roleRef: kind: ClusterRole - name: redis-operator + name: {{ include "redis-operator.serviceAccountName" . }} apiGroup: rbac.authorization.k8s.io {{- end }} \ No newline at end of file diff --git a/deploy/helm_chart/templates/role.yaml b/deploy/helm_chart/templates/role.yaml index 232b0f0..3c9842a 100644 --- a/deploy/helm_chart/templates/role.yaml +++ b/deploy/helm_chart/templates/role.yaml @@ -3,7 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: creationTimestamp: null - name: redis-operator + name: {{ include "redis-operator.serviceAccountName" . }} {{ if .Values.watchNamespace }} namespace: "{{ .Values.watchNamespace }}" {{ else }} diff --git a/deploy/helm_chart/templates/role_binding.yaml b/deploy/helm_chart/templates/role_binding.yaml index a854e6a..e0b993d 100644 --- a/deploy/helm_chart/templates/role_binding.yaml +++ b/deploy/helm_chart/templates/role_binding.yaml @@ -2,7 +2,7 @@ kind: RoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: - name: redis-operator + name: {{ include "redis-operator.serviceAccountName" . }} {{ if .Values.watchNamespace }} namespace: "{{ .Values.watchNamespace }}" {{ else }} @@ -13,6 +13,6 @@ subjects: name: {{ include "redis-operator.serviceAccountName" . }} roleRef: kind: Role - name: redis-operator + name: {{ include "redis-operator.serviceAccountName" . }} apiGroup: rbac.authorization.k8s.io {{- end }} \ No newline at end of file