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 Feb 28, 2024
1 parent 217662e commit 1a2ba91
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 @@ -461,4 +461,14 @@ var (
ResponsiblePerson: "fbertina",
OwningProduct: kubernetes,
}

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 @@ -186,6 +186,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 @@ -64,6 +64,9 @@
{
"name": "MaxUnavailableStatefulSet"
},
{
"name": "MetricsCollectionProfiles"
},
{
"name": "MetricsServer"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
{
"name": "MaxUnavailableStatefulSet"
},
{
"name": "MetricsCollectionProfiles"
},
{
"name": "MetricsServer"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@
{
"name": "MaxUnavailableStatefulSet"
},
{
"name": "MetricsCollectionProfiles"
},
{
"name": "MetricsServer"
},
Expand Down

0 comments on commit 1a2ba91

Please sign in to comment.