@@ -273,6 +273,7 @@ func Test_assessNode(t *testing.T) {
273
273
Status : "False" ,
274
274
LastTransitionTime : now ,
275
275
Reason : "Pending" ,
276
+ Message : "The update of the node is pending" ,
276
277
},
277
278
{
278
279
Type : "Available" ,
@@ -283,6 +284,8 @@ func Test_assessNode(t *testing.T) {
283
284
{
284
285
Type : "Degraded" ,
285
286
Status : "False" ,
287
+ Reason : "AsExpected" ,
288
+ Message : "The node is not degraded" ,
286
289
LastTransitionTime : now ,
287
290
},
288
291
},
@@ -319,16 +322,21 @@ func Test_assessNode(t *testing.T) {
319
322
Type : "Updating" ,
320
323
Status : "False" ,
321
324
Reason : "Pending" ,
325
+ Message : "The update of the node is pending" ,
322
326
LastTransitionTime : now ,
323
327
},
324
328
{
325
329
Type : "Available" ,
326
330
Status : "True" ,
331
+ Reason : "AsExpected" ,
332
+ Message : "The node is available" ,
327
333
LastTransitionTime : now ,
328
334
},
329
335
{
330
336
Type : "Degraded" ,
331
337
Status : "False" ,
338
+ Reason : "AsExpected" ,
339
+ Message : "The node is not degraded" ,
332
340
LastTransitionTime : now ,
333
341
},
334
342
},
@@ -366,16 +374,21 @@ func Test_assessNode(t *testing.T) {
366
374
Type : "Updating" ,
367
375
Status : "False" ,
368
376
Reason : "Paused" ,
377
+ Message : "The update of the node is paused" ,
369
378
LastTransitionTime : now ,
370
379
},
371
380
{
372
381
Type : "Available" ,
373
382
Status : "True" ,
383
+ Reason : "AsExpected" ,
384
+ Message : "The node is available" ,
374
385
LastTransitionTime : now ,
375
386
},
376
387
{
377
388
Type : "Degraded" ,
378
389
Status : "False" ,
390
+ Reason : "AsExpected" ,
391
+ Message : "The node is not degraded" ,
379
392
LastTransitionTime : now ,
380
393
},
381
394
},
@@ -415,16 +428,21 @@ func Test_assessNode(t *testing.T) {
415
428
Type : "Updating" ,
416
429
Status : "False" ,
417
430
Reason : "Completed" ,
431
+ Message : "The node is updated" ,
418
432
LastTransitionTime : now ,
419
433
},
420
434
{
421
435
Type : "Available" ,
422
436
Status : "True" ,
437
+ Reason : "AsExpected" ,
438
+ Message : "The node is available" ,
423
439
LastTransitionTime : now ,
424
440
},
425
441
{
426
442
Type : "Degraded" ,
427
443
Status : "False" ,
444
+ Reason : "AsExpected" ,
445
+ Message : "The node is not degraded" ,
428
446
LastTransitionTime : now ,
429
447
},
430
448
},
@@ -466,16 +484,21 @@ func Test_assessNode(t *testing.T) {
466
484
Type : "Updating" ,
467
485
Status : "True" ,
468
486
Reason : "Updating" ,
487
+ Message : "The node is updating" ,
469
488
LastTransitionTime : now ,
470
489
},
471
490
{
472
491
Type : "Available" ,
473
492
Status : "True" ,
493
+ Reason : "AsExpected" ,
494
+ Message : "The node is available" ,
474
495
LastTransitionTime : now ,
475
496
},
476
497
{
477
498
Type : "Degraded" ,
478
499
Status : "False" ,
500
+ Reason : "AsExpected" ,
501
+ Message : "The node is not degraded" ,
479
502
LastTransitionTime : now ,
480
503
},
481
504
},
@@ -517,16 +540,21 @@ func Test_assessNode(t *testing.T) {
517
540
Type : "Updating" ,
518
541
Status : "True" ,
519
542
Reason : "Updating" ,
543
+ Message : "The node is updating" ,
520
544
LastTransitionTime : now ,
521
545
},
522
546
{
523
547
Type : "Available" ,
524
548
Status : "True" ,
549
+ Reason : "AsExpected" ,
550
+ Message : "The node is available" ,
525
551
LastTransitionTime : now ,
526
552
},
527
553
{
528
554
Type : "Degraded" ,
529
555
Status : "False" ,
556
+ Reason : "AsExpected" ,
557
+ Message : "The node is not degraded" ,
530
558
LastTransitionTime : now ,
531
559
},
532
560
},
@@ -568,16 +596,21 @@ func Test_assessNode(t *testing.T) {
568
596
Type : "Updating" ,
569
597
Status : "True" ,
570
598
Reason : "Updating" ,
599
+ Message : "The node is updating" ,
571
600
LastTransitionTime : now ,
572
601
},
573
602
{
574
603
Type : "Available" ,
575
604
Status : "True" ,
605
+ Reason : "AsExpected" ,
606
+ Message : "The node is available" ,
576
607
LastTransitionTime : now ,
577
608
},
578
609
{
579
610
Type : "Degraded" ,
580
611
Status : "False" ,
612
+ Reason : "AsExpected" ,
613
+ Message : "The node is not degraded" ,
581
614
LastTransitionTime : now ,
582
615
},
583
616
},
@@ -618,16 +651,21 @@ func Test_assessNode(t *testing.T) {
618
651
Type : "Updating" ,
619
652
Status : "False" ,
620
653
Reason : "Pending" ,
654
+ Message : "The update of the node is pending" ,
621
655
LastTransitionTime : now ,
622
656
},
623
657
{
624
658
Type : "Available" ,
625
659
Status : "True" ,
660
+ Reason : "AsExpected" ,
661
+ Message : "The node is available" ,
626
662
LastTransitionTime : now ,
627
663
},
628
664
{
629
665
Type : "Degraded" ,
630
666
Status : "False" ,
667
+ Reason : "AsExpected" ,
668
+ Message : "The node is not degraded" ,
631
669
LastTransitionTime : now ,
632
670
},
633
671
},
@@ -671,16 +709,21 @@ func Test_assessNode(t *testing.T) {
671
709
Type : "Updating" ,
672
710
Status : "True" ,
673
711
Reason : "Draining" ,
712
+ Message : "The node is draining" ,
674
713
LastTransitionTime : now ,
675
714
},
676
715
{
677
716
Type : "Available" ,
678
717
Status : "True" ,
718
+ Reason : "AsExpected" ,
719
+ Message : "The node is available" ,
679
720
LastTransitionTime : now ,
680
721
},
681
722
{
682
723
Type : "Degraded" ,
683
724
Status : "False" ,
725
+ Reason : "AsExpected" ,
726
+ Message : "The node is not degraded" ,
684
727
LastTransitionTime : now ,
685
728
},
686
729
},
@@ -723,16 +766,21 @@ func Test_assessNode(t *testing.T) {
723
766
Type : "Updating" ,
724
767
Status : "True" ,
725
768
Reason : "Rebooting" ,
769
+ Message : "The node is rebooting" ,
726
770
LastTransitionTime : now ,
727
771
},
728
772
{
729
773
Type : "Available" ,
730
774
Status : "True" ,
775
+ Reason : "AsExpected" ,
776
+ Message : "The node is available" ,
731
777
LastTransitionTime : now ,
732
778
},
733
779
{
734
780
Type : "Degraded" ,
735
781
Status : "False" ,
782
+ Reason : "AsExpected" ,
783
+ Message : "The node is not degraded" ,
736
784
LastTransitionTime : now ,
737
785
},
738
786
},
@@ -768,24 +816,27 @@ func Test_assessNode(t *testing.T) {
768
816
},
769
817
},
770
818
Scope : "WorkerPool" ,
771
- Message : "Node worker-1 is not ready" ,
819
+ Message : "Node is not ready" ,
772
820
Conditions : []metav1.Condition {
773
821
{
774
822
Type : "Updating" ,
775
823
Status : "False" ,
776
824
LastTransitionTime : now ,
777
825
Reason : "Pending" ,
826
+ Message : "The update of the node is pending" ,
778
827
},
779
828
{
780
829
Type : "Available" ,
781
830
Status : "False" ,
782
831
Reason : "Not ready" ,
783
- Message : "Node worker-1 is not ready" ,
832
+ Message : "Node is not ready" ,
784
833
LastTransitionTime : notReadyTime ,
785
834
},
786
835
{
787
836
Type : "Degraded" ,
788
837
Status : "False" ,
838
+ Reason : "AsExpected" ,
839
+ Message : "The node is not degraded" ,
789
840
LastTransitionTime : now ,
790
841
},
791
842
},
@@ -829,10 +880,13 @@ func Test_assessNode(t *testing.T) {
829
880
Status : "False" ,
830
881
LastTransitionTime : now ,
831
882
Reason : "Pending" ,
883
+ Message : "The update of the node is pending" ,
832
884
},
833
885
{
834
886
Type : "Available" ,
835
887
Status : "True" ,
888
+ Reason : "AsExpected" ,
889
+ Message : "The node is available" ,
836
890
LastTransitionTime : now ,
837
891
},
838
892
{
@@ -935,9 +989,9 @@ func Test_sync_with_node(t *testing.T) {
935
989
Scope : "WorkerPool" ,
936
990
Version : "4.1.23" ,
937
991
Conditions : []metav1.Condition {
938
- {Type : "Updating" , Status : "False" , LastTransitionTime : now , Reason : "Pending" },
939
- {Type : "Available" , Status : "True" , LastTransitionTime : now },
940
- {Type : "Degraded" , Status : "False" , LastTransitionTime : now },
992
+ {Type : "Updating" , Status : "False" , LastTransitionTime : now , Reason : "Pending" , Message : "The update of the node is pending" },
993
+ {Type : "Available" , Status : "True" , LastTransitionTime : now , Reason : "AsExpected" , Message : "The node is available" },
994
+ {Type : "Degraded" , Status : "False" , LastTransitionTime : now , Reason : "AsExpected" , Message : "The node is not degraded" },
941
995
},
942
996
},
943
997
},
@@ -978,9 +1032,9 @@ func Test_sync_with_node(t *testing.T) {
978
1032
Version : "4.1.23" ,
979
1033
EstToComplete : toPointer (10 * time .Minute ),
980
1034
Conditions : []metav1.Condition {
981
- {Type : "Updating" , Status : "True" , LastTransitionTime : now , Reason : "Updating" },
982
- {Type : "Available" , Status : "True" , LastTransitionTime : now },
983
- {Type : "Degraded" , Status : "False" , LastTransitionTime : now },
1035
+ {Type : "Updating" , Status : "True" , LastTransitionTime : now , Reason : "Updating" , Message : "The node is updating" },
1036
+ {Type : "Available" , Status : "True" , LastTransitionTime : now , Reason : "AsExpected" , Message : "The node is available" },
1037
+ {Type : "Degraded" , Status : "False" , LastTransitionTime : now , Reason : "AsExpected" , Message : "The node is not degraded" },
984
1038
},
985
1039
},
986
1040
},
0 commit comments