A bit better control of env
This commit is contained in:
parent
8cbfaec5c2
commit
72b63e4a35
@ -10,4 +10,4 @@ metadata:
|
||||
{{- end }}
|
||||
|
||||
{{- define "metadata.customName" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
@ -2,7 +2,7 @@ apiVersion: v2
|
||||
name: softplayer-lib-workload
|
||||
description: A library to be reused accross softplayer charts
|
||||
type: library
|
||||
version: 0.2.0
|
||||
version: 0.2.1
|
||||
maintainers:
|
||||
- name: allanger
|
||||
email: allanger@badhouseplants.net
|
||||
|
@ -1,6 +1,7 @@
|
||||
{{- define "lib.config.env" -}}
|
||||
{{- range $k, $v := .Values.env }}
|
||||
{{- $customName := printf "%s-%s" (include "chart.fullname" $) $k }}
|
||||
{{- if $v.enabled }}
|
||||
---
|
||||
apiVersion: v1
|
||||
{{- if not $v.sensitive }}
|
||||
@ -13,8 +14,10 @@ kind: Secret
|
||||
stringData:
|
||||
{{- end }}
|
||||
{{- range $key, $value := $v.data }}
|
||||
{{- if $value }}
|
||||
{{ $key }}: {{ $value | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
|
||||
{{- end }}
|
||||
{{- end -}}
|
Loading…
Reference in New Issue
Block a user