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 49a96068..45b79a6b 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 f092adaf..6d1fb1df 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