@@ -399,7 +399,7 @@ func Test_targetGroupBindingValidator_ValidateUpdate(t *testing.T) {
399
399
},
400
400
},
401
401
},
402
- wantErr : errors .New ("TargetGroupBinding update may not change these fields: spec.targetGroupARN" ),
402
+ wantErr : errors .New ("TargetGroupBinding update may not change these immutable fields: spec.targetGroupARN" ),
403
403
},
404
404
{
405
405
name : "[err] targetType is ip, nodeSelector is set" ,
@@ -439,7 +439,7 @@ func Test_targetGroupBindingValidator_ValidateUpdate(t *testing.T) {
439
439
},
440
440
},
441
441
},
442
- wantErr : errors .New ("TargetGroupBinding update may not change these fields: spec.ipAddressType" ),
442
+ wantErr : errors .New ("TargetGroupBinding update may not change these immutable fields: spec.ipAddressType" ),
443
443
},
444
444
{
445
445
name : "[ok] no update to spec" ,
@@ -576,7 +576,7 @@ func Test_targetGroupBindingValidator_checkImmutableFields(t *testing.T) {
576
576
},
577
577
},
578
578
},
579
- wantErr : errors .New ("TargetGroupBinding update may not change these fields: spec.targetGroupARN" ),
579
+ wantErr : errors .New ("TargetGroupBinding update may not change these immutable fields: spec.targetGroupARN" ),
580
580
},
581
581
{
582
582
name : "targetType is changed" ,
@@ -594,7 +594,7 @@ func Test_targetGroupBindingValidator_checkImmutableFields(t *testing.T) {
594
594
},
595
595
},
596
596
},
597
- wantErr : errors .New ("TargetGroupBinding update may not change these fields: spec.targetType" ),
597
+ wantErr : errors .New ("TargetGroupBinding update may not change these immutable fields: spec.targetType" ),
598
598
},
599
599
{
600
600
name : "targetType is changed from unset to set" ,
@@ -612,7 +612,7 @@ func Test_targetGroupBindingValidator_checkImmutableFields(t *testing.T) {
612
612
},
613
613
},
614
614
},
615
- wantErr : errors .New ("TargetGroupBinding update may not change these fields: spec.targetType" ),
615
+ wantErr : errors .New ("TargetGroupBinding update may not change these immutable fields: spec.targetType" ),
616
616
},
617
617
{
618
618
name : "targetType is changed from set to unset" ,
@@ -630,7 +630,7 @@ func Test_targetGroupBindingValidator_checkImmutableFields(t *testing.T) {
630
630
},
631
631
},
632
632
},
633
- wantErr : errors .New ("TargetGroupBinding update may not change these fields: spec.targetType" ),
633
+ wantErr : errors .New ("TargetGroupBinding update may not change these immutable fields: spec.targetType" ),
634
634
},
635
635
{
636
636
name : "both targetGroupARN and targetType are changed" ,
@@ -648,7 +648,7 @@ func Test_targetGroupBindingValidator_checkImmutableFields(t *testing.T) {
648
648
},
649
649
},
650
650
},
651
- wantErr : errors .New ("TargetGroupBinding update may not change these fields: spec.targetGroupARN,spec.targetType" ),
651
+ wantErr : errors .New ("TargetGroupBinding update may not change these immutable fields: spec.targetGroupARN,spec.targetType" ),
652
652
},
653
653
{
654
654
name : "both targetGroupARN and targetType are not changed" ,
@@ -686,7 +686,7 @@ func Test_targetGroupBindingValidator_checkImmutableFields(t *testing.T) {
686
686
},
687
687
},
688
688
},
689
- wantErr : errors .New ("TargetGroupBinding update may not change these fields: spec.ipAddressType" ),
689
+ wantErr : errors .New ("TargetGroupBinding update may not change these immutable fields: spec.ipAddressType" ),
690
690
},
691
691
{
692
692
name : "ipAddressType modified, old value nil" ,
@@ -705,7 +705,7 @@ func Test_targetGroupBindingValidator_checkImmutableFields(t *testing.T) {
705
705
},
706
706
},
707
707
},
708
- wantErr : errors .New ("TargetGroupBinding update may not change these fields: spec.ipAddressType" ),
708
+ wantErr : errors .New ("TargetGroupBinding update may not change these immutable fields: spec.ipAddressType" ),
709
709
},
710
710
{
711
711
name : "ipAddressType modified from nil to ipv4" ,
@@ -743,7 +743,7 @@ func Test_targetGroupBindingValidator_checkImmutableFields(t *testing.T) {
743
743
},
744
744
},
745
745
},
746
- wantErr : errors .New ("TargetGroupBinding update may not change these fields: spec.ipAddressType" ),
746
+ wantErr : errors .New ("TargetGroupBinding update may not change these immutable fields: spec.ipAddressType" ),
747
747
},
748
748
{
749
749
name : "ipAddressType modified from nil to ipv6" ,
@@ -762,7 +762,7 @@ func Test_targetGroupBindingValidator_checkImmutableFields(t *testing.T) {
762
762
},
763
763
},
764
764
},
765
- wantErr : errors .New ("TargetGroupBinding update may not change these fields: spec.ipAddressType" ),
765
+ wantErr : errors .New ("TargetGroupBinding update may not change these immutable fields: spec.ipAddressType" ),
766
766
},
767
767
{
768
768
name : "VpcID modified from vpc-0aaaaaaa to vpc-0bbbbbbb" ,
@@ -782,7 +782,7 @@ func Test_targetGroupBindingValidator_checkImmutableFields(t *testing.T) {
782
782
},
783
783
},
784
784
},
785
- wantErr : errors .New ("TargetGroupBinding update may not change these fields: spec.vpcID" ),
785
+ wantErr : errors .New ("TargetGroupBinding update may not change these immutable fields: spec.vpcID" ),
786
786
},
787
787
{
788
788
name : "VpcID modified from vpc-0aaaaaaa to nil" ,
@@ -801,7 +801,7 @@ func Test_targetGroupBindingValidator_checkImmutableFields(t *testing.T) {
801
801
},
802
802
},
803
803
},
804
- wantErr : errors .New ("TargetGroupBinding update may not change these fields: spec.vpcID" ),
804
+ wantErr : errors .New ("TargetGroupBinding update may not change these immutable fields: spec.vpcID" ),
805
805
},
806
806
{
807
807
name : "VpcID modified from nil to vpc-0aaaaaaa" ,
@@ -820,7 +820,7 @@ func Test_targetGroupBindingValidator_checkImmutableFields(t *testing.T) {
820
820
},
821
821
},
822
822
},
823
- wantErr : errors .New ("TargetGroupBinding update may not change these fields: spec.vpcID" ),
823
+ wantErr : errors .New ("TargetGroupBinding update may not change these immutable fields: spec.vpcID" ),
824
824
},
825
825
{
826
826
name : "VpcID modified from nil to cluster vpc-id is allowed" ,
0 commit comments