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 Update generated code 2019-10-30 19:08:26 -07:00
bootstrap Refactor tokens, bootstrap, and cli args 2019-10-30 19:06:49 -07:00
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 Move metrics-server manifests to sub-directory 2019-11-05 14:30:50 -07:00
containerd Continued refactoring 2019-01-11 21:52:30 -07:00
ctr Build & enable ctr with k3s server 2019-06-30 09:30:25 -07:00
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 Make kubeconfig not world readable and issue warning with kubectl wrapper 2019-05-09 00:54:52 +02:00
netutil Default node-ip from flannel-iface 2019-07-12 15:46:36 -07:00
node Fix panic in node controller 2019-08-06 10:42:42 -07:00
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 Refactor tokens, bootstrap, and cli args 2019-10-30 19:06:49 -07:00
untar Continued refactoring 2019-01-11 21:52:30 -07:00
util fix formatting 2020-02-23 00:48:26 -08:00
version remove hard coded value 2020-07-09 11:20:06 -07:00