Skip to content

Commit

Permalink
MON-3486: add feature gate for Collection Profiles
Browse files Browse the repository at this point in the history
Adds a custom feature gate for CMO's Collection Profiles feature. Also
preserve the earlier behavior to enable it by default on TP enabled
clusters.

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
  • Loading branch information
rexagod committed Mar 11, 2024
1 parent 5f93ef6 commit d293eef
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/v1/feature_gates.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,4 +541,14 @@ var (
ResponsiblePerson: "EmilienM",
OwningProduct: ocpSpecific,
}

FeatureGateMetricsCollectionProfiles = FeatureGateName("MetricsCollectionProfiles")
metricsCollectionProfiles = FeatureGateDescription{
FeatureGateAttributes: FeatureGateAttributes{
Name: FeatureGateMetricsCollectionProfiles,
},
OwningJiraComponent: "Monitoring",
ResponsiblePerson: "rexagod",
OwningProduct: ocpSpecific,
}
)
1 change: 1 addition & 0 deletions config/v1/types_feature.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ var FeatureSets = map[FeatureSet]*FeatureGateEnabledDisabled{
with(machineConfigNodes).
with(metricsServer).
with(installAlternateInfrastructureAWS).
with(metricsCollectionProfiles).
without(clusterAPIInstall).
with(mixedCPUsAllocation).
with(managedBootImages).
Expand Down
3 changes: 3 additions & 0 deletions payload-manifests/featuregates/featureGate-Default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
{
"name": "MaxUnavailableStatefulSet"
},
{
"name": "MetricsCollectionProfiles"
},
{
"name": "MetricsServer"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@
{
"name": "MaxUnavailableStatefulSet"
},
{
"name": "MetricsCollectionProfiles"
},
{
"name": "MetricsServer"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@
{
"name": "MaxUnavailableStatefulSet"
},
{
"name": "MetricsCollectionProfiles"
},
{
"name": "MetricsServer"
},
Expand Down

0 comments on commit d293eef

Please sign in to comment.