imagejob

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJobForWorkload

func CreateJobForWorkload(c client.Client, owner metav1.Object, name, image string, labels map[string]string, podSelector metav1.LabelSelector, pullSecrets []string) error

func DeleteJobsForWorkload

func DeleteJobsForWorkload(c client.Client, ownerObj metav1.Object) error

func GetActiveJobsForNodeImage

func GetActiveJobsForNodeImage(reader client.Reader, nodeImage, oldNodeImage *appsv1alpha1.NodeImage) (newJobs, oldJobs []*appsv1alpha1.ImagePullJob, err error)

func GetActiveJobsForPod

func GetActiveJobsForPod(reader client.Reader, pod, oldPod *v1.Pod) (newJobs, oldJobs []*appsv1alpha1.ImagePullJob, err error)

func GetNodeImagesForJob

func GetNodeImagesForJob(reader client.Reader, job *appsv1alpha1.ImagePullJob) (nodeImages []*appsv1alpha1.NodeImage, err error)

func PopCachedNodeImagesForJob

func PopCachedNodeImagesForJob(job *appsv1alpha1.ImagePullJob) []string

func SortSpecImageTags

func SortSpecImageTags(imageSpec *appsv1alpha1.ImageSpec)

func SortStatusImageTags

func SortStatusImageTags(imageStatus *appsv1alpha1.ImageStatus)

Types

This section is empty.

Jump to

Keyboard shortcuts

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