job

package
v0.0.0-...-d7ad274 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DesiredJob

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

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

func EnsureJob

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

EnsureJob ensures that a Job exists for the given sesame. 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, Sesame *operatorv1alpha1.Sesame) error

EnsureJobDeleted ensures the Job for the provided sesame is deleted if Sesame 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