From 028c1791290e078eb54e131012ec74724bb84aba Mon Sep 17 00:00:00 2001 From: Petr Studeny Date: Mon, 31 Oct 2022 17:03:56 +0100 Subject: [PATCH] [bitnami/common] Do not explicitly specify namespace in affinity term. (#12932) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the current context namespace defined is identical as not defined at all > null or empty namespaces list and null namespaceSelector means "this pod's namespace" docs: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#podaffinityterm-v1-core issue: #12668 Signed-off-by: Petr Studeny Signed-off-by: Petr Studeny Signed-off-by: Carlos Rodríguez Hernández Co-authored-by: Carlos Rodríguez Hernández --- bitnami/common/Chart.yaml | 4 ++-- bitnami/common/templates/_affinities.tpl | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/bitnami/common/Chart.yaml b/bitnami/common/Chart.yaml index d5787d7d327ee9..c6a4bf18ec009a 100644 --- a/bitnami/common/Chart.yaml +++ b/bitnami/common/Chart.yaml @@ -2,7 +2,7 @@ annotations: category: Infrastructure apiVersion: v2 # Please make sure that version and appVersion are always the same. -appVersion: 2.1.1 +appVersion: 2.1.2 description: A Library Helm Chart for grouping common logic between bitnami charts. This chart is not deployable by itself. home: https://github.com/bitnami/charts/tree/main/bitnami/common icon: https://bitnami.com/downloads/logos/bitnami-mark.png @@ -20,4 +20,4 @@ sources: - https://github.com/bitnami/charts - https://www.bitnami.com/ type: library -version: 2.1.1 +version: 2.1.2 diff --git a/bitnami/common/templates/_affinities.tpl b/bitnami/common/templates/_affinities.tpl index 2387be2620ad01..497068f06c2e83 100644 --- a/bitnami/common/templates/_affinities.tpl +++ b/bitnami/common/templates/_affinities.tpl @@ -62,8 +62,6 @@ preferredDuringSchedulingIgnoredDuringExecution: {{- range $key, $value := $extraMatchLabels }} {{ $key }}: {{ $value | quote }} {{- end }} - namespaces: - - {{ include "common.names.namespace" .context | quote }} topologyKey: kubernetes.io/hostname weight: 1 {{- end -}} @@ -84,8 +82,6 @@ requiredDuringSchedulingIgnoredDuringExecution: {{- range $key, $value := $extraMatchLabels }} {{ $key }}: {{ $value | quote }} {{- end }} - namespaces: - - {{ include "common.names.namespace" .context | quote }} topologyKey: kubernetes.io/hostname {{- end -}}