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 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"],