Repository navigation
Update Route.Status.Conditions after Ingress has an IP address. - #425
Conversation
|
/retest |
2 similar comments
|
/retest |
|
/retest |
| ns, routeName, err) | ||
| return | ||
| } | ||
| for _, rc := range route.Status.Conditions { |
There was a problem hiding this comment.
Just a nit, but it might be nice to add this logic into route_types.go. Just like revision_types.go has a method IsReady. I assume there's few other places this gets used, plus makes testing easier.
There was a problem hiding this comment.
That's great. Done.
| return | ||
| } | ||
| if len(ingress.Status.LoadBalancer.Ingress) == 0 { | ||
| // Route isn't ready if no having no load-balancer ingress. |
There was a problem hiding this comment.
Routes isn't ready if there's no load-balancer ingress.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: tcnghia Assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
…knative#425) * Replace space separated tags with comma separated * Generate new productization Dockerfiles * Update tags in the Makefile
Partially Fixes Issue #24
Sometimes Ingress aren't immediately available after creation. This PR adds an event handler for Ingress updates in Route controller so that we update Route.Status.Conditions to READY only after the Ingress is available and having an IP address.