Skip to content

Conversation

bobh66
Copy link
Contributor

@bobh66 bobh66 commented Sep 12, 2025

Description of your changes

Added a MustCreate management policy that requires the external resource to NOT exist before the MR can create it.

Fixes #872

Tested using provider-kubernetes running a private branch of crossplane-runtime. Created a Secret and also an Object containing a Secret with the same name but different data, and managementPolicies: ['MustCreate', 'Observe', 'Update', 'LateInitialize', 'Delete'] and verified that when the Object was created the Secret remained unchanged and the Object reported an error that the Secret it was trying to create was already in existence.

Docs PR is crossplane/docs#993

I have:

Need help with this checklist? See the cheat sheet.

@bobh66 bobh66 requested a review from a team as a code owner September 12, 2025 19:08
@bobh66 bobh66 requested a review from negz September 12, 2025 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support MustCreate management policy to trigger failure when a resource already exists

1 participant