k3s/pkg
Brad Davidson dfd0f9d1a6 Correctly report and propagate kubeconfig write failures
As seen in issues such as #15 #155 #518 #570 there are situations where
k3s will fail to write the kubeconfig file, but reports that it wrote it
anyway as the success message is printed unconditionally. Also, secondary
actions like setting file mode and creating a symlink are also attempted
even if the file was not created.

This change skips attempting additional actions, and propagates the
failure back upwards.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2020-07-24 12:07:32 -07:00
..
agent update cis flag implementation to propogate the rest of the way through to kubelet 2020-07-20 16:31:56 -07:00
apis/k3s.cattle.io
bootstrap
cli update cis flag implementation to propogate the rest of the way through to kubelet 2020-07-20 16:31:56 -07:00
clientaccess Add supervisor port 2020-05-05 15:54:51 -07:00
cloudprovider Make program name a variable to be changed at compile time 2020-06-06 16:39:41 -07:00
cluster Add embedded etcd support 2020-06-06 16:39:41 -07:00
codegen
containerd
ctr
daemons update cis flag implementation to propogate the rest of the way through to kubelet 2020-07-20 16:31:56 -07:00
datadir Make program name a variable to be changed at compile time 2020-06-06 16:39:41 -07:00
deploy Update coredns version to 1.6.9 for master 2020-07-21 11:06:44 -07:00
etcd Add heartbeat interval and election timeout 2020-06-06 16:39:42 -07:00
generated go generate 2020-04-23 02:42:12 +02:00
kubectl
netutil
node
nodeconfig Make program name a variable to be changed at compile time 2020-06-06 16:39:41 -07:00
passwd get build on windows and get api_server to work 2020-02-22 23:17:59 -08:00
rootless Merge pull request #1444 from KnicKnic/k3s_build_windows 2020-02-27 11:46:21 -07:00
rootlessports Mock out rootlessports on windows 2020-04-21 15:43:36 -07:00
server Correctly report and propagate kubeconfig write failures 2020-07-24 12:07:32 -07:00
servicelb servicelb: fix ineffective toleration 2020-06-11 14:39:12 -07:00
static Revert "Replace traefik with nginx" 2020-03-11 01:45:23 +02:00
token
untar
util fix formatting 2020-02-23 00:48:26 -08:00
version remove hard coded value 2020-07-09 11:20:06 -07:00