Documentation
¶
Index ¶
- type Config
- type Option
- func WithBmcConnectTimeout(timeout time.Duration) Option
- func WithClient(client *rest.Config) Option
- func WithEnableInventoryCollection(enable bool) Option
- func WithEnableLeaderElection(enableLeaderElection bool) Option
- func WithInventoryRefreshInterval(interval time.Duration) Option
- func WithLeaderElectionNamespace(namespace string) Option
- func WithNamespaces(namespaces ...string) Option
- func WithPowerCheckInterval(interval time.Duration) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Namespaces are the namespaces to watch. Empty means all namespaces.
Namespaces []string
Client *rest.Config
EnableLeaderElection bool
LeaderElectionNamespace string
BMCConnectTimeout time.Duration
PowerCheckInterval time.Duration
InventoryRefreshInterval time.Duration
EnableInventoryCollection bool
MaxConcurrentReconciles int
}
type Option ¶
type Option func(*Config)
func WithBmcConnectTimeout ¶
func WithClient ¶
func WithEnableInventoryCollection ¶ added in v0.26.0
WithEnableInventoryCollection is a fleet-wide kill switch for BMC (out-of-band) inventory collection. Individual Hardware objects can additionally opt out via the tinkerbell.org/disable-outofband-inventory annotation.