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 the volume flagging process #1795

Merged
merged 1 commit into from
Jan 9, 2023

Conversation

miles170
Copy link
Contributor

@miles170 miles170 commented Jan 3, 2023

See #1680

  • Create a file in pkg/api/types/${cmd}.go, and define the CommandOption for this command
  • Create some file in pkg/cmd/${cmd}, and move the command entry point in real into this package

@miles170 miles170 force-pushed the issue-1680-refactor-volume branch 2 times, most recently from 71df3b2 to dccaec2 Compare January 3, 2023 03:30
@AkihiroSuda
Copy link
Member

I think we can retain getVolumes() to avoid code clone

@miles170
Copy link
Contributor Author

miles170 commented Jan 3, 2023

I think we can retain getVolumes() to avoid code clone

Keep also getVolumeStore()?

@miles170 miles170 force-pushed the issue-1680-refactor-volume branch 2 times, most recently from 25d403b to 17f82d5 Compare January 4, 2023 06:02
@miles170
Copy link
Contributor Author

miles170 commented Jan 8, 2023

Force-pushed to resolve code conflicts.

Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Thanks

cmd/nerdctl/volume_create.go Outdated Show resolved Hide resolved
cmd/nerdctl/volume_inspect.go Outdated Show resolved Hide resolved
cmd/nerdctl/volume_ls.go Outdated Show resolved Hide resolved
cmd/nerdctl/volume_prune.go Outdated Show resolved Hide resolved
cmd/nerdctl/volume_rm.go Outdated Show resolved Hide resolved
pkg/api/types/volume_types.go Outdated Show resolved Hide resolved
pkg/api/types/volume_types.go Outdated Show resolved Hide resolved
pkg/api/types/volume_types.go Outdated Show resolved Hide resolved
Signed-off-by: Miles Liu <miles@bung.cc>
Copy link
Member

@Zheaoli Zheaoli left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM on CI green!

Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Thanks

@AkihiroSuda AkihiroSuda merged commit 8c1a6ab into containerd:main Jan 9, 2023
@AkihiroSuda AkihiroSuda added this to the v1.2.0 milestone Jan 9, 2023
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

4 participants