diff --git a/charts/rocketmq-operator/templates/operator.yaml b/charts/rocketmq-operator/templates/operator.yaml index 42da5bb4..25e81b60 100644 --- a/charts/rocketmq-operator/templates/operator.yaml +++ b/charts/rocketmq-operator/templates/operator.yaml @@ -27,7 +27,7 @@ spec: labels: name: rocketmq-operator spec: - serviceAccountName: rocketmq-operator + serviceAccountName: {{ template "rocketmq-operator.serviceAccountName" . }} terminationGracePeriodSeconds: 10 containers: - name: manager diff --git a/deploy/operator.yaml b/deploy/operator.yaml index d8a90585..1a5463c3 100644 --- a/deploy/operator.yaml +++ b/deploy/operator.yaml @@ -27,7 +27,7 @@ spec: labels: name: rocketmq-operator spec: - serviceAccountName: rocketmq-operator + serviceAccountName: {{ template "rocketmq-operator.serviceAccountName" . }} terminationGracePeriodSeconds: 10 containers: - name: manager diff --git a/deploy/role_binding.yaml b/deploy/role_binding.yaml index f330555b..d778869d 100644 --- a/deploy/role_binding.yaml +++ b/deploy/role_binding.yaml @@ -19,7 +19,7 @@ metadata: name: rocketmq-operator subjects: - kind: ServiceAccount - name: rocketmq-operator + name: {{ template "rocketmq-operator.serviceAccountName" . }} namespace: default roleRef: kind: ClusterRole diff --git a/deploy/service_account.yaml b/deploy/service_account.yaml index 2dde8f9e..8f1a58ff 100644 --- a/deploy/service_account.yaml +++ b/deploy/service_account.yaml @@ -16,4 +16,4 @@ apiVersion: v1 kind: ServiceAccount metadata: - name: rocketmq-operator + name: {{ template "rocketmq-operator.serviceAccountName" . }}