From bc94c1816a1cccce0f4ebc64778491cc70c9c073 Mon Sep 17 00:00:00 2001 From: Juewei Dong Date: Wed, 3 Apr 2024 22:40:22 -0400 Subject: [PATCH 1/2] Add `imagePullSecrets` to operator helm chart SA --- charts/rocketmq-operator/templates/serviceaccount.yaml | 8 +++++++- charts/rocketmq-operator/values.yaml | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/rocketmq-operator/templates/serviceaccount.yaml b/charts/rocketmq-operator/templates/serviceaccount.yaml index 6527f6ab..87d71b42 100644 --- a/charts/rocketmq-operator/templates/serviceaccount.yaml +++ b/charts/rocketmq-operator/templates/serviceaccount.yaml @@ -5,4 +5,10 @@ metadata: labels: {{- include "rocketmq-operator.labels" . | nindent 4 }} annotations: - {{- toYaml .Values.rocketmqOperator.serviceAccount.annotations | nindent 4 }} \ No newline at end of file + {{- toYaml .Values.rocketmqOperator.serviceAccount.annotations | nindent 4 }} +{{- with .Values.rocketmqOperator.serviceAccount.imagePullSecrets }} +imagePullSecrets: +{{- range . }} + - name: {{ .name }} +{{- end }} +{{- end }} \ No newline at end of file diff --git a/charts/rocketmq-operator/values.yaml b/charts/rocketmq-operator/values.yaml index 0ed3555a..6fd97a93 100644 --- a/charts/rocketmq-operator/values.yaml +++ b/charts/rocketmq-operator/values.yaml @@ -14,3 +14,4 @@ rocketmqOperator: replicas: 1 serviceAccount: annotations: {} + imagePullSecrets: [] From ef652f8a0788d4f483e7f8006a398298ea9508d8 Mon Sep 17 00:00:00 2001 From: Juewei Dong Date: Thu, 4 Apr 2024 00:18:15 -0400 Subject: [PATCH 2/2] fix: add mising new line --- charts/rocketmq-operator/templates/serviceaccount.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/rocketmq-operator/templates/serviceaccount.yaml b/charts/rocketmq-operator/templates/serviceaccount.yaml index 87d71b42..ab5f13ed 100644 --- a/charts/rocketmq-operator/templates/serviceaccount.yaml +++ b/charts/rocketmq-operator/templates/serviceaccount.yaml @@ -11,4 +11,4 @@ imagePullSecrets: {{- range . }} - name: {{ .name }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }}