Skip to content

Commit

Permalink
🌱 add cloudevents driver feature gate for manifestwork replicaset. (#326
Browse files Browse the repository at this point in the history
)

* add cloudevents driver feature gate for manifestwork replicaset.

Signed-off-by: morvencao <[email protected]>

* update feature gate name.

Signed-off-by: morvencao <[email protected]>

---------

Signed-off-by: morvencao <[email protected]>
  • Loading branch information
morvencao authored Apr 19, 2024
1 parent 018915d commit aacb530
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions feature/feature.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit aacb530

Please sign in to comment.