fix formatting of deprecation warning in test/e2e/framework.WaitForServiceEndpointsNum

"// Deprecated:" needs to be in it's own paragraph
This commit is contained in:
Benjamin Elder
2025-08-15 11:29:53 -07:00
parent db5dd2fe8f
commit 189d6d726b

View File

@@ -413,6 +413,7 @@ func CheckTestingNSDeletedExcept(ctx context.Context, c clientset.Interface, ski
// WaitForServiceEndpointsNum waits until there are EndpointSlices for serviceName
// containing a total of expectNum endpoints. (If the service is dual-stack, expectNum
// must count the endpoints of both IP families.)
//
// Deprecated: use e2eendpointslice.WaitForEndpointCount or other related functions.
func WaitForServiceEndpointsNum(ctx context.Context, c clientset.Interface, namespace, serviceName string, expectNum int, interval, timeout time.Duration) error {
return wait.PollUntilContextTimeout(ctx, interval, timeout, false, func(ctx context.Context) (bool, error) {