From ab1e03b469619333ed532d0b1e5e30923ee3eb9e Mon Sep 17 00:00:00 2001 From: Petr Studeny Date: Wed, 12 Oct 2022 22:55:43 +0200 Subject: [PATCH] [bitnami/common] Do not explicitly specify namespace in affinity term. 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 --- 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 828e32258245da..007376a3630861 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.0.3 +appVersion: 2.0.4 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/master/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.0.3 +version: 2.0.4 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 -}}