• Brad Davidson's avatar
    Move the apiserver addresses controller into the etcd package · f37e7565
    Brad Davidson authored
    This controller only needs to run when using managed etcd, so move it in
    with the rest of the etcd stuff. This change also modifies the
    controller to only watch the Kubernetes service endpoint, instead of
    watching all endpoints in the entire cluster.
    
    Fixes an error message revealed by use of a newer grpc client in
    Kubernetes 1.24, which logs an error when the Put to etcd failed because
    kine doesn't support the etcd Put operation. The controller shouldn't
    have been running without etcd in the first place.
    Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com>
    f37e7565
metadata_controller.go 1.75 KB