From 7b7d42222682b68979498ca9f70affd952011f2b Mon Sep 17 00:00:00 2001 From: DylanGuedes Date: Mon, 5 Aug 2024 17:07:31 -0300 Subject: [PATCH] Change how we set imagePullSecrets for enterprise-gateway and admin-api. --- .../helm/loki/templates/admin-api/deployment-admin-api.yaml | 6 ++---- .../templates/gateway/deployment-gateway-enterprise.yaml | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/production/helm/loki/templates/admin-api/deployment-admin-api.yaml b/production/helm/loki/templates/admin-api/deployment-admin-api.yaml index 15391665ca776..f68f9862e41f9 100644 --- a/production/helm/loki/templates/admin-api/deployment-admin-api.yaml +++ b/production/helm/loki/templates/admin-api/deployment-admin-api.yaml @@ -65,11 +65,9 @@ spec: mountPath: {{ .Values.minio.configPathmc }}certs {{ end }} {{- end }} - {{- if .Values.imagePullSecrets }} + {{- with .Values.imagePullSecrets}} imagePullSecrets: - {{- range .Values.imagePullSecrets }} - - name: {{ . }} - {{- end }} + {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.adminApi.hostAliases }} hostAliases: diff --git a/production/helm/loki/templates/gateway/deployment-gateway-enterprise.yaml b/production/helm/loki/templates/gateway/deployment-gateway-enterprise.yaml index de8ba11058eb1..746fa6142b771 100644 --- a/production/helm/loki/templates/gateway/deployment-gateway-enterprise.yaml +++ b/production/helm/loki/templates/gateway/deployment-gateway-enterprise.yaml @@ -46,11 +46,9 @@ spec: {{- toYaml .Values.enterpriseGateway.podSecurityContext | nindent 8 }} initContainers: {{- toYaml .Values.enterpriseGateway.initContainers | nindent 8 }} - {{- if .Values.imagePullSecrets }} + {{- with .Values.imagePullSecrets }} imagePullSecrets: - {{- range .Values.imagePullSecrets }} - - name: {{ . }} - {{- end }} + {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.enterpriseGateway.hostAliases }} hostAliases: