mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 00:47:04 +02:00
feat(common): Release common-3.1.0 (#303)
This commit is contained in:
parent
55b1b3a383
commit
11f1a43664
15 changed files with 185 additions and 19 deletions
|
@ -0,0 +1,13 @@
|
|||
{{/*
|
||||
Return the value or the specified default if the given value is null.
|
||||
*/}}
|
||||
{{- define "bjw-s.common.lib.defaultKeepNonNullValue" -}}
|
||||
{{- $value := .value -}}
|
||||
{{- $default := required "default value is required" .default -}}
|
||||
|
||||
{{- if eq nil $value -}}
|
||||
{{- $default | toYaml -}}
|
||||
{{- else -}}
|
||||
{{- $value | toYaml -}}
|
||||
{{- end -}}
|
||||
{{- end }}
|
Loading…
Add table
Add a link
Reference in a new issue