Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration interface { K8sAPIDiscoveryEnabled() bool K8sLeasesFallbackDiscoveryEnabled() bool }
Configuration is the configuration interface for the k8s package
func NewDefaultConfiguration ¶
func NewDefaultConfiguration() Configuration
NewDefaultConfiguration returns an implementation of Configuration with default values
type DefaultConfiguration ¶
type DefaultConfiguration struct{}
DefaultConfiguration is an implementation of Configuration with default values
func (*DefaultConfiguration) K8sAPIDiscoveryEnabled ¶
func (d *DefaultConfiguration) K8sAPIDiscoveryEnabled() bool
K8sAPIDiscoveryEnabled returns true if API discovery of API groups and resources is enabled
func (*DefaultConfiguration) K8sLeasesFallbackDiscoveryEnabled ¶ added in v1.7.8
func (d *DefaultConfiguration) K8sLeasesFallbackDiscoveryEnabled() bool
K8sLeasesFallbackDiscoveryEnabled returns true if we should fallback to direct API probing when checking for support of Leases in case Discovery API fails to discover required groups.
Click to show internal directories.
Click to hide internal directories.