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