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 ¶
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.
Click to show internal directories.
Click to hide internal directories.