Skip to content

(bug) Fix source Secret watch, DisplayName predicate and annotation propagation#10

Merged
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:chore
Jun 19, 2026
Merged

(bug) Fix source Secret watch, DisplayName predicate and annotation propagation#10
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:chore

Conversation

@gianlucam76

Copy link
Copy Markdown
Member

When a cluster's kubeconfig Secret was rotated, Sveltos did not pick up the new credentials until something else triggered a reconcile. This change makes the controller watch the source Secret directly and re-reconcile immediately when its data changes.

Two smaller gaps are fixed alongside: renaming a cluster (changing Spec.DisplayName) now triggers a reconcile, and the display name is propagated to the SveltosCluster as an annotation while leaving any annotations set by other controllers untouched.

…ropagation

When a cluster's kubeconfig Secret was rotated, Sveltos did not pick up the new credentials until
something else triggered a reconcile. This change makes the controller watch the source Secret directly
and re-reconcile immediately when its data changes.

Two smaller gaps are fixed alongside: renaming a cluster (changing Spec.DisplayName) now triggers a reconcile,
and the display name is propagated to the SveltosCluster as an annotation while leaving any annotations set by
other controllers untouched.
@gianlucam76 gianlucam76 merged commit 5dd4232 into projectsveltos:main Jun 19, 2026
4 checks passed
@gianlucam76 gianlucam76 deleted the chore branch June 19, 2026 08:05
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