Skip to content

Commit

Permalink
Add cluster importer feature and promote addonManagement feature to b…
Browse files Browse the repository at this point in the history
…eta (#351)

Signed-off-by: Jian Qiu <jqiu@redhat.com>
  • Loading branch information
qiujian16 authored Dec 10, 2024
1 parent b62746a commit 0ba6809
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions feature/feature.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,17 @@ const (

// ClusterProfile will start new controller in the Hub that can be used to sync ManagedCluster to ClusterProfile.
ClusterProfile featuregate.Feature = "ClusterProfile"

// ClusterImporter will enable the auto import of managed cluster for certain cluster providers, e.g. cluster-api.
ClusterImporter featuregate.Feature = "ClusterImporter"
)

// DefaultSpokeRegistrationFeatureGates consists of all known ocm-registration
// feature keys for registration agent. To add a new feature, define a key for it above and
// add it here.
var DefaultSpokeRegistrationFeatureGates = map[featuregate.Feature]featuregate.FeatureSpec{
ClusterClaim: {Default: true, PreRelease: featuregate.Beta},
AddonManagement: {Default: true, PreRelease: featuregate.Alpha},
AddonManagement: {Default: true, PreRelease: featuregate.Beta},
V1beta1CSRAPICompatibility: {Default: false, PreRelease: featuregate.Alpha},
MultipleHubs: {Default: false, PreRelease: featuregate.Alpha},
}
Expand All @@ -101,10 +104,11 @@ var DefaultHubRegistrationFeatureGates = map[featuregate.Feature]featuregate.Fea
ManagedClusterAutoApproval: {Default: false, PreRelease: featuregate.Alpha},
ResourceCleanup: {Default: false, PreRelease: featuregate.Alpha},
ClusterProfile: {Default: false, PreRelease: featuregate.Alpha},
ClusterImporter: {Default: false, PreRelease: featuregate.Alpha},
}

var DefaultHubAddonManagerFeatureGates = map[featuregate.Feature]featuregate.FeatureSpec{
AddonManagement: {Default: true, PreRelease: featuregate.Alpha},
AddonManagement: {Default: true, PreRelease: featuregate.Beta},
}

// DefaultHubWorkFeatureGates consists of all known acm work wehbook feature keys.
Expand Down

0 comments on commit 0ba6809

Please sign in to comment.