• Brad Davidson's avatar
    Fix agents removing configured supervisor address · 82e20cf8
    Brad Davidson authored
    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: 's avatarBrad Davidson <brad.davidson@rancher.com>
    82e20cf8
Name
Last commit
Last update
.github Loading commit data...
cmd Loading commit data...
conformance Loading commit data...
contrib Loading commit data...
docs Loading commit data...
hack Loading commit data...
manifests Loading commit data...
package Loading commit data...
pkg Loading commit data...
scripts Loading commit data...
tests Loading commit data...
updatecli Loading commit data...
.dockerignore Loading commit data...
.drone.yml Loading commit data...
.droneignore Loading commit data...
.gitignore Loading commit data...
.golangci.json Loading commit data...
ADOPTERS.md Loading commit data...
BUILDING.md Loading commit data...
CODEOWNERS Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CONTRIBUTING.md Loading commit data...
DCO Loading commit data...
Dockerfile.dapper Loading commit data...
Dockerfile.local Loading commit data...
Dockerfile.manifest Loading commit data...
Dockerfile.test Loading commit data...
LICENSE Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
ROADMAP.md Loading commit data...
channel.yaml Loading commit data...
docker-compose.yml Loading commit data...
go.mod Loading commit data...
go.sum Loading commit data...
install.sh Loading commit data...
k3s-rootless.service Loading commit data...
k3s.service Loading commit data...
main.go Loading commit data...