From c9b7fcead2f3e748bac986e5a6c6c123eddbe0a5 Mon Sep 17 00:00:00 2001 From: Arthur Koziel Date: Thu, 7 Mar 2024 12:36:28 +0100 Subject: [PATCH 1/2] Add topologySpreadConstraints to metabase chart --- charts/metabase/templates/deployment.yaml | 6 +++++- charts/metabase/values.yaml | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/metabase/templates/deployment.yaml b/charts/metabase/templates/deployment.yaml index 4ba658e..269f0c7 100644 --- a/charts/metabase/templates/deployment.yaml +++ b/charts/metabase/templates/deployment.yaml @@ -214,7 +214,7 @@ spec: name: metrics {{- end }} {{- if .Values.securityContext}} - securityContext: + securityContext: {{- .Values.securityContext | toYaml | nindent 12 }} {{- end }} livenessProbe: @@ -295,6 +295,10 @@ spec: {{- end }} {{- with .Values.tolerations }} tolerations: +{{ toYaml . | indent 8 }} + {{- end }} + {{- with .Values.topologySpreadConstraints }} + topologySpreadConstraints: {{ toYaml . | indent 8 }} {{- end }} {{- if .Values.priorityClass}} diff --git a/charts/metabase/values.yaml b/charts/metabase/values.yaml index be0806c..574b2a9 100644 --- a/charts/metabase/values.yaml +++ b/charts/metabase/values.yaml @@ -250,6 +250,10 @@ tolerations: [] ## affinity: {} +## Spread Constraints for pod assignment +## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ +topologySpreadConstraints: [] + ## PriorityClass for pod assignment ## ref: ## https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#pod-priority From 778fa0315debc480d46ba3da0d979f35a106343e Mon Sep 17 00:00:00 2001 From: Arthur Koziel Date: Mon, 11 Mar 2024 09:46:01 +0100 Subject: [PATCH 2/2] bump version --- charts/metabase/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/metabase/Chart.yaml b/charts/metabase/Chart.yaml index 74b8c3c..c4392e4 100644 --- a/charts/metabase/Chart.yaml +++ b/charts/metabase/Chart.yaml @@ -3,7 +3,7 @@ description: The easy, open source way for everyone in your company to ask questions and learn from data. name: metabase -version: 2.11.0 +version: 2.12.0 appVersion: v0.48.3 maintainers: - name: pmint93