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
0cf7fd85
Commit
0cf7fd85
authored
May 16, 2017
by
Kubernetes Submit Queue
Committed by
GitHub
May 16, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #45860 from mml/instance-templates-delete
Automatic merge from submit-queue Add --quiet to instance-templates delete.
parents
008fcfed
5dd4a5d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
util.sh
cluster/gce/util.sh
+1
-1
No files found.
cluster/gce/util.sh
View file @
0cf7fd85
...
@@ -498,7 +498,7 @@ function create-node-template() {
...
@@ -498,7 +498,7 @@ function create-node-template() {
# distinguish an ephemeral failed call from a "not-exists".
# distinguish an ephemeral failed call from a "not-exists".
if
gcloud compute instance-templates describe
"
$template_name
"
--project
"
${
PROJECT
}
"
&>/dev/null
;
then
if
gcloud compute instance-templates describe
"
$template_name
"
--project
"
${
PROJECT
}
"
&>/dev/null
;
then
echo
"Instance template
${
1
}
already exists; deleting."
>
&2
echo
"Instance template
${
1
}
already exists; deleting."
>
&2
if
!
gcloud compute instance-templates delete
"
$template_name
"
--project
"
${
PROJECT
}
"
&>/dev/null
;
then
if
!
gcloud compute instance-templates delete
"
$template_name
"
--project
"
${
PROJECT
}
"
--quiet
&>/dev/null
;
then
echo
-e
"
${
color_yellow
}
Failed to delete existing instance template
${
color_norm
}
"
>
&2
echo
-e
"
${
color_yellow
}
Failed to delete existing instance template
${
color_norm
}
"
>
&2
exit
2
exit
2
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