Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
b966ad18
Commit
b966ad18
authored
May 31, 2020
by
Eric Leu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update install.sh to respect K3S_TOKEN_FILE
parent
02dccd32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
install.sh
install.sh
+2
-2
No files found.
install.sh
View file @
b966ad18
...
@@ -150,8 +150,8 @@ setup_env() {
...
@@ -150,8 +150,8 @@ setup_env() {
if
[
-z
"
${
K3S_URL
}
"
]
;
then
if
[
-z
"
${
K3S_URL
}
"
]
;
then
CMD_K3S
=
server
CMD_K3S
=
server
else
else
if
[
-z
"
${
K3S_TOKEN
}
"
]
&&
[
-z
"
${
K3S_CLUSTER_SECRET
}
"
]
;
then
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 or K3S_CLUSTER_SECRET is not defined."
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
fi
CMD_K3S
=
agent
CMD_K3S
=
agent
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment