Эх сурвалжийг харах

Bug fix for specifying env variable for ipfs chart

Waqar Ahmed 4 жил өмнө
parent
commit
f9459f88b0

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

@@ -103,10 +103,13 @@ spec:
               containerPort: 9501
             - name: gateway
               containerPort: 9880
+          {{- if .Values.environment }}
+          env:
             {{- range $key, $val := .Values.environment }}
             - name: {{ $key }}
               value: {{ $val | quote }}
             {{- end}}
+          {{- end }}
       volumes:
         - name: data
         {{- if .Values.emptyDirVolumes }}