jobs

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImageBuilderOwnedLabel = "image-builder.kubernetesupgraded.dimitrikoshkin.com/owned"

	IDAnnotation = "kubernetesupgraded.dimitrikoshkin.com/image-id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageBuilderJobManager

type ImageBuilderJobManager struct {
	// contains filtered or unexported fields
}

func (*ImageBuilderJobManager) Create

func (*ImageBuilderJobManager) Delete

func (*ImageBuilderJobManager) Status

Status will return the status of the job and the image ID if it was built successfully.

type Manager added in v0.3.0

type Manager interface {
	Create(
		ctx context.Context,
		owner *kubernetesupgraderv1.MachineImage,
		spec *corev1.PodSpec,
	) (*corev1.ObjectReference, error)
	Status(ctx context.Context, ref *corev1.ObjectReference) (*batchv1.JobStatus, string, error)
	Delete(ctx context.Context, ref *corev1.ObjectReference) error
}

func NewManager added in v0.3.0

func NewManager(client runtimeclient.Client) Manager

Jump to

Keyboard shortcuts

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