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
09f9dc7d
Commit
09f9dc7d
authored
Dec 11, 2015
by
Jeff Lowdermilk
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #18578 from ihmccreery/quiet-upgrades
Add quiet mode to gcloud calls from upgrade e2e tests
parents
9f3d28c7
6aa463a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
cluster_upgrade.go
test/e2e/cluster_upgrade.go
+7
-2
No files found.
test/e2e/cluster_upgrade.go
View file @
09f9dc7d
...
@@ -83,7 +83,8 @@ func masterUpgradeGKE(v string) error {
...
@@ -83,7 +83,8 @@ func masterUpgradeGKE(v string) error {
"upgrade"
,
"upgrade"
,
testContext
.
CloudConfig
.
Cluster
,
testContext
.
CloudConfig
.
Cluster
,
"--master"
,
"--master"
,
fmt
.
Sprintf
(
"--cluster-version=%s"
,
v
))
fmt
.
Sprintf
(
"--cluster-version=%s"
,
v
),
"--quiet"
)
return
err
return
err
}
}
...
@@ -141,7 +142,8 @@ func nodeUpgradeGKE(v string) error {
...
@@ -141,7 +142,8 @@ func nodeUpgradeGKE(v string) error {
"clusters"
,
"clusters"
,
"upgrade"
,
"upgrade"
,
testContext
.
CloudConfig
.
Cluster
,
testContext
.
CloudConfig
.
Cluster
,
fmt
.
Sprintf
(
"--cluster-version=%s"
,
v
))
fmt
.
Sprintf
(
"--cluster-version=%s"
,
v
),
"--quiet"
)
return
err
return
err
}
}
...
@@ -393,6 +395,9 @@ func retryCmd(command string, args ...string) (string, string, error) {
...
@@ -393,6 +395,9 @@ func retryCmd(command string, args ...string) (string, string, error) {
// runCmd runs cmd using args and returns its stdout and stderr. It also outputs
// runCmd runs cmd using args and returns its stdout and stderr. It also outputs
// cmd's stdout and stderr to their respective OS streams.
// cmd's stdout and stderr to their respective OS streams.
//
// TODO(ihmccreery) This function should either be moved into util.go or
// removed; other e2e's use bare exe.Command.
func
runCmd
(
command
string
,
args
...
string
)
(
string
,
string
,
error
)
{
func
runCmd
(
command
string
,
args
...
string
)
(
string
,
string
,
error
)
{
Logf
(
"Running %s %v"
,
command
,
args
)
Logf
(
"Running %s %v"
,
command
,
args
)
var
bout
,
berr
bytes
.
Buffer
var
bout
,
berr
bytes
.
Buffer
...
...
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