mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[incubator/common] env from configmap (#7199)
* refactor(incubator.common): env from configmap * refactor(incubator.common): bump version * refactor(incubator.common): fix typo
This commit is contained in:
committed by
k8s-ci-robot
parent
4e3544cf3c
commit
4719d542b0
@@ -1,8 +1,8 @@
|
||||
apiVersion: v1
|
||||
description: Common chartbuilding components and helpers
|
||||
name: common
|
||||
version: 0.0.3
|
||||
appVersion: 0.0.3
|
||||
version: 0.0.4
|
||||
appVersion: 0.0.4
|
||||
home: https://helm.sh
|
||||
maintainers:
|
||||
- name: technosophos
|
||||
|
||||
@@ -6,6 +6,18 @@
|
||||
value: {{ default "" $value | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "common.envvar.configmap" -}}
|
||||
{{- $name := index . 0 -}}
|
||||
{{- $configMapName := index . 1 -}}
|
||||
{{- $configMapKey := index . 2 -}}
|
||||
|
||||
name: {{ $name }}
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: {{ $configMapName }}
|
||||
key: {{ $configMapKey }}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "common.envvar.secret" -}}
|
||||
{{- $name := index . 0 -}}
|
||||
{{- $secretName := index . 1 -}}
|
||||
|
||||
Reference in New Issue
Block a user