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
f53e0ff5
Commit
f53e0ff5
authored
Aug 07, 2015
by
Jerzy Szczepkowski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12133 from Huawei-PaaS/issue_ubuntu_MINION_IPS
Initialize global variable MINION_IPS in setClusterInfo function
parents
67d45821
2fd47194
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
util.sh
cluster/ubuntu/util.sh
+6
-0
No files found.
cluster/ubuntu/util.sh
View file @
f53e0ff5
...
@@ -37,6 +37,12 @@ function test-build-release {
...
@@ -37,6 +37,12 @@ function test-build-release {
# From user input set the necessary k8s and etcd configuration infomation
# From user input set the necessary k8s and etcd configuration infomation
function
setClusterInfo
()
{
function
setClusterInfo
()
{
# Initialize MINION_IPS in setClusterInfo function
# MINION_IPS is defined as a global variable, and is concatenated with other nodeIP
# When setClusterInfo is called for many times, this could cause potential problems
# Such as, you will have MINION_IPS=192.168.0.2,192.168.0.3,192.168.0.2,192.168.0.3 which is obviously wrong
MINION_IPS
=
""
ii
=
0
ii
=
0
for
i
in
$nodes
for
i
in
$nodes
do
do
...
...
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