Skip to content

Commit

Permalink
replace dict with list
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsai Yowko authored and Tsai Yowko committed Nov 13, 2023
1 parent 573a059 commit a8e537d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions application-values.yaml
@@ -1,3 +1,3 @@
envs:
- ENV: "dev"
- DEV: "true"
ENV: "dev"
DEV: "true"
8 changes: 3 additions & 5 deletions helmvaluetest/templates/deployment.yaml
Expand Up @@ -49,11 +49,9 @@ spec:
path: /
port: http
env:
{{- range $env :=.Values.envs }}
{{- range $name,$value :=$env }}
- name: {{$name}}
value: {{$value | quote }}
{{- end }}
{{- range $key, $value := .Values.envs }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
Expand Down
2 changes: 1 addition & 1 deletion helmvaluetest/values.yaml
Expand Up @@ -11,7 +11,7 @@ image:
tag: ""

envs:
- ENV: "default"
ENV: "default"

imagePullSecrets: []
nameOverride: ""
Expand Down
2 changes: 1 addition & 1 deletion share-values.yaml
@@ -1,2 +1,2 @@
envs:
- REDISENDPOINT: "127.0.0.1:6379,password=pass.123"
REDISENDPOINT: "127.0.0.1:6379,password=pass.123"

0 comments on commit a8e537d

Please sign in to comment.