From 2ca9bf2bf8b86b436c2cfdd6aee994a9868eb218 Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Mon, 29 Jan 2024 15:31:49 +0000 Subject: [PATCH] Add rollback window and history settings (#792) this means rollbacks skip the canary process for the last 10 releases --- charts/posthog/Chart.yaml | 2 +- charts/posthog/templates/web-deployment.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/posthog/Chart.yaml b/charts/posthog/Chart.yaml index a8c840d3..ee360c43 100644 --- a/charts/posthog/Chart.yaml +++ b/charts/posthog/Chart.yaml @@ -11,7 +11,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 30.45.0 +version: 30.46.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. diff --git a/charts/posthog/templates/web-deployment.yaml b/charts/posthog/templates/web-deployment.yaml index 92165ca3..861e0f76 100644 --- a/charts/posthog/templates/web-deployment.yaml +++ b/charts/posthog/templates/web-deployment.yaml @@ -22,6 +22,9 @@ spec: maxSurge: {{ .Values.web.rollout.maxSurge }} maxUnavailable: {{ .Values.web.rollout.maxUnavailable }} {{- else if eq .Values.web.deployment.strategy "canary" }} + revisionHistoryLimit: 10 + rollbackWindow: + revisions: 10 canary: canaryService: {{ template "posthog.fullname" . }}-web-canary stableService: {{ template "posthog.fullname" . }}-web