kubejobs

package
v0.0.0-...-2dfab7d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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 IsJobCompleted

func IsJobCompleted(e *watch.Event) (bool, error)

func IsJobTerminated

func IsJobTerminated(e watch.Event, targetJob *unstructured.Unstructured) (bool, error)

Types

type IsFailedWithReason

type IsFailedWithReason struct {
	IsFailed bool
	Reason   string
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL