Browse Source

Merge pull request #1847 from ericleu/patch_install.sh

update install.sh to respect K3S_TOKEN_FILE
pull/2192/head
Brad Davidson 4 years ago committed by GitHub
parent
commit
fd933c936f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      install.sh

4
install.sh

@ -163,8 +163,8 @@ setup_env() {
if [ -z "${K3S_URL}" ]; then
CMD_K3S=server
else
if [ -z "${K3S_TOKEN}" ] && [ -z "${K3S_CLUSTER_SECRET}" ]; then
fatal "Defaulted k3s exec command to 'agent' because K3S_URL is defined, but K3S_TOKEN or K3S_CLUSTER_SECRET is not defined."
if [ -z "${K3S_TOKEN}" ] && [ -z "${K3S_TOKEN_FILE}" ] && [ -z "${K3S_CLUSTER_SECRET}" ]; then
fatal "Defaulted k3s exec command to 'agent' because K3S_URL is defined, but K3S_TOKEN, K3S_TOKEN_FILE or K3S_CLUSTER_SECRET is not defined."
fi
CMD_K3S=agent
fi

Loading…
Cancel
Save