k3s/pkg
Brad Davidson c44d33d29b Fix race condition in tunnel server startup
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: Brad Davidson <brad.davidson@rancher.com>
2023-04-28 11:24:34 -07:00
..
agent Improve egress selector handling on agentless servers 2023-04-28 11:24:34 -07:00
apis/k3s.cattle.io Create CRDs with schema 2023-04-27 20:42:46 -07:00
authenticator Kubernetes v1.27.1 (#7271) 2023-04-18 21:48:36 -07:00
bootstrap Replace deprecated ioutil package (#6230) 2022-10-07 17:36:57 -07:00
cgroups Replace deprecated ioutil package (#6230) 2022-10-07 17:36:57 -07:00
cli Improve egress selector handling on agentless servers 2023-04-28 11:24:34 -07:00
clientaccess Add support for kubeadm token and client certificate auth 2023-02-07 14:55:04 -08:00
cloudprovider Kubernetes v1.27.1 (#7271) 2023-04-18 21:48:36 -07:00
cluster Fix race condition in tunnel server startup 2023-04-28 11:24:34 -07:00
codegen [master] changing package to k3s-io (#4846) 2022-03-02 15:47:27 -08:00
configfilearg Replace deprecated ioutil package (#6230) 2022-10-07 17:36:57 -07:00
containerd Update to v1.26.0-k3s1 (#6370) 2022-12-10 01:42:15 +02:00
crd Create CRDs with schema 2023-04-27 20:42:46 -07:00
ctr
daemons Fix race condition in tunnel server startup 2023-04-28 11:24:34 -07:00
data code changes to drop the vendor dir 2021-12-21 14:23:38 -07:00
datadir [master] changing package to k3s-io (#4846) 2022-03-02 15:47:27 -08:00
dataverify
deploy go generate 2023-04-28 11:13:47 -07:00
etcd Lock bootstrap data with empty key to prevent conflicts 2023-04-05 10:56:57 -07:00
flock Update golangci-lint to 1.45.2 2022-04-13 14:48:42 -07:00
generated Create CRDs with schema 2023-04-27 20:42:46 -07:00
kubeadm Add support for k3s token command 2023-02-07 14:55:04 -08:00
kubectl Track upstream changes to kubectl command execution 2022-03-16 17:19:18 -07:00
netutil Fix comments and add check in case of IPv6 only node 2022-08-04 09:54:45 +02:00
node [master] changing package to k3s-io (#4846) 2022-03-02 15:47:27 -08:00
nodeconfig Fix access to hostNetwork port on NodeIP when egress-selector-mode=agent 2023-02-10 09:43:34 -08:00
nodepassword Replace deprecated ioutil package (#6230) 2022-10-07 17:36:57 -07:00
passwd [master] changing package to k3s-io (#4846) 2022-03-02 15:47:27 -08:00
rootless Address nits from self-review 2022-11-21 15:23:30 -08:00
rootlessports [master] changing package to k3s-io (#4846) 2022-03-02 15:47:27 -08:00
secretsencrypt Ignore value conflicts when reencrypting secrets (#6850) 2023-02-07 13:58:44 -08:00
server Fix race condition in tunnel server startup 2023-04-28 11:24:34 -07:00
static go generate 2023-04-28 11:13:47 -07:00
token Replace deprecated ioutil package (#6230) 2022-10-07 17:36:57 -07:00
untar Bump wharfie to v0.5.1 and use shared decompression code 2021-12-07 12:50:57 -08:00
util Add support for cross-signing new certs during ca rotation 2023-03-13 16:56:28 -07:00
version