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 ¶
func (h *CronJobHorizontal) CleanupJob(ctx context.Context, hp *autoscalingv1alpha1.HorizontalPortrait) error
func (*CronJobHorizontal) UpdateJob ¶
func (h *CronJobHorizontal) UpdateJob(ctx context.Context, hp *autoscalingv1alpha1.HorizontalPortrait, cfg *autoscalingv1alpha1.PortraitAlgorithmJob) error
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
Click to show internal directories.
Click to hide internal directories.