mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-09 18:57:35 +00:00
* run registratin/work together Signed-off-by: Jian Qiu <jqiu@redhat.com> * Fix integration test and lint issue Signed-off-by: Jian Qiu <jqiu@redhat.com> * Update operator to deploy singleton mode Signed-off-by: Jian Qiu <jqiu@redhat.com> * Update deps Signed-off-by: Jian Qiu <jqiu@redhat.com> --------- Signed-off-by: Jian Qiu <jqiu@redhat.com>
28 lines
1.0 KiB
Go
28 lines
1.0 KiB
Go
// Copyright (c) Red Hat, Inc.
|
|
// Copyright Contributors to the Open Cluster Management project
|
|
|
|
package features
|
|
|
|
import (
|
|
"k8s.io/apimachinery/pkg/util/runtime"
|
|
"k8s.io/component-base/featuregate"
|
|
|
|
ocmfeature "open-cluster-management.io/api/feature"
|
|
)
|
|
|
|
var (
|
|
// DefaultHubWorkMutableFeatureGate is made up of multiple mutable feature-gates for work controller
|
|
DefaultHubWorkMutableFeatureGate featuregate.MutableFeatureGate = featuregate.NewFeatureGate()
|
|
|
|
// DefaultHubRegistrationMutableFeatureGate made up of multiple mutable feature-gates for registration hub controller.
|
|
DefaultHubRegistrationMutableFeatureGate featuregate.MutableFeatureGate = featuregate.NewFeatureGate()
|
|
|
|
// SpokeMutableFeatureGate of multiple mutable feature-gates for agent
|
|
SpokeMutableFeatureGate = featuregate.NewFeatureGate()
|
|
)
|
|
|
|
func init() {
|
|
runtime.Must(DefaultHubWorkMutableFeatureGate.Add(ocmfeature.DefaultHubWorkFeatureGates))
|
|
runtime.Must(DefaultHubRegistrationMutableFeatureGate.Add(ocmfeature.DefaultHubRegistrationFeatureGates))
|
|
}
|