featuregates

package
v1.59.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 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"

	// DataVolumeClaimAdoption - if enabled will allow PVC to be adopted by a DataVolume
	// it is not an error if PVC of sam name exists before DataVolume is created
	DataVolumeClaimAdoption = "DataVolumeClaimAdoption"

	// WebhookPvcRendering - if enabled will deploy PVC mutating webhook for PVC rendering instead of the DV controller
	WebhookPvcRendering = "WebhookPvcRendering"
)

Variables

This section is empty.

Functions

func IsWebhookPvcRenderingEnabled added in v1.59.0

func IsWebhookPvcRenderingEnabled(c client.Client) (bool, error)

IsWebhookPvcRenderingEnabled tells if webhook PVC rendering is enabled

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) ClaimAdoptionEnabled added in v1.58.2

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

ClaimAdoptionEnabled - see the DataVolumeClaimAdoption const

func (*CDIConfigFeatureGates) HonorWaitForFirstConsumerEnabled

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

HonorWaitForFirstConsumerEnabled - see the HonorWaitForFirstConsumer const

func (*CDIConfigFeatureGates) WebhookPvcRenderingEnabled added in v1.59.0

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

WebhookPvcRenderingEnabled tells if webhook PVC rendering is enabled

type FeatureGates

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

	// ClaimAdoptionEnabled - see the DataVolumeClaimAdoption const
	ClaimAdoptionEnabled() (bool, error)

	// WebhookPvcRenderingEnabled - see the WebhookPvcRendering const
	WebhookPvcRenderingEnabled() (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