feat(common): Release common library 3.6.0 (#364)

Signed-off-by: solidDoWant <fred.heinecke@yahoo.com>
Co-authored-by: solidDoWant <fred.heinecke@yahoo.com>
This commit is contained in:
Bernd Schorgers 2024-12-26 11:29:00 +01:00 committed by GitHub
parent 6d23aa66ca
commit e68b41ed0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 240 additions and 9 deletions

View file

@ -27,6 +27,9 @@ hostname: {{ . | trim }}
hostIPC: {{ include "bjw-s.common.lib.pod.getOption" (dict "ctx" $ctx "option" "hostIPC" "default" false) }}
hostNetwork: {{ include "bjw-s.common.lib.pod.getOption" (dict "ctx" $ctx "option" "hostNetwork" "default" false) }}
hostPID: {{ include "bjw-s.common.lib.pod.getOption" (dict "ctx" $ctx "option" "hostPID" "default" false) }}
{{- if ge ($rootContext.Capabilities.KubeVersion.Minor | int) 29 }}
hostUsers: {{ include "bjw-s.common.lib.pod.getOption" (dict "ctx" $ctx "option" "hostUsers" "default" true) }}
{{- end }}
dnsPolicy: {{ include "bjw-s.common.lib.pod.field.dnsPolicy" (dict "ctx" $ctx) | trim }}
{{- with (include "bjw-s.common.lib.pod.getOption" (dict "ctx" $ctx "option" "dnsConfig")) }}
dnsConfig: {{ . | nindent 2 }}

View file

@ -6,7 +6,17 @@ Returns the value for annotations
{{- $controllerObject := .controllerObject -}}
{{- /* Default annotations */ -}}
{{- $annotations := dict -}}
{{- $annotations := merge
(dict)
-}}
{{- /* Include global annotations if specified */ -}}
{{- if $rootContext.Values.global.propagateGlobalMetadataToPods -}}
{{- $annotations = merge
(include "bjw-s.common.lib.metadata.globalAnnotations" $rootContext | fromYaml)
$annotations
-}}
{{- end -}}
{{- /* Set to the default if it is set */ -}}
{{- $defaultOption := get (default dict $rootContext.Values.defaultPodOptions) "annotations" -}}

View file

@ -10,6 +10,14 @@ Returns the value for labels
(dict "app.kubernetes.io/component" $controllerObject.identifier)
-}}
{{- /* Include global labels if specified */ -}}
{{- if $rootContext.Values.global.propagateGlobalMetadataToPods -}}
{{- $labels = merge
(include "bjw-s.common.lib.metadata.globalLabels" $rootContext | fromYaml)
$labels
-}}
{{- end -}}
{{- /* Fetch the Pod selectorLabels */ -}}
{{- $selectorLabels := include "bjw-s.common.lib.metadata.selectorLabels" $rootContext | fromYaml -}}
{{- if not (empty $selectorLabels) -}}