Skip to content

Commit a0977f0

Browse files
committed
Revert "Remove GA feature gate ComponentSLIs"
This reverts commit f1af846.
1 parent a8a086f commit a0977f0

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

staging/src/k8s.io/component-base/metrics/features/kube_features.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,17 @@ import (
2020
"k8s.io/component-base/featuregate"
2121
)
2222

23+
const (
24+
// owner: @logicalhan
25+
// kep: https://kep.k8s.io/3466
26+
// alpha: v1.26
27+
ComponentSLIs featuregate.Feature = "ComponentSLIs"
28+
)
29+
2330
func featureGates() map[featuregate.Feature]featuregate.FeatureSpec {
24-
return map[featuregate.Feature]featuregate.FeatureSpec{}
31+
return map[featuregate.Feature]featuregate.FeatureSpec{
32+
ComponentSLIs: {Default: true, PreRelease: featuregate.Beta},
33+
}
2534
}
2635

2736
// AddFeatureGates adds all feature gates used by this package.

test/featuregates_linter/test_data/unversioned_feature_list.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
- name: ComponentSLIs
2+
versionedSpecs:
3+
- default: true
4+
lockToDefault: false
5+
preRelease: Beta
6+
version: ""
17
- name: ContextualLogging
28
versionedSpecs:
39
- default: true

0 commit comments

Comments
 (0)