k3s/pkg/agent/config
Brad Davidson 9841517457 Fix agents removing configured supervisor address
We shouldn't be replacing the configured server address on agents. Doing
so breaks the agent's ability to fall back to the fixed registration
endpoint when all servers are down, since we replaced it with the first
discovered apiserver address. The fixed registration endpoint will be
restored as default when the service is restarted, but this is not the
correct behavior. This should have only been done on etcd-only nodes
that start up using their local supervisor, but need to switch to a
control-plane node as soon as one is available.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2024-07-15 09:46:52 -07:00
..
config.go Fix agents removing configured supervisor address 2024-07-15 09:46:52 -07:00
config_internal_test.go Add test for `isValidResolvConf` (#10302) 2024-06-06 17:02:31 -03:00
config_linux.go windows changes 2024-05-16 14:40:27 -07:00
config_linux_test.go [Testing]: Test_UnitApplyContainerdQoSClassConfigFileIfPresent (Created) (#8945) 2024-02-09 11:28:06 -08:00
config_windows.go fix typo, use rancher/permissions 2024-06-07 08:00:44 -07:00