-
Notifications
You must be signed in to change notification settings - Fork 689
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
internal/dag: set Gateway Listener conditions #4186
Conversation
Using the "hide whitespace" option on the diff will help a lot here. I think there are probably still some additional situations for which we should be setting Listener conditions, but this set covered what seemed like the biggest ones / what we were already checking for in the processor logic. Any additional ones can be tacked on individually now that the scaffolding is there. |
Codecov Report
@@ Coverage Diff @@
## main #4186 +/- ##
==========================================
+ Coverage 76.09% 76.41% +0.32%
==========================================
Files 111 111
Lines 9763 9883 +120
==========================================
+ Hits 7429 7552 +123
+ Misses 2168 2164 -4
- Partials 166 167 +1
|
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!
only addition would be to add a test somewhere to confirm that listener condition messages are appended if there are multiple issues, implementation looks good 👍🏽
Good call, added a simple unit test for that method. |
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, this looks great, thanks @skriss!
Sets various Listener conditions according to the Gateway API v1alpha2 spec. Also sets the Gateway "Ready" condition to false if there are invalid listeners. Closes projectcontour#3529. Closes projectcontour#4180. Updates projectcontour#4124. Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
52d27a3
to
fe1863b
Compare
Sets various Listener conditions according to
the Gateway API v1alpha2 spec. Also sets the
Gateway "Ready" condition to false if there
are invalid listeners.
Closes #3529.
Closes #4180.
Closes #4124.
Signed-off-by: Steve Kriss krisss@vmware.com