conf

package
v0.0.0-...-f394a37 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultClusterId         = "my-kube-cluster"
	DefaultClusterVersion    = "0.1"
	DefaultSchedulerName     = "yunikorn"
	DefaultPolicyGroup       = "queues"
	DefaultLoggingLevel      = 0
	DefaultLogEncoding       = "console"
	DefaultVolumeBindTimeout = 10 * time.Second
)

default configuration values, these can be override by CLI options

Variables

This section is empty.

Functions

This section is empty.

Types

type SchedulerConf

type SchedulerConf struct {
	ClusterId         string        `json:"clusterId"`
	ClusterVersion    string        `json:"clusterVersion"`
	SchedulerName     string        `json:"schedulerName"`
	PolicyGroup       string        `json:"policyGroup"`
	Interval          int           `json:"schedulingIntervalSecond"`
	KubeConfig        string        `json:"absoluteKubeConfigFilePath"`
	LoggingLevel      int           `json:"loggingLevel"`
	LogEncoding       string        `json:"logEncoding"`
	LogFile           string        `json:"logFilePath"`
	VolumeBindTimeout time.Duration `json:"volumeBindTimeout"`
}

func GetSchedulerConf

func GetSchedulerConf() *SchedulerConf

func (*SchedulerConf) GetKubeConfigPath

func (conf *SchedulerConf) GetKubeConfigPath() string

func (*SchedulerConf) GetSchedulingInterval

func (conf *SchedulerConf) GetSchedulingInterval() time.Duration

Jump to

Keyboard shortcuts

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