소스 검색

Properly render environment variable

Waqar Ahmed 4 년 전
부모
커밋
51d5e88952
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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: