Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitFromFlags ¶
InitFromFlags initializes the config from the provided CLI flag set.
Types ¶
type Config ¶
type Config struct {
// Workers denotes the number of worker threads for the custodian controller.
Workers int
// SyncPeriod is the duration after which re-enqueuing happens.
SyncPeriod time.Duration
// EtcdMember holds configuration related to etcd members.
EtcdMember EtcdMemberConfig
}
Config contains configuration for the Custodian Controller.
type EtcdMemberConfig ¶
type EtcdMemberConfig struct {
// NotReadyThreshold is the duration after which an etcd member's state is considered `NotReady`.
NotReadyThreshold time.Duration
// UnknownThreshold is the duration after which an etcd member's state is considered `Unknown`.
UnknownThreshold time.Duration
}
EtcdMemberConfig holds configuration related to etcd members.
type Reconciler ¶
Reconciler reconciles status of Etcd object
func NewReconciler ¶
func NewReconciler(mgr manager.Manager, config *Config) *Reconciler
NewReconciler creates a new reconciler for Custodian.
func (*Reconciler) RegisterWithManager ¶
func (r *Reconciler) RegisterWithManager(ctx context.Context, mgr ctrl.Manager, ignoreOperationAnnotation bool) error
RegisterWithManager registers the Custodian Controller with the given controller manager.
Click to show internal directories.
Click to hide internal directories.