From 6e4287f34067f3026cbcb3e453e07ff470624a2c Mon Sep 17 00:00:00 2001 From: peterabarr <90917602+peterabarr@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:37:22 +0100 Subject: [PATCH] Statefulset fix Signed-off-by: peterabarr <90917602+peterabarr@users.noreply.github.com> --- charts/alertmanager/templates/statefulset.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/alertmanager/templates/statefulset.yaml b/charts/alertmanager/templates/statefulset.yaml index 56e6b3eaa5c2..48511758ccbf 100644 --- a/charts/alertmanager/templates/statefulset.yaml +++ b/charts/alertmanager/templates/statefulset.yaml @@ -13,8 +13,8 @@ metadata: spec: {{- if semverCompare ">= 1.27.x" (include "alertmanager.kubeVersion" .) }} persistentVolumeClaimRetentionPolicy: - whenDeleted: {{ .Values.persistentVolumeClaimRetentionPolicy.whenDeleted }} - whenScaled: {{ .Values.persistentVolumeClaimRetentionPolicy.whenScaled }} + whenDeleted: {{ .Values.statefulSet.persistentVolumeClaimRetentionPolicy.whenDeleted }} + whenScaled: {{ .Values.statefulSet.persistentVolumeClaimRetentionPolicy.whenScaled }} {{- end }} replicas: {{ .Values.replicaCount }} revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}