• Brad Davidson's avatar
    Correctly report and propagate kubeconfig write failures · dfd0f9d1
    Brad Davidson authored
    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: 's avatarBrad Davidson <brad.davidson@rancher.com>
    dfd0f9d1
server.go 12.1 KB