Explorar o código

Properly render environment variable

Waqar Ahmed %!s(int64=4) %!d(string=hai) anos
pai
achega
51d5e88952
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      test/ipfs/1.0.1/templates/deployment.yaml

+ 3 - 3
test/ipfs/1.0.1/templates/deployment.yaml

@@ -105,9 +105,9 @@ spec:
               containerPort: 9880
           {{- if .Values.environment }}
           env:
-            {{- range $key, $val := .Values.environment }}
-            - name: {{ $key }}
-              value: {{ $val | quote }}
+            {{- range $envVariable := .Values.environment }}
+            - name: {{ $envVariable.name }}
+              value: {{ $envVariable.value | quote }}
             {{- end}}
           {{- end }}
       volumes: