Documentation ¶
Overview ¶
Package schedule contains the schedule command of vineyard operator
Index ¶
- Constants
- func NewScheduleCmd() *cobra.Command
- func NewScheduleWorkflowCmd() *cobra.Command
- func NewScheduleWorkloadCmd() *cobra.Command
- func SchedulingWorkflow(c client.Client, obj *unstructured.Unstructured) error
- func SchedulingWorkload(c client.Client, unstructuredObj *unstructured.Unstructured) (*unstructured.Unstructured, error)
- func ValidateWorkloadKind(kind string) bool
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 NewScheduleWorkflowCmd ¶
func NewScheduleWorkloadCmd ¶
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.