Skip to content

Commit

Permalink
[bitnami/common] Do not explicitly specify namespace in affinity term.
Browse files Browse the repository at this point in the history
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: bitnami#12668
  • Loading branch information
dosmanak committed Oct 12, 2022
1 parent fb170bc commit 2bfa91c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions bitnami/common/templates/_affinities.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Expand All @@ -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 -}}

Expand Down

0 comments on commit 2bfa91c

Please sign in to comment.