Skip to content

Updates Route when Configuration.Status.LatestReadyRevisionName change - #301

Merged
yanweiguo merged 6 commits into
knative:masterfrom
yanweiguo:add_monitor_for_config
Mar 8, 2018
Merged

yanweiguo merged 6 commits into
knative:masterfrom
yanweiguo:add_monitor_for_config

Conversation

@yanweiguo

Copy link
Copy Markdown
Contributor

Closes #2

@yanweiguo
yanweiguo requested review from mattmoor and vaikas March 7, 2018 00:02
Comment thread pkg/controller/route/controller.go Outdated

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.

Log any errors?

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.

I wonder if there is a quicker check we can perform when no work is needed? I suppose we can optimize later, but this just feels like a hammer.

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.

Added logging error if there is any.

Agreed doing some quicker check for no work. How about adding a ConfigurationConditionType indicating LatestReadyRevisionName has already been reflected in route?

Comment thread pkg/controller/route/controller.go Outdated

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.

should this return?

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.

Good catch!

Comment thread pkg/controller/route/controller_test.go Outdated

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.

Could we include testing for error paths and those where nothing should be changing?

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.

I added a TODO. I need to learn how the controller test works.

@google-prow-robot google-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 8, 2018
@yanweiguo
yanweiguo merged commit 545e1e7 into knative:master Mar 8, 2018
@yanweiguo
yanweiguo deleted the add_monitor_for_config branch March 8, 2018 01:08
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