clusterutil

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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