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

Fix controller problematic log output #5570

Merged

Conversation

qiuming-best
Copy link
Contributor

@qiuming-best qiuming-best commented Nov 9, 2022

Signed-off-by: Ming mqiu@vmware.com

Thank you for contributing to Velero!

Please add a summary of your change

Does your change fix a particular issue?

Fixes #(issue)
fix #5571
for problem one
As 1.9.3 we've upgrade sigs.k8s.io/controller-runtime library from v0.10.2 to v0.12.1, the library changed the direct output object to fmt.Sprintf format object way, our PeriodicalEnqueueSource struct need to provide an implementation of String function or there would be messy output about it.
for problem two
we need upgrade sigs.k8s.io/controller-runtime to v0.12.2,Relevant fix in controller runtime: kubernetes-sigs/controller-runtime#1907

Please indicate you've done the following:

  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Created a changelog file or added /kind changelog-not-required as a comment on this pull request.
  • Updated the corresponding documentation in site/content/docs/main.

@qiuming-best qiuming-best added the kind/changelog-not-required PR does not require a user changelog. Often for docs, website, or build changes label Nov 9, 2022
@blackpiglet blackpiglet added kind/changelog-not-required PR does not require a user changelog. Often for docs, website, or build changes and removed kind/changelog-not-required PR does not require a user changelog. Often for docs, website, or build changes labels Nov 9, 2022
@codecov-commenter
Copy link

codecov-commenter commented Nov 9, 2022

Codecov Report

Merging #5570 (d1ead7a) into release-1.9 (0993a44) will decrease coverage by 0.01%.
The diff coverage is 27.38%.

@@               Coverage Diff               @@
##           release-1.9    #5570      +/-   ##
===============================================
- Coverage        41.67%   41.66%   -0.02%     
===============================================
  Files              214      214              
  Lines            18594    18599       +5     
===============================================
  Hits              7749     7749              
- Misses           10262    10267       +5     
  Partials           583      583              
Impacted Files Coverage Δ
pkg/archive/extractor.go 0.00% <0.00%> (ø)
pkg/cmd/cli/backup/describe.go 0.00% <0.00%> (ø)
pkg/cmd/cli/backuplocation/create.go 31.42% <0.00%> (ø)
pkg/cmd/cli/backuplocation/delete.go 0.00% <0.00%> (ø)
pkg/cmd/cli/backuplocation/set.go 0.00% <0.00%> (ø)
pkg/cmd/cli/restic/server.go 12.72% <0.00%> (ø)
pkg/cmd/server/server.go 6.48% <0.00%> (ø)
pkg/cmd/util/output/backup_describer.go 0.00% <0.00%> (ø)
pkg/cmd/util/output/output.go 0.00% <ø> (ø)
pkg/cmd/util/output/restore_describer.go 0.00% <0.00%> (ø)
... and 17 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@@ -14,6 +14,7 @@ https://velero.io/docs/v1.9/
https://velero.io/docs/v1.9/upgrade-to-1.9/

### All changes
* Fix controller problematic log output (#5570, @qiuming-best)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Also upgrade controller runtime to 0.12.2

@Lyndon-Li Lyndon-Li self-requested a review November 9, 2022 06:01
Signed-off-by: Ming <mqiu@vmware.com>
@github-actions github-actions bot added the Dependencies Pull requests that update a dependency file label Nov 9, 2022
@blackpiglet blackpiglet merged commit 48856f2 into vmware-tanzu:release-1.9 Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dependencies Pull requests that update a dependency file has-changelog kind/changelog-not-required PR does not require a user changelog. Often for docs, website, or build changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants