config

package
v1.12.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

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