瀏覽代碼

Bug fix for specifying env variable for ipfs chart

Waqar Ahmed 4 年之前
父節點
當前提交
f9459f88b0
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      test/ipfs/1.0.1/templates/deployment.yaml

+ 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 }}