From ba9ad2f768d200315d43a120678790199515e64c Mon Sep 17 00:00:00 2001 From: lbd-cloud Date: Mon, 10 Jun 2024 07:36:47 -0300 Subject: [PATCH] refac: secret array --- charts/indexer/templates/deployment.yaml | 7 +++---- charts/indexer/values.yaml | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/charts/indexer/templates/deployment.yaml b/charts/indexer/templates/deployment.yaml index 8693e13..dada746 100644 --- a/charts/indexer/templates/deployment.yaml +++ b/charts/indexer/templates/deployment.yaml @@ -19,12 +19,11 @@ spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} - {{- if .Values.imagePullSecrets }} + {{- with .Values.imagePullSecrets }} imagePullSecrets: - {{- range .Values.imagePullSecrets }} - - name: {{ .name }} - {{- end }} + {{- toYaml . | nindent 8 }} {{- end }} + containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" diff --git a/charts/indexer/values.yaml b/charts/indexer/values.yaml index b28f504..55a7843 100644 --- a/charts/indexer/values.yaml +++ b/charts/indexer/values.yaml @@ -16,8 +16,7 @@ image: tag: latest pullPolicy: IfNotPresent -imagePullSecrets: - name: "PLACEHOLDER_REGISTRY_SECRET_NAME" +imagePullSecrets: [] # Service configuration service: