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
52cf3eae
Commit
52cf3eae
authored
Oct 29, 2016
by
Anirudh Ramanathan
Committed by
GitHub
Oct 29, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #35855 from caesarxuchao/fix-gke
Skip scheduleJob e2e test if it's not enabled on server
parents
a06a08a9
6d33edda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
generated_clientset.go
test/e2e/generated_clientset.go
+17
-0
No files found.
test/e2e/generated_clientset.go
View file @
52cf3eae
...
...
@@ -239,6 +239,23 @@ func newTestingScheduledJob(name string, value string) *v2alpha1.ScheduledJob {
var
_
=
framework
.
KubeDescribe
(
"Generated release_1_5 clientset"
,
func
()
{
f
:=
framework
.
NewDefaultFramework
(
"clientset"
)
It
(
"should create v2alpha1 scheduleJobs, delete scheduleJobs, watch scheduleJobs"
,
func
()
{
var
enabled
bool
groupList
,
err
:=
f
.
ClientSet_1_5
.
Discovery
()
.
ServerGroups
()
ExpectNoError
(
err
)
for
_
,
group
:=
range
groupList
.
Groups
{
if
group
.
Name
==
v2alpha1
.
GroupName
{
for
_
,
version
:=
range
group
.
Versions
{
if
version
.
Version
==
v2alpha1
.
SchemeGroupVersion
.
Version
{
enabled
=
true
break
}
}
}
}
if
!
enabled
{
framework
.
Logf
(
"%s is not enabled, test skipped"
,
v2alpha1
.
SchemeGroupVersion
)
return
}
scheduleJobClient
:=
f
.
ClientSet_1_5
.
BatchV2alpha1
()
.
ScheduledJobs
(
f
.
Namespace
.
Name
)
By
(
"constructing the scheduledJob"
)
name
:=
"scheduledjob"
+
string
(
uuid
.
NewUUID
())
...
...
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