From 834baf1a55d20b79e1c9e413a8c1825c8df1bf9c Mon Sep 17 00:00:00 2001 From: Daniel Sy Date: Mon, 15 Jun 2026 11:48:02 +0200 Subject: [PATCH] =?UTF-8?q?feat(otc):=20=F0=9F=9B=A1=EF=B8=8F=20default=20?= =?UTF-8?q?StorageClass=20reclaimPolicy=20to=20Retain?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prevents accidental data loss on PVC deletion. Volumes persist even when PVC is removed. Ephemeral environments can override via STORAGE_RECLAIM_POLICY=Delete env var. Ref: IPCEICIS-2810 --- template/stacks/otc/storageclass/storageclass.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/stacks/otc/storageclass/storageclass.yaml b/template/stacks/otc/storageclass/storageclass.yaml index 038bf24..0f59c35 100644 --- a/template/stacks/otc/storageclass/storageclass.yaml +++ b/template/stacks/otc/storageclass/storageclass.yaml @@ -13,6 +13,6 @@ parameters: kubernetes.io/volumetype: SATA kubernetes.io/zone: eu-de-02 provisioner: flexvolume-huawei.com/fuxivol -reclaimPolicy: Delete +reclaimPolicy: {{{ getenv "STORAGE_RECLAIM_POLICY" "Retain" }}} volumeBindingMode: Immediate allowVolumeExpansion: true \ No newline at end of file