From 48efa4bc658cb8b61cfdee05734e8bd5eefc3d39 Mon Sep 17 00:00:00 2001 From: Marie Roque Date: Wed, 6 Mar 2024 15:11:54 +0100 Subject: [PATCH] [kube-prometheus-stack] add rollout strategy to prometheus-operator deployment Signed-off-by: Marie Roque --- charts/kube-prometheus-stack/Chart.yaml | 2 +- .../templates/prometheus-operator/deployment.yaml | 4 ++++ charts/kube-prometheus-stack/values.yaml | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/kube-prometheus-stack/Chart.yaml b/charts/kube-prometheus-stack/Chart.yaml index 4bb2c67f5bbc..211cdc2f5aa3 100644 --- a/charts/kube-prometheus-stack/Chart.yaml +++ b/charts/kube-prometheus-stack/Chart.yaml @@ -23,7 +23,7 @@ name: kube-prometheus-stack sources: - https://github.com/prometheus-community/helm-charts - https://github.com/prometheus-operator/kube-prometheus -version: 56.21.1 +version: 56.21.2 appVersion: v0.71.2 kubeVersion: ">=1.19.0-0" home: https://github.com/prometheus-operator/kube-prometheus diff --git a/charts/kube-prometheus-stack/templates/prometheus-operator/deployment.yaml b/charts/kube-prometheus-stack/templates/prometheus-operator/deployment.yaml index 9c2de0657754..e2b1ba92c692 100644 --- a/charts/kube-prometheus-stack/templates/prometheus-operator/deployment.yaml +++ b/charts/kube-prometheus-stack/templates/prometheus-operator/deployment.yaml @@ -22,6 +22,10 @@ spec: matchLabels: app: {{ template "kube-prometheus-stack.name" . }}-operator release: {{ $.Release.Name | quote }} + {{- with .Values.prometheusOperator.strategy }} + strategy: + {{- toYaml . | nindent 4 }} + {{- end }} template: metadata: labels: diff --git a/charts/kube-prometheus-stack/values.yaml b/charts/kube-prometheus-stack/values.yaml index 85c3cef1b3bc..d39ba0110c4d 100644 --- a/charts/kube-prometheus-stack/values.yaml +++ b/charts/kube-prometheus-stack/values.yaml @@ -2157,6 +2157,10 @@ prometheusOperator: ## The default value is 10, 0 will garbage-collect old replicasets ## revisionHistoryLimit: 10 + ## Strategy of the deployment + ## + strategy: {} + ## Prometheus-Operator v0.39.0 and later support TLS natively. ## tls: