[bitnami/common] Affinities section does not use common.names.namespace (#11137)

* [bitnami/common] use common.names.namespace on affinities section

Signed-off-by: Alberto Otero Lorenzo <lorenzoa@vmware.com>

* [bitnami/common] bump patch chart version

Signed-off-by: Alberto Otero Lorenzo <lorenzoa@vmware.com>

* [bitnami/common] revert unrelated whitespace deleting

Signed-off-by: Alberto Otero Lorenzo <lorenzoa@vmware.com>

* [bitnami/common] update impl

Signed-off-by: Alberto Otero Lorenzo <lorenzoa@vmware.com>
This commit is contained in:
Alberto Otero
2022-07-13 13:10:47 +02:00
committed by GitHub
parent 9ad18b67b7
commit b70c24c82c
2 changed files with 4 additions and 4 deletions

View File

@@ -20,4 +20,4 @@ sources:
- https://github.com/bitnami/charts
- https://www.bitnami.com/
type: library
version: 1.16.0
version: 1.16.1

View File

@@ -1,7 +1,7 @@
{{/* vim: set filetype=mustache: */}}
{{/*
Return a soft nodeAffinity definition
Return a soft nodeAffinity definition
{{ include "common.affinities.nodes.soft" (dict "key" "FOO" "values" (list "BAR" "BAZ")) -}}
*/}}
{{- define "common.affinities.nodes.soft" -}}
@@ -63,7 +63,7 @@ preferredDuringSchedulingIgnoredDuringExecution:
{{ $key }}: {{ $value | quote }}
{{- end }}
namespaces:
- {{ .context.Release.Namespace | quote }}
- {{ include "common.names.namespace" .context | quote }}
topologyKey: kubernetes.io/hostname
weight: 1
{{- end -}}
@@ -85,7 +85,7 @@ requiredDuringSchedulingIgnoredDuringExecution:
{{ $key }}: {{ $value | quote }}
{{- end }}
namespaces:
- {{ .context.Release.Namespace | quote }}
- {{ include "common.names.namespace" .context | quote }}
topologyKey: kubernetes.io/hostname
{{- end -}}