mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 00:47:04 +02:00
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:
parent
6d23aa66ca
commit
e68b41ed0a
11 changed files with 240 additions and 9 deletions
|
@ -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 }}
|
||||
|
|
|
@ -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" -}}
|
||||
|
|
|
@ -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) -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue