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
71501d03
Commit
71501d03
authored
Aug 12, 2017
by
zhangxiaoyu-zidif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do-rebase
parent
c1da492a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
utils.go
pkg/controller/cronjob/utils.go
+1
-3
No files found.
pkg/controller/cronjob/utils.go
View file @
71501d03
...
@@ -169,8 +169,6 @@ func getRecentUnmetScheduleTimes(sj batchv2alpha1.CronJob, now time.Time) ([]tim
...
@@ -169,8 +169,6 @@ func getRecentUnmetScheduleTimes(sj batchv2alpha1.CronJob, now time.Time) ([]tim
return
starts
,
nil
return
starts
,
nil
}
}
// XXX unit test this
// getJobFromTemplate makes a Job from a CronJob
// getJobFromTemplate makes a Job from a CronJob
func
getJobFromTemplate
(
sj
*
batchv2alpha1
.
CronJob
,
scheduledTime
time
.
Time
)
(
*
batchv1
.
Job
,
error
)
{
func
getJobFromTemplate
(
sj
*
batchv2alpha1
.
CronJob
,
scheduledTime
time
.
Time
)
(
*
batchv1
.
Job
,
error
)
{
// TODO: consider adding the following labels:
// TODO: consider adding the following labels:
...
@@ -200,7 +198,7 @@ func getJobFromTemplate(sj *batchv2alpha1.CronJob, scheduledTime time.Time) (*ba
...
@@ -200,7 +198,7 @@ func getJobFromTemplate(sj *batchv2alpha1.CronJob, scheduledTime time.Time) (*ba
return
job
,
nil
return
job
,
nil
}
}
//
Return
Unix Epoch Time
//
getTimeHash returns
Unix Epoch Time
func
getTimeHash
(
scheduledTime
time
.
Time
)
int64
{
func
getTimeHash
(
scheduledTime
time
.
Time
)
int64
{
return
scheduledTime
.
Unix
()
return
scheduledTime
.
Unix
()
}
}
...
...
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