Skip to content

Move ContainerFlags to "commands" package#2411

Merged
stevvooe merged 1 commit intocontainerd:masterfrom
flx42:move-containerflags
Jun 25, 2018
Merged

Move ContainerFlags to "commands" package#2411
stevvooe merged 1 commit intocontainerd:masterfrom
flx42:move-containerflags

Conversation

@flx42
Copy link
Contributor

@flx42 flx42 commented Jun 21, 2018

Commit 0551328 exposed the "rootfs"
and "no-pivot" flags for the "containers" command, but it accidentally
removed them for "run" since package-level variables are initialized
before package-level init functions in golang. Hoisting these flags to
a package imported by both commands solves the problem.

Signed-off-by: Felix Abecassis fabecassis@nvidia.com

Commit 0551328 exposed the "rootfs"
and "no-pivot" flags for the "containers" command, but it accidentally
removed them for "run" since package-level variables are initialized
before package-level init functions in golang. Hoisting these flags to
a package imported by both commands solves the problem.

Signed-off-by: Felix Abecassis <fabecassis@nvidia.com>
@codecov-io
Copy link

codecov-io commented Jun 21, 2018

Codecov Report

Merging #2411 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2411   +/-   ##
=======================================
  Coverage   44.99%   44.99%           
=======================================
  Files          92       92           
  Lines        9398     9398           
=======================================
  Hits         4229     4229           
  Misses       4486     4486           
  Partials      683      683
Flag Coverage Δ
#linux 49.23% <ø> (ø) ⬆️
#windows 41.26% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c1e1f3d...5dd22a2. Read the comment docs.

@crosbymichael
Copy link
Member

LGTM

1 similar comment
@stevvooe
Copy link
Member

LGTM

@stevvooe stevvooe merged commit 1ac546b into containerd:master Jun 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants