Documentation ¶
Overview ¶
kubejobs adds APIs specific to k8s jobs
Index ¶
Constants ¶
View Source
const ( BackoffLimitExceededErr = "BackoffLimitExceeded" DeadlineExceededErr = "DeadlineExceeded" )
These can be moved outside this package into reaktor once we use them for resources other than Jobs. I want one other use-case before doing that refactoring.
Variables ¶
This section is empty.
Functions ¶
func IsJobTerminated ¶
func IsJobTerminated(e watch.Event, targetJob *unstructured.Unstructured) (bool, error)
Types ¶
type IsFailedWithReason ¶
IsFailedWithReason returns a boolean regarding whether the job failed to complete. It provides a best-effort Reason for the failure, if kubernetes api provides one.
func IsJobFailedWithReason ¶
func IsJobFailedWithReason(e *watch.Event) (*IsFailedWithReason, error)
Click to show internal directories.
Click to hide internal directories.