-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add feature gates infrastructure (#90)
- Loading branch information
1 parent
b21919d
commit 9fe45a6
Showing
3 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package features | ||
|
||
import ( | ||
"k8s.io/component-base/featuregate" | ||
) | ||
|
||
const ( | ||
// Add new feature gates constants (strings) | ||
// Ex: SomeFeature featuregate.Feature = "SomeFeature" | ||
) | ||
|
||
var catalogdFeatureGates = map[featuregate.Feature]featuregate.FeatureSpec{ | ||
// Add new feature gate definitions | ||
// Ex: SomeFeature: {...} | ||
} | ||
|
||
var CatalogdFeatureGate featuregate.MutableFeatureGate = featuregate.NewFeatureGate() | ||
|
||
func init() { | ||
CatalogdFeatureGate.Add(catalogdFeatureGates) | ||
} |