From 17751e4cfddb5e3e7e2952c8e3590d7905710bc3 Mon Sep 17 00:00:00 2001 From: Qing Hao Date: Mon, 23 Sep 2024 09:49:27 +0800 Subject: [PATCH] add clusterprofile featuregate (#340) Signed-off-by: haoqing0110 --- feature/feature.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/feature/feature.go b/feature/feature.go index 9b3956d85..a6b151961 100644 --- a/feature/feature.go +++ b/feature/feature.go @@ -77,6 +77,9 @@ const ( // MultipleHubs allows user to configure multiple bootstrapkubeconfig connecting to different hubs via Klusterlet and let agent decide which one to use MultipleHubs featuregate.Feature = "MultipleHubs" + + // ClusterProfile will start new controller in the Hub that can be used to sync ManagedCluster to ClusterProfile. + ClusterProfile featuregate.Feature = "ClusterProfile" ) // DefaultSpokeRegistrationFeatureGates consists of all known ocm-registration @@ -97,6 +100,7 @@ var DefaultHubRegistrationFeatureGates = map[featuregate.Feature]featuregate.Fea V1beta1CSRAPICompatibility: {Default: false, PreRelease: featuregate.Alpha}, ManagedClusterAutoApproval: {Default: false, PreRelease: featuregate.Alpha}, ResourceCleanup: {Default: false, PreRelease: featuregate.Alpha}, + ClusterProfile: {Default: false, PreRelease: featuregate.Alpha}, } var DefaultHubAddonManagerFeatureGates = map[featuregate.Feature]featuregate.FeatureSpec{