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
f5159b49
Commit
f5159b49
authored
Aug 01, 2016
by
Bryan Boreham
Committed by
Bryan Boreham
Aug 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct gcloud list arg from '--zone' to '--zones'
`--zone` was accepted as an abbreviation but is now deprecated and will be disabled entirely in gcloud 132.0.0.
parent
31da82df
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
list-resources.sh
cluster/gce/list-resources.sh
+3
-3
upgrade.sh
cluster/gce/upgrade.sh
+1
-1
util.sh
cluster/gce/util.sh
+3
-3
No files found.
cluster/gce/list-resources.sh
View file @
f5159b49
...
@@ -74,11 +74,11 @@ echo "Provider: ${KUBERNETES_PROVIDER:-}"
...
@@ -74,11 +74,11 @@ echo "Provider: ${KUBERNETES_PROVIDER:-}"
# List resources related to instances, filtering by the instance prefix if
# List resources related to instances, filtering by the instance prefix if
# provided.
# provided.
gcloud-compute-list instance-templates
--regexp
=
"
${
INSTANCE_PREFIX
}
.*"
gcloud-compute-list instance-templates
--regexp
=
"
${
INSTANCE_PREFIX
}
.*"
gcloud-compute-list instance-groups
${
ZONE
:+
"--zone=
${
ZONE
}
"
}
--regexp
=
"
${
INSTANCE_PREFIX
}
.*"
gcloud-compute-list instance-groups
${
ZONE
:+
"--zone
s
=
${
ZONE
}
"
}
--regexp
=
"
${
INSTANCE_PREFIX
}
.*"
gcloud-compute-list instances
${
ZONE
:+
"--zone=
${
ZONE
}
"
}
--regexp
=
"
${
INSTANCE_PREFIX
}
.*"
gcloud-compute-list instances
${
ZONE
:+
"--zone
s
=
${
ZONE
}
"
}
--regexp
=
"
${
INSTANCE_PREFIX
}
.*"
# List disk resources, filterying by instance prefix if provided.
# List disk resources, filterying by instance prefix if provided.
gcloud-compute-list disks
${
ZONE
:+
"--zone=
${
ZONE
}
"
}
--regexp
=
"
${
INSTANCE_PREFIX
}
.*"
gcloud-compute-list disks
${
ZONE
:+
"--zone
s
=
${
ZONE
}
"
}
--regexp
=
"
${
INSTANCE_PREFIX
}
.*"
# List network resources. We include names starting with "a", corresponding to
# List network resources. We include names starting with "a", corresponding to
# those that Kubernetes creates.
# those that Kubernetes creates.
...
...
cluster/gce/upgrade.sh
View file @
f5159b49
...
@@ -221,7 +221,7 @@ function do-node-upgrade() {
...
@@ -221,7 +221,7 @@ function do-node-upgrade() {
for
group
in
${
INSTANCE_GROUPS
[@]
}
;
do
for
group
in
${
INSTANCE_GROUPS
[@]
}
;
do
old_templates+
=(
$(
gcloud compute instance-groups managed list
\
old_templates+
=(
$(
gcloud compute instance-groups managed list
\
--project
=
"
${
PROJECT
}
"
\
--project
=
"
${
PROJECT
}
"
\
--zone
=
"
${
ZONE
}
"
\
--zone
s
=
"
${
ZONE
}
"
\
--regexp
=
"
${
group
}
"
\
--regexp
=
"
${
group
}
"
\
--format
=
'value(instanceTemplate)'
||
true
)
)
--format
=
'value(instanceTemplate)'
||
true
)
)
update
=
$(
gcloud alpha compute rolling-updates
\
update
=
$(
gcloud alpha compute rolling-updates
\
...
...
cluster/gce/util.sh
View file @
f5159b49
...
@@ -333,7 +333,7 @@ function detect-node-names {
...
@@ -333,7 +333,7 @@ function detect-node-names {
detect-project
detect-project
INSTANCE_GROUPS
=()
INSTANCE_GROUPS
=()
INSTANCE_GROUPS+
=(
$(
gcloud compute instance-groups managed list
\
INSTANCE_GROUPS+
=(
$(
gcloud compute instance-groups managed list
\
--zone
"
${
ZONE
}
"
--project
"
${
PROJECT
}
"
\
--zone
s
"
${
ZONE
}
"
--project
"
${
PROJECT
}
"
\
--regexp
"
${
NODE_INSTANCE_PREFIX
}
-.+"
\
--regexp
"
${
NODE_INSTANCE_PREFIX
}
-.+"
\
--format
=
'value(instanceGroup)'
||
true
)
)
--format
=
'value(instanceGroup)'
||
true
)
)
NODE_NAMES
=()
NODE_NAMES
=()
...
@@ -1163,7 +1163,7 @@ function kube-down {
...
@@ -1163,7 +1163,7 @@ function kube-down {
# Find out what minions are running.
# Find out what minions are running.
local
-a
minions
local
-a
minions
minions
=(
$(
gcloud compute instances list
\
minions
=(
$(
gcloud compute instances list
\
--project
"
${
PROJECT
}
"
--zone
"
${
ZONE
}
"
\
--project
"
${
PROJECT
}
"
--zone
s
"
${
ZONE
}
"
\
--regexp
"
${
NODE_INSTANCE_PREFIX
}
-.+"
\
--regexp
"
${
NODE_INSTANCE_PREFIX
}
-.+"
\
--format
=
'value(name)'
)
)
--format
=
'value(name)'
)
)
# If any minions are running, delete them in batches.
# If any minions are running, delete them in batches.
...
@@ -1275,7 +1275,7 @@ function check-resources {
...
@@ -1275,7 +1275,7 @@ function check-resources {
# Find out what minions are running.
# Find out what minions are running.
local
-a
minions
local
-a
minions
minions
=(
$(
gcloud compute instances list
\
minions
=(
$(
gcloud compute instances list
\
--project
"
${
PROJECT
}
"
--zone
"
${
ZONE
}
"
\
--project
"
${
PROJECT
}
"
--zone
s
"
${
ZONE
}
"
\
--regexp
"
${
NODE_INSTANCE_PREFIX
}
-.+"
\
--regexp
"
${
NODE_INSTANCE_PREFIX
}
-.+"
\
--format
=
'value(name)'
)
)
--format
=
'value(name)'
)
)
if
((
"
${#
minions
[@]
}
"
>
0
))
;
then
if
((
"
${#
minions
[@]
}
"
>
0
))
;
then
...
...
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