Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete restore when policy is disabled #484

Merged

Conversation

birsanv
Copy link
Contributor

@birsanv birsanv commented Jun 10, 2024

https://issues.redhat.com/browse/ACM-12080

Since the oadp install namespace cannot be deleted due to the restore resource finalizer, prune any restore resource created by the policy, when the policy is disabled; using the pruneObjectBehavior: DeleteIfCreated
Still going to delete the namespace because the OADP ClusterServiceVersion is not created by the policy so it cannot be removed by the policy using the pruneObjectBehavior: DeleteIfCreated option

Changes:

  • add pruneObjectBehavior: DeleteIfCreated option to the Restore creation template; this will allow the ns to be deleted
  • add pruneObjectBehavior: DeleteIfCreated option to the Namespace creation template; this will clean up the OADP CSV

@birsanv
Copy link
Contributor Author

birsanv commented Jun 11, 2024

/cc @dhaiducek

Copy link

openshift-ci bot commented Jun 11, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: birsanv, dhaiducek

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 1644712 into open-cluster-management-io:main Jun 11, 2024
3 checks passed
@birsanv birsanv deleted the vb_oadp_csv branch September 24, 2024 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants