8000 Update helpers with PR feedback · kubernetes-sigs/gateway-api@675a132 · GitHub
[go: up one dir, main page]

Skip to content

Commit 675a132

Browse files
author
Nick Young
committed
Update helpers with PR feedback
Signed-off-by: Nick Young <ynick@vmware.com>
1 parent 9c998f6 commit 675a132

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

conformance/utils/kubernetes/helpers.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ func GWCMustBeAccepted(t *testing.T, c client.Client, gwcName string, seconds in
8181
}
8282

8383
controllerName = string(gwc.Spec.ControllerName)
84-
return findConditionInList(t, gwc.Status.Conditions, "Accepted", "True", "Accepted"), nil
84+
// Passing an empty string as the Reason means that any Reason will do.
85+
return findConditionInList(t, gwc.Status.Conditions, "Accepted", "True", ""), nil
8586
})
8687
require.NoErrorf(t, waitErr, "error waiting for %s GatewayClass to have Accepted condition set to True: %v", gwcName, waitErr)
8788

@@ -106,7 +107,8 @@ func NamespacesMustBeReady(t *testing.T, c client.Client, namespaces []string, s
106107
t.Errorf("Error listing Gateways: %v", err)
107108
}
108109
for _, gw := range gwList.Items {
109-
if !findConditionInList(t, gw.Status.Conditions, "Ready", "True", "Ready") {
110+
// Passing an empty string as the Reason means that any Reason will do.
111+
if !findConditionInList(t, gw.Status.Conditions, "Ready", "True", "") {
110112
t.Logf("%s/%s Gateway not ready yet", ns, gw.Name)
111113
return false, nil
112114
}

0 commit comments

Comments
 (0)
0