config

package
v1.2.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterConfig

type ClusterConfig interface {
	EnableExporters() bool
	EnableAliyunAckResourceController() bool
	EnableDebugModeForComputeNodes() bool

	ContainerPrivileged() bool
}

type Config

type Config interface {
	Images() ImagesConfig
	Cluster() ClusterConfig
	Store() StoreConfig
	Scheduler() SchedulerConfig
	Security() SecurityConfig
}

type ImagesConfig

type ImagesConfig interface {
	DefaultImageRepo() string
	DefaultImageForCluster(role string, container string, version string) string
	DefaultImageForStore(engine string, container string, version string) string
}

type LoaderFactory

type LoaderFactory func() func() Config

func NewConfigLoaderAndStartBackgroundRefresh

func NewConfigLoaderAndStartBackgroundRefresh(ctx context.Context, opts ...Option) (LoaderFactory, error)

type Option

type Option func(opts *loaderConfig)

func LoadFromK8sConfigMap

func LoadFromK8sConfigMap(client client.Client, key types.NamespacedName) Option

func LoadFromK8sSecret

func LoadFromK8sSecret(client client.Client, key types.NamespacedName) Option

func LoadFromPath

func LoadFromPath(path string) Option

func WithLogger

func WithLogger(logger logr.Logger) Option

type SchedulerConfig

type SchedulerConfig interface {
	AllowScheduleToMasterNode() bool
}

type SecurityConfig

type SecurityConfig interface {
	DefaultEncodeKey() string
}

type StoreConfig

type StoreConfig interface {
	ContainerPrivileged() bool

	HostPathTools() string
	HostPathDataVolumeRoot() string

	HostPathFileServiceEndpoint() string
}

Jump to

Keyboard shortcuts

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