- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for getFinishAndExpireTime (0.16 sec)
-
pkg/controller/ttlafterfinished/ttlafterfinished_controller.go
} // needsCleanup checks whether a Job has finished and has a TTL set. func needsCleanup(j *batch.Job) bool { return j.Spec.TTLSecondsAfterFinished != nil && jobutil.IsJobFinished(j) } func getFinishAndExpireTime(j *batch.Job) (*time.Time, *time.Time, error) { if !needsCleanup(j) { return nil, nil, fmt.Errorf("job %s/%s should not be cleaned up", j.Namespace, j.Name) } t, err := jobFinishTime(j) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 07 23:59:28 UTC 2024 - 10.4K bytes - Viewed (0)