mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #125168 from kaisoz/jobreadypods-fg-removal
Remove the `JobReadyPods` feature flag
This commit is contained in:
		@@ -827,10 +827,7 @@ func (jm *Controller) syncJob(ctx context.Context, key string) (rErr error) {
 | 
			
		||||
	newSucceededPods, newFailedPods := getNewFinishedPods(jobCtx)
 | 
			
		||||
	jobCtx.succeeded = job.Status.Succeeded + int32(len(newSucceededPods)) + int32(len(jobCtx.uncounted.succeeded))
 | 
			
		||||
	jobCtx.failed = job.Status.Failed + int32(nonIgnoredFailedPodsCount(jobCtx, newFailedPods)) + int32(len(jobCtx.uncounted.failed))
 | 
			
		||||
	var ready *int32
 | 
			
		||||
	if feature.DefaultFeatureGate.Enabled(features.JobReadyPods) {
 | 
			
		||||
		ready = ptr.To(countReadyPods(jobCtx.activePods))
 | 
			
		||||
	}
 | 
			
		||||
	ready := ptr.To(countReadyPods(jobCtx.activePods))
 | 
			
		||||
 | 
			
		||||
	// Job first start. Set StartTime only if the job is not in the suspended state.
 | 
			
		||||
	if job.Status.StartTime == nil && !jobSuspended(&job) {
 | 
			
		||||
 
 | 
			
		||||
@@ -346,13 +346,6 @@ const (
 | 
			
		||||
	// based on the set of succeeded pods.
 | 
			
		||||
	JobSuccessPolicy featuregate.Feature = "JobSuccessPolicy"
 | 
			
		||||
 | 
			
		||||
	// owner: @alculquicondor
 | 
			
		||||
	// alpha: v1.23
 | 
			
		||||
	// beta: v1.24
 | 
			
		||||
	//
 | 
			
		||||
	// Track the number of pods with Ready condition in the Job status.
 | 
			
		||||
	JobReadyPods featuregate.Feature = "JobReadyPods"
 | 
			
		||||
 | 
			
		||||
	// owner: @marquiz
 | 
			
		||||
	// kep: http://kep.k8s.io/4033
 | 
			
		||||
	// alpha: v1.28
 | 
			
		||||
@@ -1050,8 +1043,6 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
 | 
			
		||||
 | 
			
		||||
	JobSuccessPolicy: {Default: false, PreRelease: featuregate.Alpha},
 | 
			
		||||
 | 
			
		||||
	JobReadyPods: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.31
 | 
			
		||||
 | 
			
		||||
	KubeletCgroupDriverFromCRI: {Default: false, PreRelease: featuregate.Alpha},
 | 
			
		||||
 | 
			
		||||
	KubeletInUserNamespace: {Default: false, PreRelease: featuregate.Alpha},
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user