mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
Merge pull request #112589 from SataQiu/clean-featuregates-1.26
Remove GA featuregates IndexedJob and SuspendJob
This commit is contained in:
commit
9c9b29032f
@ -181,7 +181,6 @@ func validateJobSpec(spec *batch.JobSpec, fldPath *field.Path, opts apivalidatio
|
|||||||
if spec.TTLSecondsAfterFinished != nil {
|
if spec.TTLSecondsAfterFinished != nil {
|
||||||
allErrs = append(allErrs, apivalidation.ValidateNonnegativeField(int64(*spec.TTLSecondsAfterFinished), fldPath.Child("ttlSecondsAfterFinished"))...)
|
allErrs = append(allErrs, apivalidation.ValidateNonnegativeField(int64(*spec.TTLSecondsAfterFinished), fldPath.Child("ttlSecondsAfterFinished"))...)
|
||||||
}
|
}
|
||||||
// CompletionMode might be nil when IndexedJob feature gate is disabled.
|
|
||||||
if spec.CompletionMode != nil {
|
if spec.CompletionMode != nil {
|
||||||
if *spec.CompletionMode != batch.NonIndexedCompletion && *spec.CompletionMode != batch.IndexedCompletion {
|
if *spec.CompletionMode != batch.NonIndexedCompletion && *spec.CompletionMode != batch.IndexedCompletion {
|
||||||
allErrs = append(allErrs, field.NotSupported(fldPath.Child("completionMode"), spec.CompletionMode, []string{string(batch.NonIndexedCompletion), string(batch.IndexedCompletion)}))
|
allErrs = append(allErrs, field.NotSupported(fldPath.Child("completionMode"), spec.CompletionMode, []string{string(batch.NonIndexedCompletion), string(batch.IndexedCompletion)}))
|
||||||
|
@ -411,14 +411,6 @@ const (
|
|||||||
// Disables the vSphere in-tree driver.
|
// Disables the vSphere in-tree driver.
|
||||||
InTreePluginvSphereUnregister featuregate.Feature = "InTreePluginvSphereUnregister"
|
InTreePluginvSphereUnregister featuregate.Feature = "InTreePluginvSphereUnregister"
|
||||||
|
|
||||||
// owner: @alculquicondor
|
|
||||||
// alpha: v1.21
|
|
||||||
// beta: v1.22
|
|
||||||
// stable: v1.24
|
|
||||||
//
|
|
||||||
// Allows Job controller to manage Pod completions per completion index.
|
|
||||||
IndexedJob featuregate.Feature = "IndexedJob"
|
|
||||||
|
|
||||||
// owner: @danwinship
|
// owner: @danwinship
|
||||||
// kep: http://kep.k8s.io/3178
|
// kep: http://kep.k8s.io/3178
|
||||||
// alpha: v1.25
|
// alpha: v1.25
|
||||||
@ -763,14 +755,6 @@ const (
|
|||||||
// StatefulSetMinReadySeconds allows minReadySeconds to be respected by StatefulSet controller
|
// StatefulSetMinReadySeconds allows minReadySeconds to be respected by StatefulSet controller
|
||||||
StatefulSetMinReadySeconds featuregate.Feature = "StatefulSetMinReadySeconds"
|
StatefulSetMinReadySeconds featuregate.Feature = "StatefulSetMinReadySeconds"
|
||||||
|
|
||||||
// owner: @adtac
|
|
||||||
// alpha: v1.21
|
|
||||||
// beta: v1.22
|
|
||||||
// GA: v1.24
|
|
||||||
//
|
|
||||||
// Allows jobs to be created in the suspended state.
|
|
||||||
SuspendJob featuregate.Feature = "SuspendJob"
|
|
||||||
|
|
||||||
// owner: @robscott
|
// owner: @robscott
|
||||||
// kep: http://kep.k8s.io/2433
|
// kep: http://kep.k8s.io/2433
|
||||||
// alpha: v1.21
|
// alpha: v1.21
|
||||||
@ -949,8 +933,6 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
|
|||||||
|
|
||||||
InTreePluginvSphereUnregister: {Default: false, PreRelease: featuregate.Alpha},
|
InTreePluginvSphereUnregister: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
|
|
||||||
IndexedJob: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.26
|
|
||||||
|
|
||||||
IPTablesOwnershipCleanup: {Default: false, PreRelease: featuregate.Alpha},
|
IPTablesOwnershipCleanup: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
|
|
||||||
JobPodFailurePolicy: {Default: false, PreRelease: featuregate.Alpha},
|
JobPodFailurePolicy: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
@ -1045,8 +1027,6 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
|
|||||||
|
|
||||||
StatefulSetMinReadySeconds: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.27
|
StatefulSetMinReadySeconds: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.27
|
||||||
|
|
||||||
SuspendJob: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.26
|
|
||||||
|
|
||||||
TopologyAwareHints: {Default: true, PreRelease: featuregate.Beta},
|
TopologyAwareHints: {Default: true, PreRelease: featuregate.Beta},
|
||||||
|
|
||||||
TopologyManager: {Default: true, PreRelease: featuregate.Beta},
|
TopologyManager: {Default: true, PreRelease: featuregate.Beta},
|
||||||
|
Loading…
Reference in New Issue
Block a user