From c6e80659c7ed79a7598b9a89a9fda4e17c0e48e4 Mon Sep 17 00:00:00 2001 From: Antoine Boursin <93669626+UAntBou@users.noreply.github.com> Date: Mon, 20 Nov 2023 11:40:12 +0100 Subject: [PATCH] feat: Add support for topologySpreadConstraints --- .../templates/cost-analyzer-deployment-template.yaml | 4 ++++ cost-analyzer/values.yaml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/cost-analyzer/templates/cost-analyzer-deployment-template.yaml b/cost-analyzer/templates/cost-analyzer-deployment-template.yaml index baeba0ad8..fcdf4c5da 100644 --- a/cost-analyzer/templates/cost-analyzer-deployment-template.yaml +++ b/cost-analyzer/templates/cost-analyzer-deployment-template.yaml @@ -1223,6 +1223,10 @@ spec: affinity: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} + {{- end }} {{- if and .Values.kubecostDeployment.statefulSet.enabled .Values.kubecostDeployment.leaderFollower.enabled }} volumeClaimTemplates: - metadata: diff --git a/cost-analyzer/values.yaml b/cost-analyzer/values.yaml index 8021cb835..90222df73 100644 --- a/cost-analyzer/values.yaml +++ b/cost-analyzer/values.yaml @@ -572,6 +572,8 @@ tolerations: [] affinity: {} +topologySpreadConstraints: [] + # If true, creates a PriorityClass to be used by the cost-analyzer pod priority: enabled: false