@@ -464,6 +464,7 @@ func TestKubeletConfigCreate(t *testing.T) {
464
464
f .expectUpdateKubeletConfigRoot (kc1 )
465
465
f .expectCreateMachineConfigAction (mcs )
466
466
f .expectPatchKubeletConfig (kc1 , kcfgPatchBytes )
467
+ f .expectGetMachineConfigAction (mcs )
467
468
f .expectUpdateKubeletConfig (kc1 )
468
469
469
470
f .run (getKey (kc1 , t ))
@@ -510,6 +511,7 @@ func TestKubeletConfigMultiCreate(t *testing.T) {
510
511
f .expectUpdateKubeletConfigRoot (kc )
511
512
f .expectCreateMachineConfigAction (mcs )
512
513
f .expectPatchKubeletConfig (kc , []byte (expectedPatch ))
514
+ f .expectGetMachineConfigAction (mcs )
513
515
f .expectUpdateKubeletConfig (kc )
514
516
f .run (poolName )
515
517
}
@@ -558,6 +560,7 @@ func TestKubeletConfigAutoSizingReserved(t *testing.T) {
558
560
f .expectUpdateKubeletConfigRoot (kc1 )
559
561
f .expectCreateMachineConfigAction (mcs )
560
562
f .expectPatchKubeletConfig (kc1 , kcfgPatchBytes )
563
+ f .expectGetMachineConfigAction (mcs )
561
564
f .expectUpdateKubeletConfig (kc1 )
562
565
563
566
f .run (getKey (kc1 , t ))
@@ -601,6 +604,7 @@ func TestKubeletConfiglogFile(t *testing.T) {
601
604
f .expectUpdateKubeletConfigRoot (kc1 )
602
605
f .expectCreateMachineConfigAction (mcs )
603
606
f .expectPatchKubeletConfig (kc1 , kcfgPatchBytes )
607
+ f .expectGetMachineConfigAction (mcs )
604
608
f .expectUpdateKubeletConfig (kc1 )
605
609
606
610
f .run (getKey (kc1 , t ))
@@ -638,6 +642,7 @@ func TestKubeletConfigUpdates(t *testing.T) {
638
642
f .expectUpdateKubeletConfigRoot (kc1 )
639
643
f .expectCreateMachineConfigAction (mcs )
640
644
f .expectPatchKubeletConfig (kc1 , kcfgPatchBytes )
645
+ f .expectGetMachineConfigAction (mcs )
641
646
f .expectUpdateKubeletConfig (kc1 )
642
647
643
648
c := f .newController (fgHandler )
@@ -696,6 +701,7 @@ func TestKubeletConfigUpdates(t *testing.T) {
696
701
f .expectGetMachineConfigAction (mcs )
697
702
f .expectUpdateMachineConfigAction (mcUpdate )
698
703
f .expectPatchKubeletConfig (kcUpdate , kcfgPatchBytes )
704
+ f .expectGetMachineConfigAction (mcs )
699
705
f .expectUpdateKubeletConfig (kcUpdate )
700
706
701
707
f .validateActions ()
@@ -742,6 +748,7 @@ func TestMachineConfigUpdateUponFeatureGateUpdate(t *testing.T) {
742
748
f .expectUpdateKubeletConfigRoot (kc1 )
743
749
f .expectCreateMachineConfigAction (mcs )
744
750
f .expectPatchKubeletConfig (kc1 , kcfgPatchBytes )
751
+ f .expectGetMachineConfigAction (mcs )
745
752
f .expectUpdateKubeletConfig (kc1 )
746
753
747
754
c := f .newController (fgHandler )
@@ -787,6 +794,7 @@ func TestMachineConfigUpdateUponFeatureGateUpdate(t *testing.T) {
787
794
f .expectGetMachineConfigAction (mcs )
788
795
f .expectUpdateMachineConfigAction (mcUpdate )
789
796
f .expectPatchKubeletConfig (kc1 , kcfgPatchBytes )
797
+ f .expectGetMachineConfigAction (mcs )
790
798
f .expectUpdateKubeletConfig (kc1 )
791
799
792
800
f .validateActions ()
@@ -834,6 +842,7 @@ func TestMachineConfigSkipUpdate(t *testing.T) {
834
842
f .expectUpdateKubeletConfigRoot (kc1 )
835
843
f .expectCreateMachineConfigAction (mcs )
836
844
f .expectPatchKubeletConfig (kc1 , kcfgPatchBytes )
845
+ f .expectGetMachineConfigAction (mcs )
837
846
f .expectUpdateKubeletConfig (kc1 )
838
847
839
848
c := f .newController (fgHandler )
@@ -981,6 +990,7 @@ func TestKubeletFeatureExists(t *testing.T) {
981
990
f .expectUpdateKubeletConfigRoot (kc1 )
982
991
f .expectCreateMachineConfigAction (mcs )
983
992
f .expectPatchKubeletConfig (kc1 , kcfgPatchBytes )
993
+ f .expectGetMachineConfigAction (mcs )
984
994
f .expectUpdateKubeletConfig (kc1 )
985
995
986
996
f .run (getKey (kc1 , t ))
@@ -1200,6 +1210,7 @@ func TestAddAnnotationExistingKubeletConfig(t *testing.T) {
1200
1210
f .expectUpdateKubeletConfigRoot (kc )
1201
1211
f .expectUpdateMachineConfigAction (kcMC )
1202
1212
f .expectPatchKubeletConfig (kc , []byte ("{}" ))
1213
+ f .expectGetMachineConfigAction (kcMC )
1203
1214
f .expectUpdateKubeletConfig (kc )
1204
1215
1205
1216
c := f .newController (fgHandler )
0 commit comments