Skip to content

Update Route.Status.Conditions after Ingress has an IP address. - #425

Merged
tcnghia merged 2 commits into
knative:masterfrom
tcnghia:watch-ingress
Mar 22, 2018
Merged

tcnghia merged 2 commits into
knative:masterfrom
tcnghia:watch-ingress

Conversation

@tcnghia

@tcnghia tcnghia commented Mar 20, 2018

Copy link
Copy Markdown
Contributor

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.

@tcnghia
tcnghia requested a review from grantr March 20, 2018 01:00
@google-prow-robot google-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 20, 2018
@tcnghia tcnghia changed the title Update Route.Status.Conditions after Ingress has an IP. Update Route.Status.Conditions after Ingress has an IP address. Mar 20, 2018
@tcnghia

tcnghia commented Mar 20, 2018

Copy link
Copy Markdown
Contributor Author

/retest

2 similar comments
@tcnghia

tcnghia commented Mar 20, 2018

Copy link
Copy Markdown
Contributor Author

/retest

@tcnghia

tcnghia commented Mar 20, 2018

Copy link
Copy Markdown
Contributor Author

/retest

Comment thread pkg/controller/route/controller.go Outdated
ns, routeName, err)
return
}
for _, rc := range route.Status.Conditions {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's great. Done.

Comment thread pkg/controller/route/controller.go Outdated
return
}
if len(ingress.Status.LoadBalancer.Ingress) == 0 {
// Route isn't ready if no having no load-balancer ingress.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Routes isn't ready if there's no load-balancer ingress.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@google-prow-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: tcnghia
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: mattmoor

Assign the PR to them by writing /assign @mattmoor in a comment when ready.

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tcnghia
tcnghia merged commit d4c034a into knative:master Mar 22, 2018
markusthoemmes pushed a commit to markusthoemmes/knative-serving that referenced this pull request Mar 30, 2020
…knative#425)

* Replace space separated tags with comma separated

* Generate new productization Dockerfiles

* Update tags in the Makefile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants