From 1644712b42370394e1c32b55b0cc528b1ce70951 Mon Sep 17 00:00:00 2001 From: Valentina Birsan Date: Mon, 10 Jun 2024 10:17:22 -0400 Subject: [PATCH] delete restore when policy is disabled Signed-off-by: Valentina Birsan --- .../resources/policies/oadp-hdr-app-install.yaml | 1 + .../resources/policies/oadp-hdr-app-restore.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/community/CM-Configuration-Management/acm-app-pv-backup/resources/policies/oadp-hdr-app-install.yaml b/community/CM-Configuration-Management/acm-app-pv-backup/resources/policies/oadp-hdr-app-install.yaml index 49a960681..45b79a6b3 100644 --- a/community/CM-Configuration-Management/acm-app-pv-backup/resources/policies/oadp-hdr-app-install.yaml +++ b/community/CM-Configuration-Management/acm-app-pv-backup/resources/policies/oadp-hdr-app-install.yaml @@ -45,6 +45,7 @@ spec: name: '{{hub $configMap.data.backupNS hub}}' {{hub end hub}} remediationAction: enforce + pruneObjectBehavior: DeleteIfCreated severity: high - objectDefinition: apiVersion: policy.open-cluster-management.io/v1 diff --git a/community/CM-Configuration-Management/acm-app-pv-backup/resources/policies/oadp-hdr-app-restore.yaml b/community/CM-Configuration-Management/acm-app-pv-backup/resources/policies/oadp-hdr-app-restore.yaml index f092adafc..6d1fb1dfe 100644 --- a/community/CM-Configuration-Management/acm-app-pv-backup/resources/policies/oadp-hdr-app-restore.yaml +++ b/community/CM-Configuration-Management/acm-app-pv-backup/resources/policies/oadp-hdr-app-restore.yaml @@ -71,6 +71,7 @@ spec: restorePVs: '{{hub $configMap.data.restoreRestorePVs | toBool hub}}' {{hub end hub}} remediationAction: enforce + pruneObjectBehavior: DeleteIfCreated severity: high - objectDefinition: apiVersion: policy.open-cluster-management.io/v1