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
fe76c9f7
Commit
fe76c9f7
authored
Mar 15, 2018
by
Cheng Xing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes 'Zone is empty' errors in PD upgrade tests; skips pd tests with inline…
Fixes 'Zone is empty' errors in PD upgrade tests; skips pd tests with inline volume in multizone clusters
parent
02611149
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
pv_util.go
test/e2e/framework/pv_util.go
+8
-0
util.go
test/e2e/framework/util.go
+10
-0
pd.go
test/e2e/storage/pd.go
+2
-0
No files found.
test/e2e/framework/pv_util.go
View file @
fe76c9f7
...
...
@@ -708,6 +708,14 @@ func createPD(zone string) (string, error) {
return
""
,
err
}
if
zone
==
""
&&
TestContext
.
CloudConfig
.
MultiZone
{
zones
,
err
:=
gceCloud
.
GetAllZonesFromCloudProvider
()
if
err
!=
nil
{
return
""
,
err
}
zone
,
_
=
zones
.
PopAny
()
}
tags
:=
map
[
string
]
string
{}
err
=
gceCloud
.
CreateDisk
(
pdName
,
gcecloud
.
DiskTypeSSD
,
zone
,
10
/* sizeGb */
,
tags
)
if
err
!=
nil
{
...
...
test/e2e/framework/util.go
View file @
fe76c9f7
...
...
@@ -348,6 +348,16 @@ func SkipUnlessMultizone(c clientset.Interface) {
}
}
func
SkipIfMultizone
(
c
clientset
.
Interface
)
{
zones
,
err
:=
GetClusterZones
(
c
)
if
err
!=
nil
{
Skipf
(
"Error listing cluster zones"
)
}
if
zones
.
Len
()
>
1
{
Skipf
(
"Requires more than one zone"
)
}
}
func
SkipUnlessClusterMonitoringModeIs
(
supportedMonitoring
...
string
)
{
if
!
ClusterMonitoringModeIs
(
supportedMonitoring
...
)
{
Skipf
(
"Only next monitoring modes are supported %v (not %s)"
,
supportedMonitoring
,
TestContext
.
ClusterMonitoringMode
)
...
...
test/e2e/storage/pd.go
View file @
fe76c9f7
...
...
@@ -70,6 +70,8 @@ var _ = utils.SIGDescribe("Pod Disks", func() {
cs
=
f
.
ClientSet
ns
=
f
.
Namespace
.
Name
framework
.
SkipIfMultizone
(
cs
)
podClient
=
cs
.
CoreV1
()
.
Pods
(
ns
)
nodeClient
=
cs
.
CoreV1
()
.
Nodes
()
nodes
=
framework
.
GetReadySchedulableNodesOrDie
(
cs
)
...
...
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