Conversation
8acb2a0 to
87a6cac
Compare
0991d9b to
64bf7c7
Compare
|
E2E tests do not offer any advantage to integration tests in this case as we can fully cover everything in there so I omitted them for now |
weisdd
left a comment
There was a problem hiding this comment.
I've added a couple of minor recommendations (not affecting the functionality itself), the rest is great.
64bf7c7 to
d18bdd0
Compare
Co-Authored-By: Aleksei Sviridkin <f@lex.la> Co-Authored-By: sure <bigfemonkey@gmail.com>
ca68bf3 to
c54f713
Compare
Baarsgaard
left a comment
There was a problem hiding this comment.
Looks good, just a minor oversight here 😄
| } | ||
|
|
||
| func (r *IngressReconciler) deleteHTTPRouteIfNil(ctx context.Context, cr *v1beta1.Grafana, scheme *runtime.Scheme) error { | ||
| if cr.Spec.Ingress != nil { |
There was a problem hiding this comment.
| if cr.Spec.Ingress != nil { | |
| if cr.Spec.HTTPRoute != nil { |
There was a problem hiding this comment.
Huh, weird that the test case didn't catch this but I guess it makes sense based on the ordering of operations (and the fact that we only run the reconciliation once)
There was a problem hiding this comment.
Yeah, I think you're right, it's about ordering: Delete (doesn't exist yet, no error) -> Create -> Get (exists) -> Delete (actual deletion) -> Get (removed). We just don't have a test that would cover both Ingress and HTTPRoute.
weisdd
left a comment
There was a problem hiding this comment.
In addition to Steffen's comment, the log line needs to also be adjusted. The rest LGTM :)
c54f713 to
8cfe0a3
Compare
This PR combines the best parts of #2283 and #2026.
Only adds management of
HTTPRouteresources. Decisions on how to handlePreferIngressare to be made in #2284.