Skip to content

Conversation

@bxy4543
Copy link
Member

@bxy4543 bxy4543 commented Dec 1, 2025

…nges

Previously, the User controller only watched for GenerationChangedPredicate, which meant changes to metadata annotations (like owner transfers) would not trigger reconciliation. This caused namespace owner annotations to become out of sync when user ownership was transferred via OperationRequest.

Adding AnnotationChangedPredicate ensures that any annotation changes on the User resource will trigger a reconcile, keeping namespace annotations in sync.

🤖 Generated with Claude Code

@bxy4543 bxy4543 requested a review from a team as a code owner December 1, 2025 10:07
@bxy4543 bxy4543 added this to the v5.2 milestone Dec 1, 2025
…nges

Previously, the User controller only watched for GenerationChangedPredicate,
which meant changes to metadata annotations (like owner transfers) would not
trigger reconciliation. This caused namespace owner annotations to become
out of sync when user ownership was transferred via OperationRequest.

Adding AnnotationChangedPredicate ensures that any annotation changes on the
User resource will trigger a reconcile, keeping namespace annotations in sync.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@zijiren233 zijiren233 force-pushed the fix/user-ctr-reconcile branch from 95d5133 to f8da7e1 Compare December 1, 2025 11:13
@zijiren233 zijiren233 merged commit c1f249c into labring:main Dec 1, 2025
23 of 32 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2025

🤖 says: cherry pick action finished successfully 🎉!
See: https://github.com/labring/sealos/actions/runs/19820866917

github-actions bot pushed a commit that referenced this pull request Dec 1, 2025
…viously (#6267)

fix(user-controller): add AnnotationChangedPredicate for metadata changes

Previously, the User controller only watched for GenerationChangedPredicate,
which meant changes to metadata annotations (like owner transfers) would not
trigger reconciliation. This caused namespace owner annotations to become
out of sync when user ownership was transferred via OperationRequest.

Adding AnnotationChangedPredicate ensures that any annotation changes on the
User resource will trigger a reconcile, keeping namespace annotations in sync.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <[email protected]>
cuisongliu pushed a commit that referenced this pull request Dec 1, 2025
…viously (#6270)

fix(user-controller): add AnnotationChangedPredicate for metadata Previously (#6267)

fix(user-controller): add AnnotationChangedPredicate for metadata changes

Previously, the User controller only watched for GenerationChangedPredicate,
which meant changes to metadata annotations (like owner transfers) would not
trigger reconciliation. This caused namespace owner annotations to become
out of sync when user ownership was transferred via OperationRequest.

Adding AnnotationChangedPredicate ensures that any annotation changes on the
User resource will trigger a reconcile, keeping namespace annotations in sync.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Jiahui <[email protected]>
Co-authored-by: Claude <[email protected]>
@bxy4543 bxy4543 deleted the fix/user-ctr-reconcile branch December 2, 2025 02:28
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