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

Consolidated code for resolving actions and plugins into ActionResolver #4410

Merged

Conversation

dsu-igeek
Copy link
Contributor

Consolidated code for resolving actions and plugins into ActionResolver. Added BackupWithResolvers and
RestoreWithResolvers. Introduces ItemSnapshooterResolver to bring ItemSnapshotter plugins into backup and
restore. ItemSnapshotters are not used yet.

Signed-off-by: Dave Smith-Uchida dsmithuchida@vmware.com

Thank you for contributing to Velero!

Please add a summary of your change

Does your change fix a particular issue?

Fixes #(issue)

Please indicate you've done the following:

@dsu-igeek dsu-igeek force-pushed the dsu-action-resolver-rebase-11-29-2021 branch from 4859ecf to 3c3689a Compare November 30, 2021 00:21
@dsu-igeek dsu-igeek requested review from zubron and reasonerjt and removed request for sseago and ywk253100 November 30, 2021 00:21
@dsu-igeek dsu-igeek force-pushed the dsu-action-resolver-rebase-11-29-2021 branch from 3c3689a to b3d2175 Compare November 30, 2021 02:14
…er. Added BackupWithResolvers and

RestoreWithResolvers.  Introduces ItemSnapshooterResolver to bring ItemSnapshotter plugins into backup and
restore.  ItemSnapshotters are not used yet.

Added action_resolver_test

Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com>
@dsu-igeek dsu-igeek force-pushed the dsu-action-resolver-rebase-11-29-2021 branch from b3d2175 to cb964b7 Compare November 30, 2021 02:34
pkg/plugin/framework/action_resolver.go Show resolved Hide resolved
pkg/plugin/framework/action_resolver.go Outdated Show resolved Hide resolved
pkg/plugin/framework/action_resolver.go Outdated Show resolved Hide resolved
pkg/plugin/framework/action_resolver.go Outdated Show resolved Hide resolved
resolvedAction
}

func (recv DeleteItemResolvedAction) GetApplicable() velero.Applicable {
Copy link
Contributor

Choose a reason for hiding this comment

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

See comments for BackupItemResolveAction

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure

pkg/plugin/framework/action_resolver.go Outdated Show resolved Hide resolved
pkg/restore/restore.go Outdated Show resolved Hide resolved
pkg/restore/restore.go Show resolved Hide resolved
pkg/restore/restore.go Show resolved Hide resolved
pkg/backup/backup.go Outdated Show resolved Hide resolved
Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com>
@dsu-igeek dsu-igeek force-pushed the dsu-action-resolver-rebase-11-29-2021 branch from 999d3be to 3740d53 Compare December 7, 2021 08:01
Copy link
Contributor

@reasonerjt reasonerjt left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@zubron zubron left a comment

Choose a reason for hiding this comment

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

LGTM - thanks!

@zubron zubron merged commit 5677e04 into vmware-tanzu:main Dec 10, 2021
danfengliu pushed a commit to danfengliu/velero that referenced this pull request Jan 25, 2022
…er (vmware-tanzu#4410)

* Consolidated code for resolving actions and plugins into ActionResolver.  Added BackupWithResolvers and
RestoreWithResolvers.  Introduces ItemSnapshooterResolver to bring ItemSnapshotter plugins into backup and
restore.  ItemSnapshotters are not used yet.

Added action_resolver_test

Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com>

* Addressed review comments

Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com>
gyaozhou pushed a commit to gyaozhou/velero-read that referenced this pull request May 14, 2022
…er (vmware-tanzu#4410)

* Consolidated code for resolving actions and plugins into ActionResolver.  Added BackupWithResolvers and
RestoreWithResolvers.  Introduces ItemSnapshooterResolver to bring ItemSnapshotter plugins into backup and
restore.  ItemSnapshotters are not used yet.

Added action_resolver_test

Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com>

* Addressed review comments

Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants