Skip to content

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

Merged
phisco merged 1 commit intocrossplane:masterfrom
lsviben:od-supported-policy
Nov 30, 2023
Merged

Add [Observe, Delete] as a supported management policy#613
phisco merged 1 commit intocrossplane:masterfrom
lsviben:od-supported-policy

Conversation

@lsviben
Copy link
Copy Markdown
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
Copy Markdown
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