diff --git a/helm/litellm-helm/templates/tests/test-env-vars.yaml b/helm/litellm-helm/templates/tests/test-env-vars.yaml index 9f0277557a4..19be9a0b4eb 100644 --- a/helm/litellm-helm/templates/tests/test-env-vars.yaml +++ b/helm/litellm-helm/templates/tests/test-env-vars.yaml @@ -1,3 +1,5 @@ +{{- $envVars := .Values.envVars | default dict }} +{{- if and $envVars.DD_ENV $envVars.DD_SERVICE $envVars.USE_DDTRACE }} apiVersion: v1 kind: Pod metadata: @@ -40,4 +42,5 @@ spec: value: {{ .Values.envVars.DD_SERVICE | quote }} - name: USE_DDTRACE value: {{ .Values.envVars.USE_DDTRACE | quote }} - restartPolicy: Never \ No newline at end of file + restartPolicy: Never +{{- end -}} \ No newline at end of file