-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
conformance: fetch Gateway in GatewayMustHaveLatestConditions loop #2203
conformance: fetch Gateway in GatewayMustHaveLatestConditions loop #2203
Conversation
Fetches the Gateway from the client each time through the polling loop in GatewayMustHaveLatestConditions, so updates to the conditions can be observed. Signed-off-by: Steve Kriss <krisss@vmware.com>
@@ -55,7 +55,7 @@ var GatewayModifyListeners = suite.ConformanceTest{ | |||
require.NoErrorf(t, err, "error getting Gateway: %v", err) | |||
|
|||
// verify that the implementation is tracking the most recent resource changes | |||
kubernetes.GatewayMustHaveLatestConditions(t, s.TimeoutConfig, original) | |||
kubernetes.GatewayMustHaveLatestConditions(t, s.Client, s.TimeoutConfig, gwNN) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we move this after the namespace ready check but before fetching the "original" gateway? (similar for the other tests that have similar logic)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like original
is only being used for spec fields, so shouldn't matter too much one way or another, but I'm fine changing the order for readability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah good point, the original Generation field shouldnt change since the resource shouldnt be updated from when we create it, so I'll defer to you if you think it makes the code more readable to fetch the Gateway after checking the status
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM passing with Contour, but since Steve and I both are testing against the same implementation, should get a review from someone else as well
Signed-off-by: Steve Kriss <krisss@vmware.com>
Thanks @skriss! /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: robscott, skriss, sunjayBhatia The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind flake
/area conformance
What this PR does / why we need it:
Fetches the Gateway from the client each time through
the polling loop in GatewayMustHaveLatestConditions,
so updates to the conditions can be observed.
The current code is checking the same object over and
over again.
Which issue(s) this PR fixes:
Updates #1883
Does this PR introduce a user-facing change?: