config

package
v0.0.0-...-d39b95d Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Namespace touse
	Namespace = "POLYAXON_K8S_NAMESPACE"

	// SingleNamespace is a flag to enable watching all namespaces
	SingleNamespace = "POLYAXON_SINGLE_NAMESPACE"

	// Max concurrent reconciles configuration
	MaxConcurrentReconciles = "POLYAXON_MAX_CONCURRENT_RECONCILES"

	// Leader election configuration
	LeaderElection = "POLYAXON_LEADER_ELECTION"

	// TFJobEnabled is a flag to enable TFJob conroller
	TFJobEnabled = "POLYAXON_TFJOB_ENABLED"

	// PytorchJobEnabled is a flag to enable PytorchJob conroller
	PytorchJobEnabled = "POLYAXON_PYTORCH_JOB_ENABLED"

	// PaddleJobEnabled is a flag to enable PaddleJob conroller
	PaddleJobEnabled = "POLYAXON_PADDLE_JOB_ENABLED"

	// MPIJobEnabled is a flag to enable MPIJob conroller
	MPIJobEnabled = "POLYAXON_MPIJOB_ENABLED"

	// MXJobEnabled is a flag to enable MPIJob conroller
	MXJobEnabled = "POLYAXON_MXJOB_ENABLED"

	// XGBoostJobEnabled is a flag to enable MPIJob conroller
	XGBoostJobEnabled = "POLYAXON_XGBOOST_JOB_ENABLED"

	// RayJobEnabled is a flag to enable Ray conroller
	DaskJobEnabled = "POLYAXON_DASK_JOB_ENABLED"

	// RayJobEnabled is a flag to enable Ray conroller
	RayJobEnabled = "POLYAXON_RAY_JOB_ENABLED"

	// IstioEnabled is a flag to enable istio controller
	IstioEnabled = "POLYAXON_ISTIO_ENABLED"

	// IstioGateway is the istio gateway to use
	IstioGateway = "POLYAXON_ISTIO_GATEWAY"

	// IstioTLSMode is the istio tls mode to use
	IstioTLSMode = "POLYAXON_ISTIO_TLS_MODE"

	// IstioPrefix is the istio tls mode to use
	IstioPrefix = "POLYAXON_ISTIO_PREFIX"

	// IstioTimeout is the istio default timeout
	IstioTimeout = "POLYAXON_ISTIO_TIMEOUT"

	// ClusterDomain is the istio tls mode to use
	ClusterDomain = "POLYAXON_CLUSTER_DOMAIN"

	// If agent is enabled
	AgentEnabled = "POLYAXON_SET_AGENT"

	// Log level
	LogLevel = "POLYAXON_LOG_LEVEL"
)

Variables

This section is empty.

Functions

func GetBoolEnv

func GetBoolEnv(key string, defaultValue bool) bool

GetBoolEnv returns an environment bool variable given by key or return a default value.

func GetIntEnv

func GetIntEnv(key string, defaultValue int) int

GetIntEnv returns an environment int variable given by key or return a default value.

func GetStrEnv

func GetStrEnv(key, defaultValue string) string

GetStrEnv returns an environment str variable given by key or return a default value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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