@@ -68,7 +68,7 @@ func TestIngressPGReconciler(t *testing.T) {
6868 populateTLSSecret (context .Background (), fc , "test-pg" , "my-svc.ts.net" )
6969 expectReconciled (t , ingPGR , "default" , "test-ingress" )
7070 verifyServeConfig (t , fc , "svc:my-svc" , false )
71- verifyTailscaleService (t , ft , "svc:my-svc" , []string {"443" })
71+ verifyTailscaleService (t , ft , "svc:my-svc" , []string {"tcp: 443" })
7272 verifyTailscaledConfig (t , fc , []string {"svc:my-svc" })
7373
7474 // Verify that Role and RoleBinding have been created for the first Ingress.
@@ -130,7 +130,7 @@ func TestIngressPGReconciler(t *testing.T) {
130130 populateTLSSecret (context .Background (), fc , "test-pg" , "my-other-svc.ts.net" )
131131 expectReconciled (t , ingPGR , "default" , "my-other-ingress" )
132132 verifyServeConfig (t , fc , "svc:my-other-svc" , false )
133- verifyTailscaleService (t , ft , "svc:my-other-svc" , []string {"443" })
133+ verifyTailscaleService (t , ft , "svc:my-other-svc" , []string {"tcp: 443" })
134134
135135 // Verify that Role and RoleBinding have been created for the first Ingress.
136136 // Do not verify the cert Secret as that was already verified implicitly above.
@@ -139,7 +139,7 @@ func TestIngressPGReconciler(t *testing.T) {
139139
140140 // Verify first Ingress is still working
141141 verifyServeConfig (t , fc , "svc:my-svc" , false )
142- verifyTailscaleService (t , ft , "svc:my-svc" , []string {"443" })
142+ verifyTailscaleService (t , ft , "svc:my-svc" , []string {"tcp: 443" })
143143
144144 verifyTailscaledConfig (t , fc , []string {"svc:my-svc" , "svc:my-other-svc" })
145145
@@ -244,7 +244,7 @@ func TestIngressPGReconciler_UpdateIngressHostname(t *testing.T) {
244244 populateTLSSecret (context .Background (), fc , "test-pg" , "my-svc.ts.net" )
245245 expectReconciled (t , ingPGR , "default" , "test-ingress" )
246246 verifyServeConfig (t , fc , "svc:my-svc" , false )
247- verifyTailscaleService (t , ft , "svc:my-svc" , []string {"443" })
247+ verifyTailscaleService (t , ft , "svc:my-svc" , []string {"tcp: 443" })
248248 verifyTailscaledConfig (t , fc , []string {"svc:my-svc" })
249249
250250 // Update the Ingress hostname and make sure the original Tailscale Service is deleted.
@@ -255,7 +255,7 @@ func TestIngressPGReconciler_UpdateIngressHostname(t *testing.T) {
255255 populateTLSSecret (context .Background (), fc , "test-pg" , "updated-svc.ts.net" )
256256 expectReconciled (t , ingPGR , "default" , "test-ingress" )
257257 verifyServeConfig (t , fc , "svc:updated-svc" , false )
258- verifyTailscaleService (t , ft , "svc:updated-svc" , []string {"443" })
258+ verifyTailscaleService (t , ft , "svc:updated-svc" , []string {"tcp: 443" })
259259 verifyTailscaledConfig (t , fc , []string {"svc:updated-svc" })
260260
261261 _ , err := ft .GetVIPService (context .Background (), tailcfg .ServiceName ("svc:my-svc" ))
@@ -475,7 +475,7 @@ func TestIngressPGReconciler_HTTPEndpoint(t *testing.T) {
475475 expectReconciled (t , ingPGR , "default" , "test-ingress" )
476476 populateTLSSecret (context .Background (), fc , "test-pg" , "my-svc.ts.net" )
477477 expectReconciled (t , ingPGR , "default" , "test-ingress" )
478- verifyTailscaleService (t , ft , "svc:my-svc" , []string {"80" , "443" })
478+ verifyTailscaleService (t , ft , "svc:my-svc" , []string {"tcp: 80" , "tcp: 443" })
479479 verifyServeConfig (t , fc , "svc:my-svc" , true )
480480
481481 // Verify Ingress status
@@ -528,7 +528,7 @@ func TestIngressPGReconciler_HTTPEndpoint(t *testing.T) {
528528
529529 // Verify reconciliation after removing HTTP
530530 expectReconciled (t , ingPGR , "default" , "test-ingress" )
531- verifyTailscaleService (t , ft , "svc:my-svc" , []string {"443" })
531+ verifyTailscaleService (t , ft , "svc:my-svc" , []string {"tcp: 443" })
532532 verifyServeConfig (t , fc , "svc:my-svc" , false )
533533
534534 // Verify Ingress status
0 commit comments