[helm] template pod affinity

This commit is contained in:
TheRealNoob 2024-06-11 20:31:48 -05:00
parent 4038211261
commit 64130485cc
No known key found for this signature in database
5 changed files with 13 additions and 11 deletions

View file

@ -1,8 +1,6 @@
annotations:
artifacthub.io/changes: |-
- "update post submit helm ci and clean up (#11221)"
- "refactor helm ci tests part I (#11188)"
- "Update Ingress-Nginx version controller-v1.10.1"
- "template pod affinity"
artifacthub.io/prerelease: "false"
apiVersion: v2
appVersion: 1.10.1
@ -22,4 +20,4 @@ maintainers:
name: ingress-nginx
sources:
- https://github.com/kubernetes/ingress-nginx
version: 4.10.1
version: 4.11.0

View file

@ -203,7 +203,7 @@ spec:
tolerations: {{ toYaml .Values.controller.tolerations | nindent 8 }}
{{- end }}
{{- if .Values.controller.affinity }}
affinity: {{ toYaml .Values.controller.affinity | nindent 8 }}
affinity: {{ tpl ( toYaml .Values.controller.affinity ) $ | nindent 8 }}
{{- end }}
{{- if .Values.controller.topologySpreadConstraints }}
topologySpreadConstraints: {{ tpl (toYaml .Values.controller.topologySpreadConstraints) $ | nindent 8 }}

View file

@ -206,7 +206,7 @@ spec:
tolerations: {{ toYaml .Values.controller.tolerations | nindent 8 }}
{{- end }}
{{- if .Values.controller.affinity }}
affinity: {{ toYaml .Values.controller.affinity | nindent 8 }}
affinity: {{ tpl ( toYaml .Values.controller.affinity ) $ | nindent 8 }}
{{- end }}
{{- if .Values.controller.topologySpreadConstraints }}
topologySpreadConstraints: {{ tpl (toYaml .Values.controller.topologySpreadConstraints) $ | nindent 8 }}

View file

@ -107,7 +107,7 @@ spec:
tolerations: {{ toYaml .Values.defaultBackend.tolerations | nindent 8 }}
{{- end }}
{{- if .Values.defaultBackend.affinity }}
affinity: {{ toYaml .Values.defaultBackend.affinity | nindent 8 }}
affinity: {{ tpl ( toYaml .Values.defaultBackend.affinity ) $ | nindent 8 }}
{{- end }}
{{- if .Values.defaultBackend.topologySpreadConstraints }}
topologySpreadConstraints: {{ tpl (toYaml .Values.defaultBackend.topologySpreadConstraints) $ | nindent 8 }}

View file

@ -260,11 +260,13 @@ controller:
# - key: app.kubernetes.io/name
# operator: In
# values:
# - ingress-nginx
# - |-
# {{ include "ingress-nginx.name" . }}
# - key: app.kubernetes.io/instance
# operator: In
# values:
# - ingress-nginx
# - |-
# {{ .Release.Name }}
# - key: app.kubernetes.io/component
# operator: In
# values:
@ -279,11 +281,13 @@ controller:
# - key: app.kubernetes.io/name
# operator: In
# values:
# - ingress-nginx
# - |-
# {{ include "ingress-nginx.name" . }}
# - key: app.kubernetes.io/instance
# operator: In
# values:
# - ingress-nginx
# - |-
# {{ .Release.Name }}
# - key: app.kubernetes.io/component
# operator: In
# values: