@@ -672,13 +672,15 @@ func TestServiceAnnotations(t *testing.T) {
672
672
enableTeamIdClusterPrefix : false ,
673
673
operatorAnnotations : make (map [string ]string ),
674
674
serviceAnnotations : map [string ]string {
675
+ "service.beta.kubernetes.io/aws-load-balancer-nlb-target-type" : "ip" ,
675
676
"service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout" : "1800" ,
676
677
},
677
678
masterServiceAnnotations : map [string ]string {
678
679
"service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout" : "2000" ,
679
680
},
680
681
expect : map [string ]string {
681
682
"external-dns.alpha.kubernetes.io/hostname" : "acid-test.test.db.example.com,test.acid.db.example.com" ,
683
+ "service.beta.kubernetes.io/aws-load-balancer-nlb-target-type" : "ip" ,
682
684
"service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout" : "2000" ,
683
685
},
684
686
},
@@ -825,13 +827,15 @@ func TestServiceAnnotations(t *testing.T) {
825
827
enableTeamIdClusterPrefix : false ,
826
828
operatorAnnotations : make (map [string ]string ),
827
829
serviceAnnotations : map [string ]string {
830
+ "service.beta.kubernetes.io/aws-load-balancer-nlb-target-type" : "ip" ,
828
831
"service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout" : "1800" ,
829
832
},
830
833
replicaServiceAnnotations : map [string ]string {
831
834
"service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout" : "2000" ,
832
835
},
833
836
expect : map [string ]string {
834
837
"external-dns.alpha.kubernetes.io/hostname" : "acid-test-repl.test.db.example.com,test-repl.acid.db.example.com" ,
838
+ "service.beta.kubernetes.io/aws-load-balancer-nlb-target-type" : "ip" ,
835
839
"service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout" : "2000" ,
836
840
},
837
841
},
0 commit comments