Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterConfig ¶
type Config ¶
type Config interface { Images() ImagesConfig Cluster() ClusterConfig Store() StoreConfig Scheduler() SchedulerConfig Security() SecurityConfig }
type ImagesConfig ¶
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 WithLogger ¶
type SchedulerConfig ¶
type SchedulerConfig interface {
AllowScheduleToMasterNode() bool
}
type SecurityConfig ¶
type SecurityConfig interface {
DefaultEncodeKey() string
}
Click to show internal directories.
Click to hide internal directories.