@@ -118,7 +118,6 @@ func TestSetDefaults_Configuration(t *testing.T) {
118118 Integrations : defaultIntegrations ,
119119 MultiKueue : defaultMultiKueue ,
120120 ManagedJobsNamespaceSelector : defaultManagedJobsNamespaceSelector ,
121- WaitForPodsReady : & WaitForPodsReady {},
122121 },
123122 },
124123 "defaulting ControllerManager" : {
@@ -161,7 +160,6 @@ func TestSetDefaults_Configuration(t *testing.T) {
161160 Integrations : defaultIntegrations ,
162161 MultiKueue : defaultMultiKueue ,
163162 ManagedJobsNamespaceSelector : defaultManagedJobsNamespaceSelector ,
164- WaitForPodsReady : & WaitForPodsReady {},
165163 },
166164 },
167165 "should not default ControllerManager" : {
@@ -220,7 +218,6 @@ func TestSetDefaults_Configuration(t *testing.T) {
220218 Integrations : defaultIntegrations ,
221219 MultiKueue : defaultMultiKueue ,
222220 ManagedJobsNamespaceSelector : defaultManagedJobsNamespaceSelector ,
223- WaitForPodsReady : & WaitForPodsReady {},
224221 },
225222 },
226223 "should not set LeaderElectionID" : {
@@ -263,7 +260,6 @@ func TestSetDefaults_Configuration(t *testing.T) {
263260 Integrations : defaultIntegrations ,
264261 MultiKueue : defaultMultiKueue ,
265262 ManagedJobsNamespaceSelector : defaultManagedJobsNamespaceSelector ,
266- WaitForPodsReady : & WaitForPodsReady {},
267263 },
268264 },
269265 "defaulting InternalCertManagement" : {
@@ -282,7 +278,6 @@ func TestSetDefaults_Configuration(t *testing.T) {
282278 Integrations : overwriteNamespaceIntegrations ,
283279 MultiKueue : defaultMultiKueue ,
284280 ManagedJobsNamespaceSelector : overwriteNamespaceSelector ,
285- WaitForPodsReady : & WaitForPodsReady {},
286281 },
287282 },
288283 "should not default InternalCertManagement" : {
@@ -302,7 +297,6 @@ func TestSetDefaults_Configuration(t *testing.T) {
302297 Integrations : overwriteNamespaceIntegrations ,
303298 MultiKueue : defaultMultiKueue ,
304299 ManagedJobsNamespaceSelector : overwriteNamespaceSelector ,
305- WaitForPodsReady : & WaitForPodsReady {},
306300 },
307301 },
308302 "should not default values in custom ClientConnection" : {
@@ -329,7 +323,6 @@ func TestSetDefaults_Configuration(t *testing.T) {
329323 Integrations : overwriteNamespaceIntegrations ,
330324 MultiKueue : defaultMultiKueue ,
331325 ManagedJobsNamespaceSelector : overwriteNamespaceSelector ,
332- WaitForPodsReady : & WaitForPodsReady {},
333326 },
334327 },
335328 "should default empty custom ClientConnection" : {
@@ -350,21 +343,17 @@ func TestSetDefaults_Configuration(t *testing.T) {
350343 Integrations : overwriteNamespaceIntegrations ,
351344 MultiKueue : defaultMultiKueue ,
352345 ManagedJobsNamespaceSelector : overwriteNamespaceSelector ,
353- WaitForPodsReady : & WaitForPodsReady {},
354346 },
355347 },
356348 "defaulting waitForPodsReady values" : {
357349 original : & Configuration {
358- WaitForPodsReady : & WaitForPodsReady {
359- Enable : true ,
360- },
350+ WaitForPodsReady : & WaitForPodsReady {},
361351 InternalCertManagement : & InternalCertManagement {
362352 Enable : ptr .To (false ),
363353 },
364354 },
365355 want : & Configuration {
366356 WaitForPodsReady : & WaitForPodsReady {
367- Enable : true ,
368357 BlockAdmission : ptr .To (true ),
369358 Timeout : & podsReadyTimeout ,
370359 RecoveryTimeout : nil ,
@@ -385,34 +374,9 @@ func TestSetDefaults_Configuration(t *testing.T) {
385374 ManagedJobsNamespaceSelector : defaultManagedJobsNamespaceSelector ,
386375 },
387376 },
388- "set waitForPodsReady.blockAdmission to false, and waitForPodsReady.recoveryTimeout to nil when enable is false" : {
389- original : & Configuration {
390- WaitForPodsReady : & WaitForPodsReady {
391- Enable : false ,
392- },
393- InternalCertManagement : & InternalCertManagement {
394- Enable : ptr .To (false ),
395- },
396- },
397- want : & Configuration {
398- WaitForPodsReady : & WaitForPodsReady {
399- Enable : false ,
400- },
401- Namespace : ptr .To (DefaultNamespace ),
402- ControllerManager : defaultCtrlManagerConfigurationSpec ,
403- InternalCertManagement : & InternalCertManagement {
404- Enable : ptr .To (false ),
405- },
406- ClientConnection : defaultClientConnection ,
407- Integrations : defaultIntegrations ,
408- MultiKueue : defaultMultiKueue ,
409- ManagedJobsNamespaceSelector : defaultManagedJobsNamespaceSelector ,
410- },
411- },
412377 "respecting provided waitForPodsReady values" : {
413378 original : & Configuration {
414379 WaitForPodsReady : & WaitForPodsReady {
415- Enable : true ,
416380 Timeout : & podsReadyTimeoutOverwrite ,
417381 RequeuingStrategy : & RequeuingStrategy {
418382 Timestamp : ptr .To (CreationTimestamp ),
@@ -427,7 +391,6 @@ func TestSetDefaults_Configuration(t *testing.T) {
427391 },
428392 want : & Configuration {
429393 WaitForPodsReady : & WaitForPodsReady {
430- Enable : true ,
431394 BlockAdmission : ptr .To (true ),
432395 Timeout : & podsReadyTimeoutOverwrite ,
433396 RecoveryTimeout : & metav1.Duration {Duration : time .Minute },
@@ -469,7 +432,6 @@ func TestSetDefaults_Configuration(t *testing.T) {
469432 },
470433 MultiKueue : defaultMultiKueue ,
471434 ManagedJobsNamespaceSelector : defaultManagedJobsNamespaceSelector ,
472- WaitForPodsReady : & WaitForPodsReady {},
473435 },
474436 },
475437 "multiKueue" : {
@@ -499,7 +461,6 @@ func TestSetDefaults_Configuration(t *testing.T) {
499461 DispatcherName : ptr .To (MultiKueueDispatcherModeIncremental ),
500462 },
501463 ManagedJobsNamespaceSelector : defaultManagedJobsNamespaceSelector ,
502- WaitForPodsReady : & WaitForPodsReady {},
503464 },
504465 },
505466 "multiKueue origin is an empty value" : {
@@ -529,7 +490,6 @@ func TestSetDefaults_Configuration(t *testing.T) {
529490 DispatcherName : defaultMultiKueue .DispatcherName ,
530491 },
531492 ManagedJobsNamespaceSelector : defaultManagedJobsNamespaceSelector ,
532- WaitForPodsReady : & WaitForPodsReady {},
533493 },
534494 },
535495 "multiKueue GCInterval 0" : {
@@ -557,7 +517,6 @@ func TestSetDefaults_Configuration(t *testing.T) {
557517 DispatcherName : defaultMultiKueue .DispatcherName ,
558518 },
559519 ManagedJobsNamespaceSelector : defaultManagedJobsNamespaceSelector ,
560- WaitForPodsReady : & WaitForPodsReady {},
561520 },
562521 },
563522 "add default fair sharing configuration when enabled" : {
@@ -580,7 +539,6 @@ func TestSetDefaults_Configuration(t *testing.T) {
580539 FairSharing : & FairSharing {
581540 PreemptionStrategies : []PreemptionStrategy {LessThanOrEqualToFinalShare , LessThanInitialShare },
582541 },
583- WaitForPodsReady : & WaitForPodsReady {},
584542 },
585543 },
586544 "set object retention policy for workloads" : {
@@ -611,7 +569,6 @@ func TestSetDefaults_Configuration(t *testing.T) {
611569 AfterDeactivatedByKueue : & metav1.Duration {Duration : 30 * time .Minute },
612570 },
613571 },
614- WaitForPodsReady : & WaitForPodsReady {},
615572 },
616573 },
617574 "resources.transformations strategy" : {
@@ -644,7 +601,6 @@ func TestSetDefaults_Configuration(t *testing.T) {
644601 {Input : corev1 .ResourceEphemeralStorage , Strategy : ptr .To (DefaultResourceTransformationStrategy )},
645602 },
646603 },
647- WaitForPodsReady : & WaitForPodsReady {},
648604 },
649605 },
650606 }
0 commit comments