-
Notifications
You must be signed in to change notification settings - Fork 431
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
Omit repetitive events during cluster creation #2652
Omit repetitive events during cluster creation #2652
Conversation
/test pull-cluster-api-provider-azure-test |
Thanks @jayesh-srivastava! I'm all for brevity. How exactly does this show up as repetitive? Do we get multiples of the same event when we provision a cluster, or is this not a useful thing to record in the first place? Edit: never mind, I read #2651. I guess the question is: is it ok to omit this event entirely, instead of trying to log it just once? |
@mboersma It made sense at the moment to remove this entirely but I guess we can have a level 2 logger to have some brevity. What are your thoughts? |
/lgtm I don't think in general it's necessary to note success cases. We should assume things are working and only log exceptional events, IMHO. I searched the codebase for where else we use EventRecorder, and I don't see any other cases where we create an event for "successful reconcile." So I think we can just remove these, as you've done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
/hold @jayesh-srivastava please squash commits and add a release note in the PR description so we can give you credit in the release |
f0614c4
to
8fea0d2
Compare
@CecileRobertMichon Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CecileRobertMichon, mboersma 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 |
/hold cancel |
/cherry-pick release-1.4 |
@jackfrancis: #2652 failed to apply on top of branch "release-1.4":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What type of PR is this?
/kind feature
/kind cleanup
What this PR does / why we need it: This PR removes unnecessary repetitive events during cluster creation.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #2651
Special notes for your reviewer:
TODOs:
Release note: