Documentation ¶
Overview ¶
Package conf 定义了 orchestrator 所需要的配置选项,这些配置选项都是通过环境变量加载.
Index ¶
- Constants
- func CollectorPublicURL() string
- func CustomRegCredSecret() string
- func Debug() bool
- func DefaultRuntimeExecutor() string
- func DeployZookeeper() string
- func ErdaNamespace() string
- func ExecutorClientTimeout() time.Duration
- func InitContainerImage() string
- func InspectServiceGroupTimeout() int
- func InstancesPerService() int
- func ListenAddr() string
- func Load()
- func MainClusterName() string
- func OpenAPIPublicURL() string
- func PoolSize() int
- func PrivateKey() string
- func PublicKey() string
- func RedisAddr() string
- func RedisMasterName() string
- func RedisPassword() string
- func RedisSentinels() string
- func RuntimeUpMaxWaitTime() int64
- func SchedulerAddr() string
- func SoldierAddr() string
- func TenantGroupKey() string
- func TerminalSecurity() bool
- func TokenClientID() string
- func TokenClientSecret() string
- func TraceLogEnv() string
- func WsDiceRootDomain() string
- type Conf
- type ConfStore
Constants ¶
View Source
const (
CLUSTERS_CONFIG_PATH = "/dice/scheduler/configs/cluster/"
)
Variables ¶
This section is empty.
Functions ¶
func CollectorPublicURL ¶
func CollectorPublicURL() string
func CustomRegCredSecret ¶
func CustomRegCredSecret() string
func DefaultRuntimeExecutor ¶
func DefaultRuntimeExecutor() string
DefaultRuntimeExecutor return cfg.DefaultRuntimeExecutor
func ErdaNamespace ¶
func ErdaNamespace() string
func ExecutorClientTimeout ¶
func InitContainerImage ¶
func InitContainerImage() string
InitContainerImage 返回 InitContainerImage 选项.
func InspectServiceGroupTimeout ¶
func InspectServiceGroupTimeout() int
InspectServiceGroupTimeout time out of servicegroup
func InstancesPerService ¶
func InstancesPerService() int
InstancesPerService 返回 InstancesPerService 选项.
func OpenAPIPublicURL ¶
func OpenAPIPublicURL() string
func WsDiceRootDomain ¶
func WsDiceRootDomain() string
Types ¶
type Conf ¶
type Conf struct { Debug bool `env:"DEBUG" default:"false"` ListenAddr string `env:"LISTEN_ADDR" default:"0.0.0.0:8081"` PoolSize int `env:"POOL_SIZE" default:"100"` RedisMasterName string `env:"REDIS_MASTER_NAME" default:"my-master"` RedisSentinels string `env:"REDIS_SENTINELS_ADDR" default:""` RedisAddr string `env:"REDIS_ADDR" default:"127.0.0.1:6379"` RedisPassword string `env:"REDIS_PASSWORD" default:""` InstancesPerService int `env:"INSTANCES_PER_SERVICE" default:"1000"` MainClusterName string `env:"DICE_CLUSTER_NAME" default:""` TenantGroupKey string `env:"TENANT_GROUP_KEY" default:""` SoldierAddr string `env:"SOLDIER_ADDR" default:""` SchedulerAddr string `env:"SCHEDULER_ADDR" default:""` DeployZookeeper string `env:"DEPLOY_ZOOKEEPER" default:""` RuntimeUpMaxWaitTime int64 `env:"MAX_WAIT_TIME" default:"15"` PublicKey string `` /* 395-byte string literal not displayed */ PrivateKey string `` /* 1216-byte string literal not displayed */ InitContainerImage string `env:"INIT_CONTAINER_IMAGE" default:"registry.erda.cloud/retag/curl:8.4.0"` TokenClientID string `env:"TOKEN_CLIENT_ID" default:"orchestrator"` TokenClientSecret string `env:"TOKEN_CLIENT_SECRET" default:"devops/orchestrator"` InspectServiceGroupTimeout int `env:"INSPECT_SERVICEGROUP_TIMEOUT" default:"60"` CollectorPublicURL string `env:"COLLECTOR_PUBLIC_URL"` OpenAPIPublicURL string `env:"OPENAPI_PUBLIC_URL"` // Conf for scheduler DefaultRuntimeExecutor string `env:"DEFAULT_RUNTIME_EXECUTOR" default:"MARATHON"` // TraceLogEnv shows the key of environment variable defined for tracing log TraceLogEnv string `env:"TRACELOGENV" default:"TERMINUS_DEFINE_TAG"` WsDiceRootDomain string `env:"WS_DICE_ROOT_DOMAIN" default:"app.terminus.io,erda.cloud"` TerminalSecurity bool `env:"TERMINAL_SECURITY" default:"false"` ExecutorClientTimeout int `env:"EXECUTOR_CLIENT_TIMEOUT" default:"10"` CustomRegCredSecret string `env:"CUSTOM_REGCRED_SECRET" default:"regcred"` ErdaNamespace string `env:"DICE_NAMESPACE" default:"default"` }
Conf 定义配置对象.
Click to show internal directories.
Click to hide internal directories.