feat: add feature gate

Signed-off-by: Jian Zeng <anonymousknight96@gmail.com>
This commit is contained in:
Jian Zeng
2024-09-13 00:01:07 +08:00
parent 7660ce9a7e
commit 389ab72725
3 changed files with 17 additions and 0 deletions

View File

@@ -466,6 +466,13 @@ const (
// Set pod completion index as a pod label for Indexed Jobs.
PodIndexLabel featuregate.Feature = "PodIndexLabel"
// owner: @knight42
// kep: https://kep.k8s.io/3288
// alpha: v1.32
//
// Enables only stdout or stderr of the container to be retrievd.
PodLogsQuerySplitStreams featuregate.Feature = "PodLogsQuerySplitStreams"
// owner: @ddebroy, @kannon92
//
// Enables reporting of PodReadyToStartContainersCondition condition in pod status after pod

View File

@@ -700,6 +700,10 @@ var defaultVersionedKubernetesFeatureGates = map[featuregate.Feature]featuregate
{Version: version.MustParse("1.32"), Default: true, LockToDefault: true, PreRelease: featuregate.GA},
},
PodLogsQuerySplitStreams: {
{Version: version.MustParse("1.32"), Default: false, PreRelease: featuregate.Alpha},
},
StatefulSetAutoDeletePVC: {
{Version: version.MustParse("1.23"), Default: false, PreRelease: featuregate.Alpha},
{Version: version.MustParse("1.27"), Default: true, PreRelease: featuregate.Beta},

View File

@@ -912,6 +912,12 @@
lockToDefault: false
preRelease: Alpha
version: "1.32"
- name: PodLogsQuerySplitStreams
versionedSpecs:
- default: false
lockToDefault: false
preRelease: Alpha
version: "1.32"
- name: PodReadyToStartContainersCondition
versionedSpecs:
- default: false