Skip to content

Commit

Permalink
Merge pull request #157 from tim-chen-sl/feature/support-downward-api…
Browse files Browse the repository at this point in the history
…-in-env

feat(deployment): support downward api
  • Loading branch information
chiayu-su authored Jul 30, 2024
2 parents f23ee3c + 8feb5ac commit 0df4602
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion simple/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
description: Helm chart with simple deployment/service template
name: simple
version: 0.20.0
version: 0.20.1
appVersion: 0.0.1
tillerVersion: ">=2.14.3"
6 changes: 6 additions & 0 deletions simple/templates/_container.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
name: {{ $ref.name }}
key: {{ $ref.key | quote }}
{{- end }}
{{- range .envFromFieldRefs }}
- name: {{ .name }}
valueFrom:
fieldRef:
fieldPath: {{ .fieldPath }}
{{- end }}
envFrom:
{{- range .envFromConfigmap }}
- configMapRef:
Expand Down

0 comments on commit 0df4602

Please sign in to comment.