clusterutil

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Package clusterutil cluster utils

Index

Constants

View Source
const (
	// ServiceKindMarathon marathon executor type
	ServiceKindMarathon = "MARATHON"
	// ServiceKindK8S k8s executor type
	ServiceKindK8S = "K8S"
	// ServiceKindEdas edas executor type
	ServiceKindEdas = "EDAS"
	// JobKindMetronome metronome executor type
	JobKindMetronome = "METRONOME"
	// JobKindK8S k8s job executor type
	JobKindK8S = "K8SJOB"
	// EdasKindInK8s k8s service executor in edas
	EdasKindInK8s = "EDASINK8S"
	// DiceCluster DICE_CLUSTER env key
	DiceCluster = "DICE_CLUSTER"
	// k8sKindFlink Identify k8s flink type
	K8SKindFlink = "K8SFLINK"
	// k8sKindSpark Identify k8s spark type
	K8SKindSpark = "K8SSpark"
	// k8sSparkVersion Identify k8s flink version
	K8SSparkVersion = "2.4.0"
)

Variables

This section is empty.

Functions

func GenerateExecutorByCluster

func GenerateExecutorByCluster(cluster, executorType string) string

GenerateExecutorByCluster Get executorname according to `cluster` and `executorType`

func GenerateExecutorByClusterName

func GenerateExecutorByClusterName(clustername string) string

func SetJobExecutorByCluster

func SetJobExecutorByCluster(job *apistructs.Job) error

SetJobExecutorByCluster When the job executor is empty, set the executor according to the cluster value

func SetJobVolumeExecutorByCluster

func SetJobVolumeExecutorByCluster(jobvolume *apistructs.JobVolume) error

func SetRuntimeExecutorByCluster

func SetRuntimeExecutorByCluster(runtime *apistructs.ServiceGroup) error

SetRuntimeExecutorByCluster When the runtime executor is empty, set the executor according to the cluster value

Types

This section is empty.

Jump to

Keyboard shortcuts

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