From aacb530ea4ad1718d6346ce676fc3955eabfb2ba Mon Sep 17 00:00:00 2001 From: Morven Cao Date: Fri, 19 Apr 2024 14:26:33 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B1=20add=20cloudevents=20driver=20fea?= =?UTF-8?q?ture=20gate=20for=20manifestwork=20replicaset.=20(#326)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add cloudevents driver feature gate for manifestwork replicaset. Signed-off-by: morvencao * update feature gate name. Signed-off-by: morvencao --------- Signed-off-by: morvencao --- feature/feature.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/feature/feature.go b/feature/feature.go index 8bd2aef95..45d90b425 100644 --- a/feature/feature.go +++ b/feature/feature.go @@ -64,6 +64,10 @@ const ( // of clusters selected by a placement. For more info check ManifestWorkReplicaSet APIs ManifestWorkReplicaSet featuregate.Feature = "ManifestWorkReplicaSet" + // CloudEventsDrivers will enable the cloud events drivers (mqtt or grpc) for the hub controller, + // so that the controller can deliver manifestworks to the managed clusters via cloud events. + CloudEventsDrivers featuregate.Feature = "CloudEventsDrivers" + // RawFeedbackJsonString will make the work agent to return the feedback result as a json string if the result // is not a scalar value. RawFeedbackJsonString featuregate.Feature = "RawFeedbackJsonString" @@ -100,6 +104,7 @@ var DefaultHubAddonManagerFeatureGates = map[featuregate.Feature]featuregate.Fea var DefaultHubWorkFeatureGates = map[featuregate.Feature]featuregate.FeatureSpec{ NilExecutorValidating: {Default: false, PreRelease: featuregate.Alpha}, ManifestWorkReplicaSet: {Default: false, PreRelease: featuregate.Alpha}, + CloudEventsDrivers: {Default: false, PreRelease: featuregate.Alpha}, } // DefaultSpokeWorkFeatureGates consists of all known ocm work feature keys for work agent.