Skip to content

Conversation

@cbarbian-sap
Copy link
Contributor

No description provided.

@cbarbian-sap cbarbian-sap linked an issue Aug 21, 2025 that may be closed by this pull request
TheBigElmo
TheBigElmo previously approved these changes Aug 21, 2025
Copy link

@TheBigElmo TheBigElmo left a comment

Choose a reason for hiding this comment

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

For better readability I would do it like this:

orphan := item.DeletePolicy == DeletePolicyOrphan || item.DeletePolicy == DeletePolicyOrphanOnDelete ||
				( existingObject != nil && existingObject.GetLabels()[r.labelKeyOwnerId] != hashedOwnerId )

@cbarbian-sap cbarbian-sap merged commit 3e3a86b into main Aug 21, 2025
9 checks passed
@cbarbian-sap cbarbian-sap deleted the issue-316 branch August 21, 2025 15:46
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.

[FEATURE] Automatically orphan foreign objects

3 participants