kubefeat

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustInitFeatureGates

func MustInitFeatureGates(cfg *rest.Config)

Types

type Feature

type Feature string
var VolumeAttributesClass Feature = "VolumeAttributesClass"

type FeatureStage

type FeatureStage int
const (
	INVAILD FeatureStage = 0

	ALPHA FeatureStage = 1 << iota
	BETA
	STABLE
	ANY = ALPHA | BETA | STABLE
)

type Gates

type Gates interface {
	Stage(key Feature) StagedFeature
}

func NewFeatureGates

func NewFeatureGates(cfg *rest.Config) (Gates, error)

type StagedFeature

type StagedFeature interface {
	Enabled(FeatureStage) bool
}

func Stage

func Stage(key Feature) StagedFeature

Jump to

Keyboard shortcuts

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