k3s/pkg
Brad Davidson ce17fce058 Add helper function for including stack trace with error message
Not currently used, but was useful in tracking down the specific call path for the empty token handling

Prints error as:
> `msg="Error: starting kubernetes: failed to start cluster: failed to normalize server token; must be in format K10<CA-HASH>::<USERNAME>:<PASSWORD> or <PASSWORD> at github.com/urfave/cli/v2.(*App).RunContext(app.go:333)->github.com/urfave/cli/v2.(*Command).Run(command.go:269)->github.com/urfave/cli/v2.(*Command).Run(command.go:276)->github.com/k3s-io/k3s/pkg/cli/server.Run(server.go:48)->github.com/k3s-io/k3s/pkg/cli/server.run(server.go:629)->github.com/k3s-io/k3s/pkg/server.StartServer(server.go:74)->github.com/k3s-io/k3s/pkg/daemons/control.Server(server.go:72)->github.com/k3s-io/k3s/pkg/cluster.(*Cluster).Start(cluster.go:75)->github.com/k3s-io/k3s/pkg/cluster.Save(storage.go:79)->github.com/k3s-io/k3s/pkg/util.NormalizeToken(token.go:51)"`

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2026-02-03 14:47:50 -08:00
..
agent Fix atomic write in WriteSubnetFile 2026-01-08 11:37:41 -08:00
authenticator lint: unnecessary-format,use-errors-new 2025-12-18 11:20:07 -08:00
bootstrap lint: use-any 2025-12-18 11:20:07 -08:00
certmonitor lint: empty-lines 2025-12-18 11:20:07 -08:00
cgroups lint: unnecessary-stmt 2025-12-18 11:20:07 -08:00
cli Move to rootlesskit v2 (#13486) 2026-01-21 10:14:10 -08:00
clientaccess lint: unhandled-error 2025-12-18 11:20:07 -08:00
cloudprovider lint: unnecessary-format,use-errors-new 2025-12-18 11:20:07 -08:00
cluster Fix restart of control-plane-only nodes attempting to reconcile from local datastore 2026-01-30 18:39:02 -08:00
configfilearg lint: bare-return 2025-12-18 11:20:07 -08:00
containerd lint: redundant-build-tag 2025-12-18 11:20:07 -08:00
ctr Upgrade containerd to v2.0.2 2025-02-07 12:03:48 -08:00
daemons Allow k3s secrets-encrypt enable on existing clusters 2025-12-30 10:34:23 -08:00
data refactor: replace go-bindata with native embed package 2025-07-31 11:53:06 -07:00
datadir Avoid use of github.com/pkg/errors functions that capture stack 2025-03-05 00:41:38 -08:00
dataverify Add file verification for data directory 2020-10-06 10:29:27 -07:00
deploy lint: redefines-builtin-id 2025-12-18 11:20:07 -08:00
etcd Fix restart of control-plane-only nodes attempting to reconcile from local datastore 2026-01-30 18:39:02 -08:00
executor/embed lint: nested-structs 2025-12-18 11:20:07 -08:00
flock lint: redundant-build-tag 2025-12-18 11:20:07 -08:00
kubeadm lint: empty-lines 2025-12-18 11:20:07 -08:00
kubectl Drop calls to rand.Seed 2025-10-02 09:47:25 -07:00
metrics Move etcd metrics to separate package 2025-12-08 12:53:10 -08:00
node Move node password secrets into dedicated controller 2025-10-27 15:06:45 -07:00
nodeconfig Use patch helper for node labels and annotations 2025-12-08 12:53:10 -08:00
nodepassword lint: unnecessary-format,use-errors-new 2025-12-18 11:20:07 -08:00
passwd VPN PoC 2023-06-09 12:39:33 +02:00
proctitle lint: redundant-build-tag 2025-12-18 11:20:07 -08:00
profile Refactor supervisor listener startup and add metrics 2024-05-28 16:24:57 -07:00
rootless Move to rootlesskit v2 (#13486) 2026-01-21 10:14:10 -08:00
rootlessports Move to rootlesskit v2 (#13486) 2026-01-21 10:14:10 -08:00
secretsencrypt Allow k3s secrets-encrypt enable on existing clusters 2025-12-30 10:34:23 -08:00
server Add IPv6 loopback to kubelet-serving cert 2026-02-03 14:47:34 -08:00
signals lint: deep-exit 2025-12-18 11:20:07 -08:00
spegel Fix filter for wildcards 2026-01-30 20:14:55 -08:00
static lint: redundant-build-tag 2025-12-18 11:20:07 -08:00
untar Bump wharfie to v0.5.1 and use shared decompression code 2021-12-07 12:50:57 -08:00
util Add helper function for including stack trace with error message 2026-02-03 14:47:50 -08:00
version Add runtime checking of golang version 2024-01-04 17:22:46 -08:00
vpn lint: exported 2025-12-18 11:20:07 -08:00