Skip to content

Serviceaccount upserting - #308

Merged
dmolik merged 5 commits into
mainfrom
serviceaccount
Sep 15, 2025
Merged

dmolik merged 5 commits into
mainfrom
serviceaccount

Conversation

@dmolik

@dmolik dmolik commented Sep 15, 2025

Copy link
Copy Markdown
Member

supersedes #288

He, Zheng and others added 5 commits August 14, 2025 12:56
Enhance the ServiceAccount upsert logic to avoid unnecessary updates by:
- Only patching when labels or controller references have changed
- Using merge patches instead of full updates to preserve other fields
- Adding helper functions for label comparison and merging
- Implementing proper owner reference validation

This reduces API server load and prevents conflicts with other controllers
that may modify ServiceAccount resources.

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

Co-Authored-By: Claude <noreply@anthropic.com>
@dmolik dmolik changed the title Serviceaccount Serviceaccount upserting Sep 15, 2025
@dmolik
dmolik merged commit 8f32c4b into main Sep 15, 2025
12 checks passed
@dmolik
dmolik deleted the serviceaccount branch September 15, 2025 21:29
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.

1 participant