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
74ad0def
Commit
74ad0def
authored
May 31, 2016
by
Marcin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing $ in util.sh
parent
5762ebfc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
util.sh
cluster/gce/util.sh
+3
-3
No files found.
cluster/gce/util.sh
View file @
74ad0def
...
@@ -804,14 +804,14 @@ function create-cluster-autoscaler-mig-config() {
...
@@ -804,14 +804,14 @@ function create-cluster-autoscaler-mig-config() {
# must be greater or equal to the number of migs.
# must be greater or equal to the number of migs.
if
[[
${
AUTOSCALER_MIN_NODES
}
<
${
NUM_MIGS
}
]]
;
then
if
[[
${
AUTOSCALER_MIN_NODES
}
<
${
NUM_MIGS
}
]]
;
then
echo
"AUTOSCALER_MIN_NODES must be greater or equal
${
NUM_MIGS
}
"
echo
"AUTOSCALER_MIN_NODES must be greater or equal
${
NUM_MIGS
}
"
exit
2
exit
2
fi
fi
# Each MIG must have at least one node, so the min number of nodes
# Each MIG must have at least one node, so the min number of nodes
# must be greater or equal to the number of migs.
# must be greater or equal to the number of migs.
if
[[
${
AUTOSCALER_MAX_NODES
}
<
${
NUM_MIGS
}
]]
;
then
if
[[
${
AUTOSCALER_MAX_NODES
}
<
${
NUM_MIGS
}
]]
;
then
echo
"AUTOSCALER_MAX_NODES must be greater or equal
${
NUM_MIGS
}
"
echo
"AUTOSCALER_MAX_NODES must be greater or equal
${
NUM_MIGS
}
"
exit
2
exit
2
fi
fi
# The code assumes that the migs were created with create-nodes
# The code assumes that the migs were created with create-nodes
...
@@ -838,7 +838,7 @@ function create-cluster-autoscaler-mig-config() {
...
@@ -838,7 +838,7 @@ function create-cluster-autoscaler-mig-config() {
AUTOSCALER_MIG_CONFIG
=
"
${
AUTOSCALER_MIG_CONFIG
}
--nodes=
${
this_mig_min
}
:
${
this_mig_max
}
:
${
mig_url
}
"
AUTOSCALER_MIG_CONFIG
=
"
${
AUTOSCALER_MIG_CONFIG
}
--nodes=
${
this_mig_min
}
:
${
this_mig_max
}
:
${
mig_url
}
"
done
done
AUTOSCALER_MIG_CONFIG
=
"{AUTOSCALER_MIG_CONFIG} --experimental-scale-down-enabled=
${
AUTOSCALER_ENABLE_SCALE_DOWN
}
"
AUTOSCALER_MIG_CONFIG
=
"
$
{
AUTOSCALER_MIG_CONFIG
}
--experimental-scale-down-enabled=
${
AUTOSCALER_ENABLE_SCALE_DOWN
}
"
}
}
# Assumes:
# Assumes:
...
...
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