k3s/pkg/server
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
..
auth.go Make supervisor errors parsable by Kubernetes client libs 2022-04-29 09:23:37 -07:00
cert.go Add support for cross-signing new certs during ca rotation 2023-03-13 16:56:28 -07:00
context.go Create CRDs with schema 2023-04-27 20:42:46 -07:00
router.go Add support for cross-signing new certs during ca rotation 2023-03-13 16:56:28 -07:00
secrets-encrypt.go Add certificate rotate-ca to write updated CA certs to datastore 2023-02-06 15:09:31 -08:00
server.go Fix race condition in tunnel server startup 2023-04-28 11:24:34 -07:00
types.go Move DisableServiceLB/Rootless/ServiceLBNamespace into config.Control 2022-09-30 08:17:20 -07:00