// getInternalIP returns node internal IP func getInternalIP(node *v1.Node) (string, error) { … } // getSubnetPrefix returns a network prefix based on one of the workers // InternalIP adding a /16 or /64 mask depending on the IP family of the node. // IMPORTANT: These assumes a flat network assigned to the nodes, that is common // on cloud providers. func getSubnetPrefix(ctx context.Context, c clientset.Interface) (*net.IPNet, error) { … } // getReadySchedulableWorkerNode gets a single worker node which is available for // running pods on. If there are no such available nodes it will return an error. func getReadySchedulableWorkerNode(ctx context.Context, c clientset.Interface) (*v1.Node, error) { … } var _ … var _ … func ipToSourceRange(ip string) string { … } func testRollingUpdateLBConnectivityDisruption(ctx context.Context, f *framework.Framework, externalTrafficPolicy v1.ServiceExternalTrafficPolicyType, minSuccessRate float64) { … }