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

refactor: replace glog in externaldns & certmanager #6586

Merged
merged 2 commits into from
Oct 3, 2024

Conversation

pdabelf5
Copy link
Collaborator

@pdabelf5 pdabelf5 commented Oct 3, 2024

Proposed changes

Replace glog with slog in certmanager & externaldns packages for:

  • certmanager/cm_controller.go
  • certmanager/sync.go
  • externaldns/controller.go
  • externaldns/sync.go

NOTE:

GLog Levels Slog Levels
glog.V(3).Infof() log.Debugf()
glog.V(3).Info() log.Debug()
glog.V(2).Infof() log.Debugf()
glog.V(2).Info() log.Debugf()
glog.Infof() log.Infof()
glog.Info() log.Info()
glog.Warningf() log.Warnf()
glog.Warning() log.Warn()
glog.Errorf() log.Errorf()
glog.Error() log.Error()
glog.Fatalf() log.Fatalf()
glog.Fatal() log.Fatal()

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

@pdabelf5 pdabelf5 requested a review from a team as a code owner October 3, 2024 14:03
@github-actions github-actions bot added the go Pull requests that update Go code label Oct 3, 2024
Copy link

codecov bot commented Oct 3, 2024

Codecov Report

Attention: Patch coverage is 30.88235% with 47 lines in your changes missing coverage. Please review.

Project coverage is 53.15%. Comparing base (89dbaa6) to head (a99302f).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
internal/certmanager/cm_controller.go 0.00% 16 Missing ⚠️
internal/externaldns/controller.go 0.00% 16 Missing ⚠️
internal/externaldns/sync.go 59.09% 9 Missing ⚠️
internal/certmanager/sync.go 66.66% 4 Missing ⚠️
internal/k8s/controller.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6586      +/-   ##
==========================================
+ Coverage   53.07%   53.15%   +0.08%     
==========================================
  Files          87       87              
  Lines       16218    16235      +17     
==========================================
+ Hits         8607     8630      +23     
+ Misses       7203     7191      -12     
- Partials      408      414       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AlexFenlon AlexFenlon changed the title replace glog in externaldns & certmanager rrefactor: replace glog in externaldns & certmanager Oct 3, 2024
@AlexFenlon AlexFenlon changed the title rrefactor: replace glog in externaldns & certmanager refactor: replace glog in externaldns & certmanager Oct 3, 2024
@AlexFenlon AlexFenlon mentioned this pull request Oct 3, 2024
16 tasks
@pdabelf5 pdabelf5 added the skip changelog Pull requests that don't need to be added to the changelog label Oct 3, 2024
@pdabelf5 pdabelf5 merged commit f034346 into main Oct 3, 2024
30 checks passed
@pdabelf5 pdabelf5 deleted the chore/refactor-glog-cm-edns branch October 3, 2024 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Pull requests that update Go code skip changelog Pull requests that don't need to be added to the changelog
Projects
Status: Done 🚀
Development

Successfully merging this pull request may close these issues.

3 participants