jobcontroller

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronJobHorizontal

type CronJobHorizontal struct {
	// contains filtered or unexported fields
}

func (*CronJobHorizontal) CleanupJob

type Horizontal

type Horizontal interface {
	// UpdateJob creates or updates the external algorithm job managed by given HorizontalPortrait and job config.
	UpdateJob(ctx context.Context, hp *autoscalingv1alpha1.HorizontalPortrait, cfg *autoscalingv1alpha1.PortraitAlgorithmJob) error
	// CleanupJob does clean up works for the external algorithm job managed by given HorizontalPortrait.
	CleanupJob(ctx context.Context, hp *autoscalingv1alpha1.HorizontalPortrait) error
}

Horizontal provides methods to manage external horizontal portrait algorithm jobs.

func NewCronJobHorizontal

func NewCronJobHorizontal(client client.Client, namespace, defaultServiceAccount, defaultMetricsServerAddr string, defaultImages map[autoscalingv1alpha1.PortraitType]string) Horizontal

Jump to

Keyboard shortcuts

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