From da6120de373bc863c8e1183efeb0e0cb2e8e6f29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=A9o=20M=C3=A9vollon?= Date: Mon, 24 Jun 2024 15:01:57 +0200 Subject: [PATCH 1/2] fix: tolerations for app chart --- plugins/contrib/charts/app/templates/deployment.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/contrib/charts/app/templates/deployment.yaml b/plugins/contrib/charts/app/templates/deployment.yaml index c212c1adb..38be2e1bb 100644 --- a/plugins/contrib/charts/app/templates/deployment.yaml +++ b/plugins/contrib/charts/app/templates/deployment.yaml @@ -52,6 +52,10 @@ spec: {{- end }} affinity: {{- include "contrib-helpers.anti-affinity" . | nindent 8}} + {{- if .Values.tolerations }} + tolerations: + {{- tpl (.Values.tolerations | toYaml) . | nindent 8}} + {{- end }} initContainers: {{- if .Values.waitForPostgres }} {{- include "contrib-helpers.init-containers.wait-for-postgres" . | nindent 8 }} From 52aaacb3ffd5fe7b31ccf5907453d3ffa2a91e5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=A9o=20M=C3=A9vollon?= Date: Mon, 24 Jun 2024 15:14:11 +0200 Subject: [PATCH 2/2] default value --- plugins/contrib/charts/app/values.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/contrib/charts/app/values.yaml b/plugins/contrib/charts/app/values.yaml index c44e9fe39..8a2dce179 100644 --- a/plugins/contrib/charts/app/values.yaml +++ b/plugins/contrib/charts/app/values.yaml @@ -52,6 +52,11 @@ entrypoint: args: [] antiAffinity: enabled: +tolerations: + # - key: startup + # operator: Equal + # value: cdtn + # effect: NoSchedule onChangedPaths: onChangedAnnotate: onChangedNeeds: