-
Notifications
You must be signed in to change notification settings - Fork 665
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/status: Update HTTPRoute status to only allow a single Type #3600
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3600 +/- ##
==========================================
- Coverage 76.65% 76.63% -0.03%
==========================================
Files 100 100
Lines 7039 7044 +5
==========================================
+ Hits 5396 5398 +2
- Misses 1527 1530 +3
Partials 116 116
|
integration tests are failing, not sure why, need to dig into that. |
Ok this should all be fixed up. =) |
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.
overall looks good, some small comments
Value: "/", | ||
}, | ||
}}, | ||
ForwardTo: []gatewayapi_v1alpha1.HTTPRouteForwardTo{{ |
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.
In the case that these two rules are in the reverse order, do we expect the condition message to be Service "invalid-two" does not exist, Service "invalid-one" does not exist
Would there be value in ensuring the order of the parts of the message are sorted for comparisons between existing and potentially updated 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.
Yeah I'd expect if you reverse the order the messages would be swapped.
if there was an existing condition with the same Type
and something got added, it should get recreated from scratch so I'd expect the order to be consistent, unless I'm misunderstanding.
Updates the HTTPRoute status processing to only allow a single "Type" to be specified at any given time. If there are duplicate conditions for the same type, then the messages are appended together. Fixes projectcontour#3534 Signed-off-by: Steve Sloka <slokas@vmware.com>
Signed-off-by: Steve Sloka <slokas@vmware.com>
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, nice.
Updates the HTTPRoute status processing to only allow a single "Type" to
be specified at any given time. If there are duplicate conditions for the same
type, then the messages are appended together.
Fixes #3534
Signed-off-by: Steve Sloka slokas@vmware.com