From 07940c889b6b83d4a3f218d2bc8b89ed6c9733c5 Mon Sep 17 00:00:00 2001 From: Daniel Fernandes Date: Thu, 11 Dec 2025 11:25:48 +0000 Subject: [PATCH 1/2] Add argo sync-options annotation to retain PVs --- helm/blueapi/templates/volumes.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/helm/blueapi/templates/volumes.yaml b/helm/blueapi/templates/volumes.yaml index 6f183d025..b931be93a 100644 --- a/helm/blueapi/templates/volumes.yaml +++ b/helm/blueapi/templates/volumes.yaml @@ -5,6 +5,7 @@ metadata: name: {{ include "blueapi.fullname" . }}-scratch-{{ .Values.image.tag | default .Chart.AppVersion }} annotations: helm.sh/resource-policy: keep + argocd.argoproj.io/sync-options: Delete=false spec: accessModes: - ReadWriteMany From 9ee3f2e2fd85a9776b7c66a8f2c26cccbab1fdb4 Mon Sep 17 00:00:00 2001 From: Daniel Fernandes Date: Fri, 19 Dec 2025 14:56:45 +0000 Subject: [PATCH 2/2] Fix test json --- tests/unit_tests/test_helm_chart.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit_tests/test_helm_chart.py b/tests/unit_tests/test_helm_chart.py index e37772d8b..01cd6e612 100644 --- a/tests/unit_tests/test_helm_chart.py +++ b/tests/unit_tests/test_helm_chart.py @@ -600,7 +600,10 @@ def test_persistent_volume_claim_exists( "kind": "PersistentVolumeClaim", "metadata": { "name": "blueapi-scratch-0.1.0", - "annotations": {"helm.sh/resource-policy": "keep"}, + "annotations": { + "helm.sh/resource-policy": "keep", + "argocd.argoproj.io/sync-options": "Delete=false", + }, }, "spec": { "accessModes": ["ReadWriteMany"],