@@ -467,8 +467,8 @@ func TestKubeadmControlPlaneValidateUpdate(t *testing.T) {
467
467
kcp : validUpdate ,
468
468
},
469
469
{
470
- name : "should return error when trying to mutate the kubeadmconfigspec initconfiguration" ,
471
- expectErr : true ,
470
+ name : "should not return error when trying to mutate the kubeadmconfigspec initconfiguration" ,
471
+ expectErr : false ,
472
472
before : before ,
473
473
kcp : invalidUpdateKubeadmConfigInit ,
474
474
},
@@ -479,14 +479,14 @@ func TestKubeadmControlPlaneValidateUpdate(t *testing.T) {
479
479
kcp : validUpdateKubeadmConfigInit ,
480
480
},
481
481
{
482
- name : "should return error when trying to mutate the kubeadmconfigspec clusterconfiguration" ,
483
- expectErr : true ,
482
+ name : "should not return error when trying to mutate the kubeadmconfigspec clusterconfiguration" ,
483
+ expectErr : false ,
484
484
before : before ,
485
485
kcp : invalidUpdateKubeadmConfigCluster ,
486
486
},
487
487
{
488
- name : "should return error when trying to mutate the kubeadmconfigspec joinconfiguration" ,
489
- expectErr : true ,
488
+ name : "should not return error when trying to mutate the kubeadmconfigspec joinconfiguration" ,
489
+ expectErr : false ,
490
490
before : before ,
491
491
kcp : invalidUpdateKubeadmConfigJoin ,
492
492
},
@@ -545,38 +545,38 @@ func TestKubeadmControlPlaneValidateUpdate(t *testing.T) {
545
545
kcp : etcdLocalImageInvalidTag ,
546
546
},
547
547
{
548
- name : "should fail when making a change to the cluster config's networking struct" ,
549
- expectErr : true ,
548
+ name : "should not fail when making a change to the cluster config's networking struct" ,
549
+ expectErr : false ,
550
550
before : before ,
551
551
kcp : networking ,
552
552
},
553
553
{
554
- name : "should fail when making a change to the cluster config's kubernetes version" ,
555
- expectErr : true ,
554
+ name : "should not fail when making a change to the cluster config's kubernetes version" ,
555
+ expectErr : false ,
556
556
before : before ,
557
557
kcp : kubernetesVersion ,
558
558
},
559
559
{
560
- name : "should fail when making a change to the cluster config's controlPlaneEndpoint" ,
561
- expectErr : true ,
560
+ name : "should not fail when making a change to the cluster config's controlPlaneEndpoint" ,
561
+ expectErr : false ,
562
562
before : before ,
563
563
kcp : controlPlaneEndpoint ,
564
564
},
565
565
{
566
- name : "should fail when making a change to the cluster config's apiServer" ,
567
- expectErr : true ,
566
+ name : "should not fail when making a change to the cluster config's apiServer" ,
567
+ expectErr : false ,
568
568
before : before ,
569
569
kcp : apiServer ,
570
570
},
571
571
{
572
- name : "should fail when making a change to the cluster config's controllerManager" ,
573
- expectErr : true ,
572
+ name : "should not fail when making a change to the cluster config's controllerManager" ,
573
+ expectErr : false ,
574
574
before : before ,
575
575
kcp : controllerManager ,
576
576
},
577
577
{
578
- name : "should fail when making a change to the cluster config's scheduler" ,
579
- expectErr : true ,
578
+ name : "should not fail when making a change to the cluster config's scheduler" ,
579
+ expectErr : false ,
580
580
before : before ,
581
581
kcp : scheduler ,
582
582
},
@@ -617,8 +617,8 @@ func TestKubeadmControlPlaneValidateUpdate(t *testing.T) {
617
617
kcp : dnsInvalidCoreDNSToVersion ,
618
618
},
619
619
{
620
- name : "should fail when making a change to the cluster config's certificatesDir" ,
621
- expectErr : true ,
620
+ name : "should not fail when making a change to the cluster config's certificatesDir" ,
621
+ expectErr : false ,
622
622
before : before ,
623
623
kcp : certificatesDir ,
624
624
},
@@ -629,56 +629,56 @@ func TestKubeadmControlPlaneValidateUpdate(t *testing.T) {
629
629
kcp : imageRepository ,
630
630
},
631
631
{
632
- name : "should fail when making a change to the cluster config's useHyperKubeImage field" ,
633
- expectErr : true ,
632
+ name : "should not fail when making a change to the cluster config's useHyperKubeImage field" ,
633
+ expectErr : false ,
634
634
before : before ,
635
635
kcp : useHyperKubeImage ,
636
636
},
637
637
{
638
- name : "should fail when making a change to the cluster config's featureGates" ,
639
- expectErr : true ,
638
+ name : "should not fail when making a change to the cluster config's featureGates" ,
639
+ expectErr : false ,
640
640
before : before ,
641
641
kcp : featureGates ,
642
642
},
643
643
{
644
- name : "should fail when making a change to the cluster config's local etcd's configuration localDataDir field" ,
645
- expectErr : true ,
644
+ name : "should not fail when making a change to the cluster config's local etcd's configuration localDataDir field" ,
645
+ expectErr : false ,
646
646
before : before ,
647
647
kcp : localDataDir ,
648
648
},
649
649
{
650
- name : "should fail when making a change to the cluster config's local etcd's configuration localPeerCertSANs field" ,
651
- expectErr : true ,
650
+ name : "should not fail when making a change to the cluster config's local etcd's configuration localPeerCertSANs field" ,
651
+ expectErr : false ,
652
652
before : before ,
653
653
kcp : localPeerCertSANs ,
654
654
},
655
655
{
656
- name : "should fail when making a change to the cluster config's local etcd's configuration localServerCertSANs field" ,
657
- expectErr : true ,
656
+ name : "should not fail when making a change to the cluster config's local etcd's configuration localServerCertSANs field" ,
657
+ expectErr : false ,
658
658
before : before ,
659
659
kcp : localServerCertSANs ,
660
660
},
661
661
{
662
- name : "should fail when making a change to the cluster config's local etcd's configuration localExtraArgs field" ,
663
- expectErr : true ,
662
+ name : "should not fail when making a change to the cluster config's local etcd's configuration localExtraArgs field" ,
663
+ expectErr : false ,
664
664
before : before ,
665
665
kcp : localExtraArgs ,
666
666
},
667
667
{
668
- name : "should fail when making a change to the cluster config's external etcd's configuration" ,
669
- expectErr : true ,
668
+ name : "should not fail when making a change to the cluster config's external etcd's configuration" ,
669
+ expectErr : false ,
670
670
before : before ,
671
671
kcp : externalEtcd ,
672
672
},
673
673
{
674
- name : "should fail when attempting to unset the etcd local object" ,
675
- expectErr : true ,
674
+ name : "should not fail when attempting to unset the etcd local object" ,
675
+ expectErr : false ,
676
676
before : etcdLocalImageTag ,
677
677
kcp : unsetEtcd ,
678
678
},
679
679
{
680
- name : "should fail when modifying a field that is not the local etcd image metadata" ,
681
- expectErr : true ,
680
+ name : "should not fail when modifying a field that is not the local etcd image metadata" ,
681
+ expectErr : false ,
682
682
before : localDataDir ,
683
683
kcp : modifyLocalDataDir ,
684
684
},
0 commit comments