Skip to content
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

Surface events for all reconciliation failures. #3462

Merged
merged 2 commits into from
Mar 21, 2019

Conversation

mattmoor
Copy link
Member

Today errors during reconciliation are generally just logged which isn't particularly friendly for users who might not want to dig through our controller logs.

This changes our boilerplate to surface any errors we encounter during a call to Reconcile().

Fixes: #2941

@knative-prow-robot knative-prow-robot added area/API API objects and controllers size/L Denotes a PR that changes 100-499 lines, ignoring generated files. area/autoscale area/networking labels Mar 20, 2019
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mattmoor

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

The pull request process is described here

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

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 20, 2019
@mattmoor mattmoor added this to the Serving 0.5 milestone Mar 20, 2019
@mattmoor
Copy link
Member Author

/retest

Copy link
Contributor

@vagababov vagababov left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 20, 2019
Today errors during reconciliation are generally just logged which isn't particularly friendly for users who might not want to dig through our controller logs.

This changes our boilerplate to surface any errors we encounter during a call to `Reconcile()`.

Fixes: knative#2941
All of the other reconcilers do this today.
@knative-prow-robot knative-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label Mar 21, 2019
@mattmoor
Copy link
Member Author

rebased

@knative-metrics-robot
Copy link

The following is the coverage report on pkg/.
Say /test pull-knative-serving-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/reconciler/v1alpha1/autoscaling/hpa/hpa.go 84.4% 83.8% -0.7
pkg/reconciler/v1alpha1/autoscaling/kpa/kpa.go 86.8% 87.1% 0.3
pkg/reconciler/v1alpha1/clusteringress/clusteringress.go 78.6% 80.6% 2.0
pkg/reconciler/v1alpha1/configuration/configuration.go 91.5% 91.6% 0.1
pkg/reconciler/v1alpha1/revision/revision.go 90.4% 90.5% 0.1
pkg/reconciler/v1alpha1/route/route.go 92.5% 92.5% -0.0
pkg/reconciler/v1alpha1/service/service.go 92.3% 92.4% 0.1

@mattmoor
Copy link
Member Author

/retest

1 similar comment
@mattmoor
Copy link
Member Author

/retest

Copy link
Contributor

@vagababov vagababov left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 21, 2019
@mattmoor
Copy link
Member Author

/retest

@knative-prow-robot knative-prow-robot merged commit 718352e into knative:master Mar 21, 2019
@mattmoor mattmoor deleted the events-on-errors branch March 21, 2019 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/API API objects and controllers area/autoscale area/networking lgtm Indicates that a PR is ready to be merged. 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.

5 participants