-
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
Fix restore namespace remapping bug #179
Conversation
c6714aa
to
ce61ce0
Compare
Signed-off-by: Steve Kriss <[email protected]>
ce61ce0
to
55c038a
Compare
gv := schema.GroupVersion{Group: "", Version: "v1"} | ||
dynamicFactory.On("ClientForGroupVersionResource", gv, resource, expectedNS).Return(resourceClient, nil) | ||
|
||
log, _ := testlogger.NewNullLogger() |
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.
arktest.NewLogger()
, move it down to line 326 directly
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.
context.logger is a *logrus.Logger, not a *logrus.LogEntry -- you want me to change it to a FieldLogger as part of this PR?
Oh, never mind for now.
…On Thu, Nov 2, 2017 at 1:52 PM Steve Kriss ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In pkg/restore/restore_test.go
<#179 (comment)>:
> + fileSystem = newFakeFileSystem().WithFile("bak/resources/configmaps/namespaces/ns-1/cm-1.json", newTestConfigMap().WithNamespace("ns-1").ToJSON())
+ expectedNS = "ns-2"
+ expectedObjs = toUnstructured(newTestConfigMap().WithNamespace("ns-2").WithArkLabel("").ConfigMap)
+ )
+
+ resourceClient := &FakeDynamicClient{}
+ for i := range expectedObjs {
+ resourceClient.On("Create", &expectedObjs[i]).Return(&expectedObjs[i], nil)
+ }
+
+ dynamicFactory := &FakeDynamicFactory{}
+ resource := metav1.APIResource{Name: "configmaps", Namespaced: true}
+ gv := schema.GroupVersion{Group: "", Version: "v1"}
+ dynamicFactory.On("ClientForGroupVersionResource", gv, resource, expectedNS).Return(resourceClient, nil)
+
+ log, _ := testlogger.NewNullLogger()
context.logger is a *logrus.Logger, not a *logrus.LogEntry -- you want me
to change it to a FieldLogger as part of this PR?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#179 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAABYuXo6GrntmzgqoPik714a6UzBiA6ks5sygFjgaJpZM4QQCev>
.
|
OK - good change to make in general, that interface covers both the Logger and the LogEntry, but we can circle back. |
…-tanzu#179) * improve datamover backup performance * remove minor logs * remove unrelated changes * add vol-snap-mover deps * fix logrusr dep issue * fix via go mod tidy Co-authored-by: Shubham Pampattiwar <[email protected]>
…-tanzu#179) * improve datamover backup performance * remove minor logs * remove unrelated changes * add vol-snap-mover deps * fix logrusr dep issue * fix via go mod tidy Co-authored-by: Shubham Pampattiwar <[email protected]>
…-tanzu#179) * improve datamover backup performance * remove minor logs * remove unrelated changes * add vol-snap-mover deps * fix logrusr dep issue * fix via go mod tidy Co-authored-by: Shubham Pampattiwar <[email protected]>
…-tanzu#179) * improve datamover backup performance * remove minor logs * remove unrelated changes * add vol-snap-mover deps * fix logrusr dep issue * fix via go mod tidy Co-authored-by: Shubham Pampattiwar <[email protected]>
…zu#179) Bumps [github.com/vmware-tanzu/velero](https://github.com/vmware-tanzu/velero) from 1.10.0 to 1.11.1. - [Release notes](https://github.com/vmware-tanzu/velero/releases) - [Changelog](https://github.com/vmware-tanzu/velero/blob/main/CHANGELOG.md) - [Commits](vmware-tanzu/velero@v1.10.0...v1.11.1) --- updated-dependencies: - dependency-name: github.com/vmware-tanzu/velero dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Steve Kriss [email protected]
Fixes: #176