job

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PodResultPrefix the result of the pod status
	PodResultPrefix = "POD RESULT: "

	// PodResultOK if the pod completed successfully
	PodResultOK = "OK"

	// PodResultFailed if the pod failed
	PodResultFailed = "FAILED: "
)

Variables

This section is empty.

Functions

func GetSortedJobs

func GetSortedJobs(client kubernetes.Interface, ns, selector, fieldSelector string) ([]batchv1.Job, error)

GetSortedJobs gets the jobs with an optional commit sha filter

Types

type Options

type Options struct {
	options.BaseOptions

	Namespace     string
	Name          string
	Selector      string
	FieldSelector string
	ContainerName string
	Duration      time.Duration
	PollPeriod    time.Duration
	NoTail        bool
	LogFail       bool
	VerifyResult  bool
	ErrOut        io.Writer
	Out           io.Writer
	KubeClient    kubernetes.Interface
	Input         input.Interface
	// contains filtered or unexported fields
}

Options contains the command line arguments for this command

func NewCmdVerifyJob

func NewCmdVerifyJob() (*cobra.Command, *Options)

NewCmdVerifyJob creates the new command

func (*Options) Run

func (o *Options) Run() error

func (*Options) Validate

func (o *Options) Validate() error

Validate verifies the settings are correct and we can lazy create any required resources

Jump to

Keyboard shortcuts

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