Skip to content

feat(fleet-controller): skip config re-apply and callbacks for unmodified reloads - #5452

Draft
d3flex wants to merge 1 commit into
rancher:mainfrom
d3flex:feat/config_flag
Draft

feat(fleet-controller): skip config re-apply and callbacks for unmodified reloads#5452
d3flex wants to merge 1 commit into
rancher:mainfrom
d3flex:feat/config_flag

Conversation

@d3flex

@d3flex d3flex commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

The version guard added in the previous commit kept a running controller's
config in memory when a mismatched-version ConfigMap was detected, but it
returned no signal to the caller. Without that signal the live reload paths
kept doing their work even for a rejected ConfigMap: reloadConfig re-fired
every OnChange callback via SetAndTrigger, and Reconcile re-applied the
retained config, when nothing was actually adopted.

ReadConfig and Lookup now report whether the config was adopted, and both
live reload paths skip re-applying and re-triggering callbacks when it was
not.

Depends-on: #5397
Refers to #3547

…ed reloads

The version guard in the previous commit kept a running controller's config in
memory when it saw a mismatched-version ConfigMap, but it gave the caller no
signal back. So the live reload paths kept working on a rejected ConfigMap
anyway: reloadConfig re-fired every OnChange callback through SetAndTrigger, and
Reconcile re-applied the retained config, even though nothing was adopted.

ReadConfig and Lookup now return whether the config was adopted. Both live
reload paths skip the re-apply and the callbacks when it was not, which slightly
improves performance and avoids unnecessary overload.

Refers to rancher#3547

Signed-off-by: Ioannis Bonatakis <ybonatakis@suse.com>
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