Skip to content

Commit 958e8d2

Browse files
committed
fix undefined variable
1 parent 4f71d54 commit 958e8d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

helm/supersonic/templates/envoy/configmaps.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ static_resources:
183183
{{- /* Begin iterating over servers */}}
184184
{{- if .Values.envoy.enabled }}
185185

186+
{{- /* Initialize envoyContext variable */}}
187+
{{- $envoyContext := dict }}
188+
186189
{{- if not .Values.envoy.external_config.load_from_configmap }}
187190
{{- /* Only prepare dynamic configuration context when not using external config */}}
188191
{{- /* Define variables for ports */}}
@@ -205,7 +208,7 @@ static_resources:
205208
{{- $tritonName := include "supersonic.tritonName" . }}
206209

207210
{{- /* Create a context to pass to the template */}}
208-
{{- $envoyContext := dict
211+
{{- $envoyContext = dict
209212
"envoyAdminPort" $envoyAdminPort
210213
"envoyGrpcPort" $envoyGrpcPort
211214
"tritonGrpcPort" $tritonGrpcPort
@@ -215,9 +218,6 @@ static_resources:
215218
"tritonName" $tritonName
216219
"root" .
217220
}}
218-
{{- else }}
219-
{{- /* Create empty context for external config case to avoid undefined variable errors */}}
220-
{{- $envoyContext := dict }}
221221
{{- end }}
222222

223223
apiVersion: v1

0 commit comments

Comments
 (0)