• Brad Davidson's avatar
    Fix race condition in tunnel server startup · 6d28abd1
    Brad Davidson authored
    Several places in the code used a 5-second retry loop to wait on
    Runtime.Core to be set. This caused a race condition where OnChange
    handlers could be added after the Wrangler shared informers were already
    started. When this happened, the handlers were never called because the
    shared informers they relied upon were not started.
    
    Fix that by requiring anything that waits on Runtime.Core to run from a
    cluster controller startup hook that is guaranteed to be called before
    the shared informers are started, instead of just firing it off in a
    goroutine that retries until it is set.
    Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com>
    (cherry picked from commit c44d33d2)
    6d28abd1
Name
Last commit
Last update
..
agent Loading commit data...
apis/k3s.cattle.io Loading commit data...
authenticator Loading commit data...
bootstrap Loading commit data...
cgroups Loading commit data...
cli Loading commit data...
clientaccess Loading commit data...
cloudprovider Loading commit data...
cluster Loading commit data...
codegen Loading commit data...
configfilearg Loading commit data...
containerd Loading commit data...
crd Loading commit data...
ctr Loading commit data...
daemons Loading commit data...
data Loading commit data...
datadir Loading commit data...
dataverify Loading commit data...
deploy Loading commit data...
etcd Loading commit data...
flock Loading commit data...
generated Loading commit data...
kubeadm Loading commit data...
kubectl Loading commit data...
node Loading commit data...
nodeconfig Loading commit data...
nodepassword Loading commit data...
passwd Loading commit data...
rootless Loading commit data...
rootlessports Loading commit data...
secretsencrypt Loading commit data...
server Loading commit data...
static Loading commit data...
token Loading commit data...
untar Loading commit data...
util Loading commit data...
version Loading commit data...