diff --git a/helm/blueapi/templates/volumes.yaml b/helm/blueapi/templates/volumes.yaml index 6f183d025..a5d9e056f 100644 --- a/helm/blueapi/templates/volumes.yaml +++ b/helm/blueapi/templates/volumes.yaml @@ -4,7 +4,8 @@ kind: PersistentVolumeClaim metadata: name: {{ include "blueapi.fullname" . }}-scratch-{{ .Values.image.tag | default .Chart.AppVersion }} annotations: - helm.sh/resource-policy: keep + argocd.argoproj.io/sync-options: Prune=false,Delete=false + argocd.argoproj.io/compare-options: IgnoreExtraneous spec: accessModes: - ReadWriteMany diff --git a/tests/unit_tests/test_helm_chart.py b/tests/unit_tests/test_helm_chart.py index 0b18d7e13..f6e34ddf5 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": { + "argocd.argoproj.io/sync-options": "Prune=false,Delete=false", + "argocd.argoproj.io/compare-options": "IgnoreExtraneous", + }, }, "spec": { "accessModes": ["ReadWriteMany"],