-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Upgrade go.mod k8s.io/ go.mod to v0.31.3 and use server logger for client-go, controller-runtime #8450
base: main
Are you sure you want to change the base?
Conversation
b0e0b77
to
c230a3c
Compare
c230a3c
to
74ec953
Compare
74ec953
to
2e2cdeb
Compare
fyi I need to fix go sum here before merging :D |
6757e8b
to
cf4add2
Compare
1aeedba
to
ac86ced
Compare
ac86ced
to
b210870
Compare
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.
time="2024-11-25T20:27:46Z" level=fatal msg="controller with name backup already exists. Controller names must be unique to avoid multiple controllers reporting to the same metricunable to create controllercontrollerbackup-operations" logSource="pkg/cmd/server/server.go:661"
f518555
to
17c2721
Compare
@@ -127,7 +128,8 @@ func newdataMoverBackup(logger logrus.FieldLogger, factory client.Factory, confi | |||
return nil, errors.Wrap(err, "error to create client config") | |||
} | |||
|
|||
ctrl.SetLogger(zap.New(zap.UseDevMode(true))) |
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.
FYI zap is being removed in this PR.
It was meant to be removed here https://github.com/vmware-tanzu/velero/pull/2561/files#r432107463 and was kept here #8046 (comment)
This means all logs are going to be affected by the default logger flags, that means if user want all logs in json, they will get all logs in json.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8450 +/- ##
=======================================
Coverage 58.96% 58.96%
=======================================
Files 368 368
Lines 39024 39041 +17
=======================================
+ Hits 23009 23020 +11
- Misses 14552 14559 +7
+ Partials 1463 1462 -1 ☔ View full report in Codecov by Sentry. |
17c2721
to
526b45c
Compare
526b45c
to
c0f448e
Compare
c0f448e
to
6e9e6c1
Compare
… client-go Also bumped to support upgraded k8s.io/ deps. - controller-gen to v0.16.5 - sigs.k8s.io/controller-runtime v0.19.2 Signed-off-by: Tiger Kaovilai <[email protected]>
6e9e6c1
to
ee7ceda
Compare
Signed-off-by: Tiger Kaovilai [email protected]
Thank you for contributing to Velero!
Please add a summary of your change
Upgrade k8s.io/ go.mod to v0.31.3 (minor version used by https://github.com/kubernetes-sigs/controller-tools/blob/v0.16.5/go.mod#L18) and set logger for client-go to use the same logger as the rest of the codebase for consistent logging.
Upgraded controller-gen to version that support the new deps.
Also bumped to support upgraded k8s.io/ deps.
Does your change fix a particular issue?
Fixes #3550 #8442
Please indicate you've done the following:
make new-changelog
) or comment/kind changelog-not-required
on this PR.site/content/docs/main
.