File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
helm/supersonic/templates/envoy Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
223223apiVersion : v1
You can’t perform that action at this time.
0 commit comments