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
c020159f
Commit
c020159f
authored
Oct 02, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14788 from brendandburns/e2e4
Auto commit by PR queue bot
parents
e29eab2a
edd46543
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pd.go
test/e2e/pd.go
+3
-3
No files found.
test/e2e/pd.go
View file @
c020159f
...
@@ -327,7 +327,7 @@ func createPD() (string, error) {
...
@@ -327,7 +327,7 @@ func createPD() (string, error) {
zone
:=
testContext
.
CloudConfig
.
Zone
zone
:=
testContext
.
CloudConfig
.
Zone
// TODO: make this hit the compute API directly instread of shelling out to gcloud.
// TODO: make this hit the compute API directly instread of shelling out to gcloud.
err
:=
exec
.
Command
(
"gcloud"
,
"compute"
,
"--project="
+
testContext
.
CloudConfig
.
ProjectID
,
"disks"
,
"create"
,
"--zone="
+
zone
,
"--size=10GB"
,
pdName
)
.
Run
()
err
:=
exec
.
Command
(
"gcloud"
,
"compute"
,
"--
quiet"
,
"--
project="
+
testContext
.
CloudConfig
.
ProjectID
,
"disks"
,
"create"
,
"--zone="
+
zone
,
"--size=10GB"
,
pdName
)
.
Run
()
if
err
!=
nil
{
if
err
!=
nil
{
return
""
,
err
return
""
,
err
}
}
...
@@ -348,7 +348,7 @@ func deletePD(pdName string) error {
...
@@ -348,7 +348,7 @@ func deletePD(pdName string) error {
zone
:=
testContext
.
CloudConfig
.
Zone
zone
:=
testContext
.
CloudConfig
.
Zone
// TODO: make this hit the compute API directly.
// TODO: make this hit the compute API directly.
cmd
:=
exec
.
Command
(
"gcloud"
,
"compute"
,
"--project="
+
testContext
.
CloudConfig
.
ProjectID
,
"disks"
,
"delete"
,
"--zone="
+
zone
,
pdName
)
cmd
:=
exec
.
Command
(
"gcloud"
,
"compute"
,
"--
quiet"
,
"--
project="
+
testContext
.
CloudConfig
.
ProjectID
,
"disks"
,
"delete"
,
"--zone="
+
zone
,
pdName
)
data
,
err
:=
cmd
.
CombinedOutput
()
data
,
err
:=
cmd
.
CombinedOutput
()
if
err
!=
nil
{
if
err
!=
nil
{
dataStr
:=
string
(
data
)
dataStr
:=
string
(
data
)
...
@@ -376,7 +376,7 @@ func detachPD(hostName, pdName string) error {
...
@@ -376,7 +376,7 @@ func detachPD(hostName, pdName string) error {
zone
:=
testContext
.
CloudConfig
.
Zone
zone
:=
testContext
.
CloudConfig
.
Zone
// TODO: make this hit the compute API directly.
// TODO: make this hit the compute API directly.
return
exec
.
Command
(
"gcloud"
,
"compute"
,
"--project="
+
testContext
.
CloudConfig
.
ProjectID
,
"detach-disk"
,
"--zone="
+
zone
,
"--disk="
+
pdName
,
instanceName
)
.
Run
()
return
exec
.
Command
(
"gcloud"
,
"compute"
,
"--
quiet"
,
"--
project="
+
testContext
.
CloudConfig
.
ProjectID
,
"detach-disk"
,
"--zone="
+
zone
,
"--disk="
+
pdName
,
instanceName
)
.
Run
()
}
else
{
}
else
{
volumes
,
ok
:=
testContext
.
CloudConfig
.
Provider
.
(
aws_cloud
.
Volumes
)
volumes
,
ok
:=
testContext
.
CloudConfig
.
Provider
.
(
aws_cloud
.
Volumes
)
if
!
ok
{
if
!
ok
{
...
...
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