logic

package
v1.1.0-rc Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDcosConstraints

func BuildDcosConstraints(enable bool, labels map[string]string, preserveProjects map[string]struct{}, workspaceTags map[string]struct{}) [][]string

func GenTolerations

func GenTolerations() []apiv1.Toleration

func GenerateK8SVolumes

GenerateK8SVolumes According to job configuration, production volume related configuration

func GetAndSetTokenAuth

func GetAndSetTokenAuth(client *httpclient.HTTPClient, executorName string)

GetAndSetTokenAuth call this in goroutine

func GetBigDataConf

func GetBigDataConf(task *spec.PipelineTask) (apistructs.BigdataConf, error)

func GetCLusterInfo

func GetCLusterInfo(clusterName string) (map[string]string, error)

func GetScheduleInfo

func GetScheduleInfo(cluster apistructs.ClusterInfo, executorName, executorKind string, jobFromUser apistructs.JobFromUser) (apistructs.ScheduleInfo2, apistructs.ScheduleInfo, error)

func MakeVolume

func MakeVolume(task *spec.PipelineTask) []diceyml.Volume

func ParseJobHostBindTemplate

func ParseJobHostBindTemplate(hostPath string, clusterInfo map[string]string) (string, error)

ParseJobHostBindTemplate Analyze the hostPath template and convert it to the cluster info value

func TransferToSchedulerJob

func TransferToSchedulerJob(task *spec.PipelineTask) (job apistructs.JobFromUser, err error)

func WhichStorageClass

func WhichStorageClass(tp string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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