Skip to content

Conversation

@bobh66
Copy link
Contributor

@bobh66 bobh66 commented Sep 12, 2025

Updated documentation of managed resources to include the new Orphan and MustCreate Management Policies.

Related PRs:

crossplane/crossplane-runtime#873

crossplane/crossplane-runtime#864

@netlify
Copy link

netlify bot commented Sep 12, 2025

Deploy Preview for crossplane ready!

Name Link
🔨 Latest commit a765c17
🔍 Latest deploy log https://app.netlify.com/projects/crossplane/deploys/6982462da15b6b0008fdb6d0
😎 Deploy Preview https://deploy-preview-993--crossplane.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 95 (🔴 down 1 from production)
Accessibility: 90 (🔴 down 2 from production)
Best Practices: 92 (no change from production)
SEO: 100 (no change from production)
PWA: 70 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Member

@jbw976 jbw976 left a comment

Choose a reason for hiding this comment

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

This looks good content wise @bobh66, thank you! I'll add an approval when:

  • the code PRs are merged, so we know they are shipping
  • we remove the docs updates for previous versions - only master is needed IMO

| `LateInitialize` | Crossplane initializes some external resource settings not defined in the `spec.forProvider` of the managed resource. See [the late initialization]({{<ref "./managed-resources#late-initialization" >}}) section for more details. |
| `Observe` | Crossplane only observes the resource and doesn't make any changes. Used for [observe only resources]({{<ref "../guides/import-existing-resources#import-resources-automatically">}}). |
| `Update` | Crossplane changes the external resource when changing the managed resource. |
|`Orphan` | Shorthand for the combination `Observe`, `Create`, `Update`, `LateInitialize`. Supports migration from the deprecated `deletionPolicy` attribute. |
Copy link
Member

Choose a reason for hiding this comment

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

i think it's reasonable to only update master. i don't think we'd backport these new policies to previous releases, so only having it in the latest docs makes sense.

Copy link
Member

Choose a reason for hiding this comment

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

@bobh66 this comments is still valid

@haarchri haarchri marked this pull request as draft February 2, 2026 08:52
@haarchri
Copy link
Member

haarchri commented Feb 2, 2026

convert to draft as we don't have alignment in

crossplane/crossplane-runtime#873

crossplane/crossplane-runtime#864

@bobh66
Copy link
Contributor Author

bobh66 commented Feb 3, 2026

@haarchri I merged those two PRs based on @jbw976 approvals and the fact that any other solution will require additional fields added to the API. Neither PR is an ideal solution but unless we want to rework managementPolicies I think they solve the immediate needs. I'm happy to revisit the issues if we have a better solution available.

@bobh66 bobh66 marked this pull request as ready for review February 3, 2026 17:51
| `Observe` | Crossplane only observes the resource and doesn't make any changes. Used for observe only resources. |
| `Update` | Crossplane changes the external resource when changing the managed resource. |
|`Orphan` | Shorthand for the combination `Observe`, `Create`, `Update`, `LateInitialize`. Supports migration from the deprecated `deletionPolicy` attribute. |
|`MustCreate` | A stricter version of `Create` that requires the desired resource to _not_ already exist. |
Copy link
Member

Choose a reason for hiding this comment

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

and the Providers needs to update the runtime before this is possible at all

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a generic problem with all crossplane-runtime changes that need to be picked up by providers. There is no good way to identify when a specific change is available in a specific provider. I can mention it here but without a good way to track implementation in the providers I don't know how much it will help?

@bobh66 bobh66 force-pushed the add_orphan_mustcreate branch from 8df9468 to a765c17 Compare February 3, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

3 participants