features package - github.com/fluxcd/pkg/runtime/features - Go Packages
This section is empty.
This section is empty.
Enabled verifies whether the feature is enabled or not.
type FeatureGates struct {
}
FeatureGates is a helper to manage feature switches.
Controllers can set their supported features and then at runtime verify which ones are enabled/disabled.
Callers have to call BindFlags, and then call SupportedFeatures to set the supported features and their default values.
BindFlags will parse the given pflag.FlagSet and load feature gates accordingly.
SupportedFeatures sets the supported features and their default values.
WithLogger sets the logger to be used when loading supported features.