kubernetesk8s.io/kubernetes/pkg/controller/job/util Index | Files

package util

import "k8s.io/kubernetes/pkg/controller/job/util"

Index

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

func IsJobFinished(j *batch.Job) bool

IsJobFinished checks whether the given Job has finished execution. It does not discriminate between successful and failed terminations.

func IsJobSucceeded

func IsJobSucceeded(j *batch.Job) bool

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.