From 4073c57ae648fbb1ff90ce4632d57ad27fa9593f Mon Sep 17 00:00:00 2001 From: Florian Heubeck Date: Tue, 30 Jul 2024 21:32:58 +0200 Subject: [PATCH] [Application] Add tolerations and affinity support --- charts/application/Chart.yaml | 2 +- charts/application/templates/_podTemplate.tpl | 8 ++++++++ charts/application/values.yaml | 6 ++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/charts/application/Chart.yaml b/charts/application/Chart.yaml index 5e53d6d..a1554e9 100644 --- a/charts/application/Chart.yaml +++ b/charts/application/Chart.yaml @@ -7,4 +7,4 @@ maintainers: - name: MediaMarktSaturn url: https://github.com/MediaMarktSaturn appVersion: 1.0.0 -version: 1.21.0 +version: 1.22.0 diff --git a/charts/application/templates/_podTemplate.tpl b/charts/application/templates/_podTemplate.tpl index ce9cd37..88a2d96 100644 --- a/charts/application/templates/_podTemplate.tpl +++ b/charts/application/templates/_podTemplate.tpl @@ -357,4 +357,12 @@ spec: {{- end }} {{- end }} {{- end }} + {{- if .Values.tolerations }} + tolerations: + {{- toYaml .Values.tolerations | nindent 4 }} + {{- end }} + {{- if .Values.affinity }} + affinity: + {{- toYaml .Values.affinity | nindent 4 }} + {{- end }} {{- end -}} diff --git a/charts/application/values.yaml b/charts/application/values.yaml index 71e5073..c27c532 100644 --- a/charts/application/values.yaml +++ b/charts/application/values.yaml @@ -382,3 +382,9 @@ initDefaults: cpu: 500m memory: 100Mi restartPolicy: Always + +# List of tolerations, will be taken over like-for-like to pod-spec +tolerations: [] + +# Affinity object, will be taken over like-for-like as well +affinity: {}