featuregates

package
v1.42.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HonorWaitForFirstConsumer - if enabled will not schedule worker pods on a storage with WaitForFirstConsumer binding mode
	HonorWaitForFirstConsumer = "HonorWaitForFirstConsumer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CDIConfigFeatureGates

type CDIConfigFeatureGates struct {
	// contains filtered or unexported fields
}

CDIConfigFeatureGates is a util for determining whether an optional feature is enabled or not.

func NewFeatureGates

func NewFeatureGates(c client.Client) *CDIConfigFeatureGates

NewFeatureGates creates a new instance of the feature gates

func (*CDIConfigFeatureGates) HonorWaitForFirstConsumerEnabled

func (f *CDIConfigFeatureGates) HonorWaitForFirstConsumerEnabled() (bool, error)

HonorWaitForFirstConsumerEnabled - see the HonorWaitForFirstConsumer const

type FeatureGates

type FeatureGates interface {
	// HonorWaitForFirstConsumerEnabled - see the HonorWaitForFirstConsumer const
	HonorWaitForFirstConsumerEnabled() (bool, error)
}

FeatureGates is a util for determining whether an optional feature is enabled or not.

Jump to

Keyboard shortcuts

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