package util
import "k8s.io/kubernetes/pkg/controller/job/util"
Index ¶
- func FinishedCondition(j *batch.Job) (bool, batch.JobConditionType)
- func IsJobFinished(j *batch.Job) bool
- func IsJobSucceeded(j *batch.Job) bool
Functions ¶
func FinishedCondition ¶
func FinishedCondition(j *batch.Job) (bool, batch.JobConditionType)
FinishedCondition returns true if a job is finished as well as the condition type indicating that. Returns false and no condition type otherwise
func IsJobFinished ¶
IsJobFinished checks whether the given Job has finished execution. It does not discriminate between successful and failed terminations.
func IsJobSucceeded ¶
IsJobSucceeded returns whether a job has completed successfully.
Source Files ¶
utils.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 3 hours ago –
Tools for package owners.