From 51d5e88952cf7f43c1a5a3841bdeffd03505f692 Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Thu, 28 Jan 2021 00:49:44 +0500 Subject: [PATCH] Properly render environment variable --- test/ipfs/1.0.1/templates/deployment.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/ipfs/1.0.1/templates/deployment.yaml b/test/ipfs/1.0.1/templates/deployment.yaml index baa21dcc30..687342e595 100644 --- a/test/ipfs/1.0.1/templates/deployment.yaml +++ b/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: