job

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DesiredJob

func DesiredJob(contour *operatorv1alpha1.Contour, image string) *batchv1.Job

DesiredJob generates the desired Job resource using image for the given contour.

func EnsureJob

func EnsureJob(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour, image string) error

EnsureJob ensures that a Job exists for the given contour. TODO [danehans]: The real dependency is whether the TLS secrets are present. The method should first check for the secrets, then use certgen as a secret generating strategy.

func EnsureJobDeleted

func EnsureJobDeleted(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour, image string) error

EnsureJobDeleted ensures the Job for the provided contour is deleted if Contour owner labels exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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