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

Switch controller-manager to logr (3) #5290

Merged
merged 6 commits into from
Jan 20, 2022

Conversation

timebertt
Copy link
Member

How to categorize this PR?

/area logging dev-productivity
/kind enhancement

What this PR does / why we need it:

Continuation of #5268
Migrate more controller-manager controllers:

  • event controller
  • exposureclass controller
  • plant controller
  • managedseedset controller

Also extend the logging guideline with some new learnings (first commit, to make the other commits more understandable).

Which issue(s) this PR fixes:
Part of #4251

Special notes for your reviewer:

/squash

Release note:

NONE

with two cases that were not described yet:
- only logging an object name instead of a full key
- logging in combination with event recorders
@timebertt timebertt requested a review from a team as a code owner January 18, 2022 17:27
@gardener-robot gardener-robot added area/dev-productivity Developer productivity related (how to improve development) area/logging Logging related kind/enhancement Enhancement, improvement, extension merge/squash size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jan 18, 2022
@timebertt
Copy link
Member Author

Thanks, @rfranzke. Nice catches :)
PTAL

Copy link
Member

@rfranzke rfranzke left a comment

Choose a reason for hiding this comment

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

/lgtm

@timuthy timuthy added this to the v1.39 milestone Jan 20, 2022
@rfranzke rfranzke merged commit 90a91ba into gardener:master Jan 20, 2022
@timebertt timebertt deleted the refactor/gcm-logr-3 branch January 20, 2022 09:14
krgostev pushed a commit to krgostev/gardener that referenced this pull request Apr 21, 2022
* Extend logging guideline

with two cases that were not described yet:
- only logging an object name instead of a full key
- logging in combination with event recorders

* Switch event controller to logr

* Switch exposureclass controller to logr

* Switch plant controller to logr

* Switch managedseedset controller to logr

* Address review comments
krgostev pushed a commit to krgostev/gardener that referenced this pull request Jul 5, 2022
* Extend logging guideline

with two cases that were not described yet:
- only logging an object name instead of a full key
- logging in combination with event recorders

* Switch event controller to logr

* Switch exposureclass controller to logr

* Switch plant controller to logr

* Switch managedseedset controller to logr

* Address review comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dev-productivity Developer productivity related (how to improve development) area/logging Logging related kind/enhancement Enhancement, improvement, extension size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants