feat(common): Release common-3.1.0 (#303)

This commit is contained in:
Bernd Schorgers 2024-04-04 08:05:57 +02:00 committed by GitHub
parent 55b1b3a383
commit 11f1a43664
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 185 additions and 19 deletions

View file

@ -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 }}