Documentation
¶
Index ¶
- func BuildJobTolerations(cluster *appsv1.Cluster, job *batchv1.Job) error
- func CheckJobSucceed(ctx context.Context, cli client.Reader, cluster *appsv1.Cluster, ...) error
- func CleanJobByName(ctx context.Context, cli client.Client, cluster *appsv1.Cluster, ...) error
- func CleanJobWithLabels(ctx context.Context, cli client.Client, cluster *appsv1.Cluster, ...) error
- func GetJobWithLabels(ctx context.Context, cli client.Client, cluster *appsv1.Cluster, ...) ([]batchv1.Job, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildJobTolerations ¶
func CheckJobSucceed ¶
func CheckJobSucceed(ctx context.Context, cli client.Reader, cluster *appsv1.Cluster, jobName string) error
CheckJobSucceed checks the result of job execution. Returns: - bool: whether job exist, true exist - error: any error that occurred during the handling
func CleanJobByName ¶
func CleanJobByName(ctx context.Context, cli client.Client, cluster *appsv1.Cluster, jobName string) error
CleanJobByName cleans up the job task by name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.