feature

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultToPlaceholderImageName controls whether the NutanixMachineTemplate
	// defaulting webhook injects a placeholder into image.name when the image
	// type is "name" but the name field is unset or empty.
	//
	// This is a brownfield compatibility feature: objects created before the CEL
	// validation rules were added may have the image type set without a value.
	// Enabling this gate allows those objects to pass admission without weakening
	// the API contract globally.
	//
	// owner: @thunderboltsid
	// alpha: v1.5
	DefaultToPlaceholderImageName featuregate.Feature = "DefaultToPlaceholderImageName"

	// DefaultToPlaceholderImageUUID controls whether the NutanixMachineTemplate
	// defaulting webhook injects a placeholder into image.uuid when the image
	// type is "uuid" but the uuid field is unset or empty.
	//
	// This is a brownfield compatibility feature: objects created before the CEL
	// validation rules were added may have the image type set without a value.
	// Enabling this gate allows those objects to pass admission without weakening
	// the API contract globally.
	//
	// owner: @thunderboltsid
	// alpha: v1.5
	DefaultToPlaceholderImageUUID featuregate.Feature = "DefaultToPlaceholderImageUUID"
)

Variables

View Source
var (
	// MutableGates is a mutable version of Gates.
	// Only top-level commands/options setup should make use of this.
	// Tests that need to modify feature gates for the duration of their test should use:
	//   featuregatetesting "k8s.io/component-base/featuregate/testing"
	//   featuregatetesting.SetFeatureGateDuringTest(t, feature.Gates, feature.<FeatureName>, <value>)
	MutableGates featuregate.MutableFeatureGate = featuregate.NewFeatureGate()

	// Gates is a shared global FeatureGate.
	// Read feature gate state using: feature.Gates.Enabled(feature.<FeatureName>)
	Gates featuregate.FeatureGate = MutableGates
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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