controller

package
v0.24.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(mgr ctrl.Manager, config *Config) error

Register registers all etcd-druid controllers with the controller manager.

Types

type Config

type Config struct {
	// Etcd is the configuration required for etcd controller.
	Etcd *etcd.Config
	// Compaction is the configuration required for compaction controller.
	Compaction *compaction.Config
	// EtcdCopyBackupsTask is the configuration required for etcd-copy-backup-tasks controller.
	EtcdCopyBackupsTask *etcdcopybackupstask.Config
	// Secret is the configuration required for secret controller.
	Secret *secret.Config
}

Config defines the configuration for etcd-druid controllers.

func (*Config) CaptureFeatureActivations

func (cfg *Config) CaptureFeatureActivations(featureGates featuregate.MutableFeatureGate)

CaptureFeatureActivations captures feature gate activations for every controller configuration. Feature gates are captured only for controllers that use feature gates.

func (*Config) InitFromFlags

func (cfg *Config) InitFromFlags(fs *flag.FlagSet)

InitFromFlags initializes the controller config from the provided CLI flag set.

func (*Config) Validate

func (cfg *Config) Validate() error

Validate validates the controller config.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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