From f9459f88b0d52efb502572269960f1c1aacefb03 Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Thu, 28 Jan 2021 00:42:12 +0500 Subject: [PATCH] Bug fix for specifying env variable for ipfs chart --- test/ipfs/1.0.1/templates/deployment.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/ipfs/1.0.1/templates/deployment.yaml b/test/ipfs/1.0.1/templates/deployment.yaml index fed49db153..baa21dcc30 100644 --- a/test/ipfs/1.0.1/templates/deployment.yaml +++ b/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 }}