Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateManagerWithControllers ¶ added in v0.17.0
func CreateManagerWithControllers(config *ManagerConfig) (ctrl.Manager, error)
CreateManagerWithControllers creates a controller manager and adds all the controllers to the controller-manager using the passed in ManagerConfig.
func InitFromFlags ¶ added in v0.17.0
func InitFromFlags(fs *flag.FlagSet, cfg *ManagerConfig)
InitFromFlags initializes the controller manager config from the provided CLI flag set.
Types ¶
type LeaderElectionConfig ¶ added in v0.17.0
type LeaderElectionConfig struct {
// EnableLeaderElection specifies whether to enable leader election for controller manager.
EnableLeaderElection bool
// LeaderElectionID is the name of the resource that leader election will use for holding the leader lock.
LeaderElectionID string
// LeaderElectionResourceLock specifies which resource type to use for leader election.
LeaderElectionResourceLock string
}
LeaderElectionConfig defines the configuration for the leader election for the controller manager.
type ManagerConfig ¶ added in v0.17.0
type ManagerConfig struct {
// MetricsAddr is the address the metric endpoint binds to.
MetricsAddr string
LeaderElectionConfig
// DisableLeaseCache specifies whether to disable cache for lease.coordination.k8s.io resources.
DisableLeaseCache bool
// IgnoreOperationAnnotation specifies whether to ignore or honour the operation annotation on resources to be reconciled.
IgnoreOperationAnnotation bool
// EtcdControllerConfig is the configuration required for etcd controller.
EtcdControllerConfig *etcd.Config
// CustodianControllerConfig is the configuration required for custodian controller.
CustodianControllerConfig *custodian.Config
// CompactionControllerConfig is the configuration required for compaction controller.
CompactionControllerConfig *compaction.Config
// EtcdCopyBackupsTaskControllerConfig is the configuration required for etcd-copy-backup-tasks controller.
EtcdCopyBackupsTaskControllerConfig *etcdcopybackupstask.Config
// SecretControllerConfig is the configuration required for secret controller.
SecretControllerConfig *secret.Config
}
ManagerConfig defines the configuration for the controller manager.
func (*ManagerConfig) Validate ¶ added in v0.17.0
func (cfg *ManagerConfig) Validate() error
Validate validates the controller manager config.
Click to show internal directories.
Click to hide internal directories.