Created
November 4, 2023 01:12
-
-
Save logicalhan/668dd260048ea59c4782e21ba30d977b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type FeatureSpec struct { | |
// Default is the default enablement state for the feature | |
Default bool | |
// LockToDefault indicates that the feature is locked to its default and cannot be changed | |
LockToDefault bool | |
// PreRelease indicates the current maturity level of the feature | |
PreRelease prerelease | |
// Version indicates the version from which this configuration is valid. | |
Version semver.Version | |
} | |
var ExampleFeature := APISelfSubjectReview: { | |
{Version: v1_26, Default: false, PreRelease: featuregate.Alpha}, | |
{Version: v1_27, Default: true, PreRelease: featuregate.Alpha}, | |
{Version: v1_28, Default: true, PreRelease: featuregate.Beta}, | |
{Version: v1_30, Default: true, PreRelease: featuregate.GA, LockToDefault: true}, | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment