schedule

package
v0.0.0-...-21a76b1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 17 Imported by: 0

Documentation

Overview

Package schedule contains the schedule command of vineyard operator

Index

Constants

View Source
const (
	// VineyardDeploymentSocketPrefix is the prefix of vineyard deployment socket
	VineyardDeploymentSocketPrefix = "/var/run/vineyard-kubernetes/"

	// ScheduleWorkloadMountPath is the mount path of the vineyard socket
	ScheduleWorkloadMountPath = "/var/run"
)

Variables

This section is empty.

Functions

func NewScheduleCmd

func NewScheduleCmd() *cobra.Command

func NewScheduleWorkflowCmd

func NewScheduleWorkflowCmd() *cobra.Command

func NewScheduleWorkloadCmd

func NewScheduleWorkloadCmd() *cobra.Command

func SchedulingWorkflow

func SchedulingWorkflow(c client.Client, obj *unstructured.Unstructured) error

SchedulingWorkflow is used to schedule the workload of the workflow

func SchedulingWorkload

func SchedulingWorkload(c client.Client,
	unstructuredObj *unstructured.Unstructured) (*unstructured.Unstructured, error)

SchedulingWorkload is used to schedule the workload to the vineyard cluster and add the podAffinity to the workload

func ValidateWorkloadKind

func ValidateWorkloadKind(kind string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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