Skip to content

Commit

Permalink
Adds error checking for feature gates (#98)
Browse files Browse the repository at this point in the history
Signed-off-by: Mikalai Radchuk <mradchuk@redhat.com>
  • Loading branch information
m1kola committed Jun 20, 2023
1 parent 9fe45a6 commit 83da08b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/features/features.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package features

import (
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/component-base/featuregate"
)

Expand All @@ -17,5 +18,5 @@ var catalogdFeatureGates = map[featuregate.Feature]featuregate.FeatureSpec{
var CatalogdFeatureGate featuregate.MutableFeatureGate = featuregate.NewFeatureGate()

func init() {
CatalogdFeatureGate.Add(catalogdFeatureGates)
utilruntime.Must(CatalogdFeatureGate.Add(catalogdFeatureGates))
}

0 comments on commit 83da08b

Please sign in to comment.