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

Add [Observe, Delete] as a supported management policy #613

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

lsviben
Copy link
Contributor

@lsviben lsviben commented Nov 29, 2023

Description of your changes

provider-kubernetes uses its native ManagementPolicy of which one is ObserveDelete which would translate into ["Observe", "Delete"]. We are in the process of migrating that to Crossplane core ManagementPolicies so I noticed that ["Observe", "Delete"] is not supported. TBH I dont see a reason why not to add it to supported policies.

So this PR adds ["Observe", "Delete"] to the list of supported polices.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

make reviewable test .
+
Did a manual test with provider-kubernetes and an Object observing configmap. Deleting the MR, deleted the configmap.

Signed-off-by: lsviben <sviben.lovro@gmail.com>
Copy link
Contributor

@bobh66 bobh66 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

3 participants