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.
Click to show internal directories.
Click to hide internal directories.