From 1bc89550ae587b4a20d84411a846983a4706d65d Mon Sep 17 00:00:00 2001 From: Nir Soffer Date: Mon, 13 Nov 2023 23:22:17 +0200 Subject: [PATCH] Enable StatefulSetAutoDeletePVC feature gate With this we can create a statesfulset with persistentVolumeClaimRetentionPolicy[1] to have the PVCs deleted when a stateful set is deleted. This policy is required for relocate, otherwise ramen get stuck waiting for vrs to become secondary. [1] https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention Signed-off-by: Nir Soffer --- test/envs/regional-dr.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/envs/regional-dr.yaml b/test/envs/regional-dr.yaml index 0f7e208b35..a76971c554 100644 --- a/test/envs/regional-dr.yaml +++ b/test/envs/regional-dr.yaml @@ -21,6 +21,8 @@ templates: addons: - volumesnapshots - csi-hostpath-driver + feature_gates: + - StatefulSetAutoDeletePVC=true workers: - addons: - name: cert-manager