Skip to content

fix(secret): make transformer idempotent#380

Merged
tronghn merged 1 commit intomainfrom
fix-secret-watcher-transformer
Apr 1, 2026
Merged

fix(secret): make transformer idempotent#380
tronghn merged 1 commit intomainfrom
fix-secret-watcher-transformer

Conversation

@tronghn
Copy link
Copy Markdown
Contributor

@tronghn tronghn commented Apr 1, 2026

The transformer may run multiple times when the WatchList feature gate is enabled, which is coincidentally in beta (i.e. enabled by default) from Kubernetes 1.34. This results in the secret keys annotation to become empty as it is overwritten when the keys are already removed, ultimately resulting in the keys field for Secrets to effectively become empty.

We make transformSecret idempotent to ensure that previous transformations aren't overwritten.

@tronghn tronghn requested a review from a team as a code owner April 1, 2026 07:03
@tronghn tronghn merged commit fd0a7c8 into main Apr 1, 2026
10 checks passed
@tronghn tronghn deleted the fix-secret-watcher-transformer branch April 1, 2026 07:09
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