@@ -716,7 +716,7 @@ var _ = ginkgo.DescribeTableSubtree("BGP: isolation between advertised networks"
716716 // to targetAddress. If clientNamespace is empty the function assumes clientName is a node that will be used as the
717717 // client.
718718 var checkConnectivity = func (clientName , clientNamespace , targetAddress string ) (string , error ) {
719- curlCmd := []string {"curl" , "-g" , "-q" , "-s" , "--max-time" , "5 " , targetAddress }
719+ curlCmd := []string {"curl" , "-g" , "-q" , "-s" , "--max-time" , "2" , "--insecure " , targetAddress }
720720 var out string
721721 var err error
722722 if clientNamespace != "" {
@@ -846,6 +846,10 @@ var _ = ginkgo.DescribeTableSubtree("BGP: isolation between advertised networks"
846846 }
847847 return podsNetA [0 ].Name , podsNetA [0 ].Namespace , net .JoinHostPort (svcNetDefault .Spec .ClusterIPs [ipFamilyIndex ], "8080" ) + "/clientip" , out , err
848848 }),
849+ ginkgo .Entry ("pod in the UDN should be able to access kapi in default network service" ,
850+ func (ipFamilyIndex int ) (clientName string , clientNamespace string , dst string , expectedOutput string , expectErr bool ) {
851+ return podsNetA [0 ].Name , podsNetA [0 ].Namespace , "https://kubernetes.default/healthz" , "" , false
852+ }),
849853 ginkgo .Entry ("pod in the UDN should not be able to access a service in a different UDN" ,
850854 func (ipFamilyIndex int ) (clientName string , clientNamespace string , dst string , expectedOutput string , expectErr bool ) {
851855 return podsNetA [0 ].Name , podsNetA [0 ].Namespace , net .JoinHostPort (svcNetB .Spec .ClusterIPs [ipFamilyIndex ], "8080" ) + "/clientip" , curlConnectionTimeoutCode , true
0 commit comments