From e052d5a7b5efa12480a0a328bac527e1cd18e586 Mon Sep 17 00:00:00 2001 From: Micah Wylde Date: Wed, 18 Dec 2024 14:18:51 -0800 Subject: [PATCH] Fix helm chart when no env vars are specified (#812) --- k8s/arroyo/templates/controller.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/k8s/arroyo/templates/controller.yaml b/k8s/arroyo/templates/controller.yaml index c906b1017..2f621e9b2 100644 --- a/k8s/arroyo/templates/controller.yaml +++ b/k8s/arroyo/templates/controller.yaml @@ -66,7 +66,9 @@ spec: key: password {{- end }} + {{ if .Values.env }} {{- include "tplvalues.render" (dict "value" .Values.env "context" $) | nindent 10 }} + {{ end }} containers: - name: arroyo-controller securityContext: @@ -99,7 +101,9 @@ spec: fieldRef: fieldPath: metadata.uid + {{ if .Values.env }} {{- include "tplvalues.render" (dict "value" .Values.env "context" $) | nindent 8 }} + {{ end }} ports: - containerPort: {{ .Values.controller.service.grpcPort }}