mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 16:29:21 +00:00
remove todo suggesting to add the cronjob start time
This commit is contained in:
parent
c669ce440c
commit
e8efc51c1c
@ -171,8 +171,6 @@ func getRecentUnmetScheduleTimes(sj batchv1beta1.CronJob, now time.Time) ([]time
|
|||||||
|
|
||||||
// getJobFromTemplate makes a Job from a CronJob
|
// getJobFromTemplate makes a Job from a CronJob
|
||||||
func getJobFromTemplate(sj *batchv1beta1.CronJob, scheduledTime time.Time) (*batchv1.Job, error) {
|
func getJobFromTemplate(sj *batchv1beta1.CronJob, scheduledTime time.Time) (*batchv1.Job, error) {
|
||||||
// TODO: consider adding the following labels:
|
|
||||||
// nominal-start-time=$RFC_3339_DATE_OF_INTENDED_START -- for user convenience
|
|
||||||
labels := copyLabels(&sj.Spec.JobTemplate)
|
labels := copyLabels(&sj.Spec.JobTemplate)
|
||||||
annotations := copyAnnotations(&sj.Spec.JobTemplate)
|
annotations := copyAnnotations(&sj.Spec.JobTemplate)
|
||||||
// We want job names for a given nominal start time to have a deterministic name to avoid the same job being created twice
|
// We want job names for a given nominal start time to have a deterministic name to avoid the same job being created twice
|
||||||
|
Loading…
Reference in New Issue
Block a user