[release/1.1] Move ContainerFlags to "commands" package#2472
[release/1.1] Move ContainerFlags to "commands" package#2472dmcgowan merged 1 commit intocontainerd:release/1.1from
Conversation
|
For posterity, I thought it might be good to explain what happened here:
There may be other places where this is happening. If we decide to control |
|
Cherry-picking the fix seems reasonable. Will this also pull in anything else we don't currently support? Like To get CI passing we need #2473 |
|
Guess I should have mentioned here, #2473 was merged and this can be rebased. Related to the features, I wasn't suggesting we pull in a feature change I just wasn't sure if this was adding a new flag for a feature which does not exist in 1.1 |
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 <[email protected]> (cherry picked from commit 5dd22a2) Signed-off-by: Stephen Day <[email protected]>
|
@dmcgowan Updated. This won't pull in anything that was already intended to be there. None of this is supported anyways. ;) |
Codecov Report
@@ Coverage Diff @@
## release/1.1 #2472 +/- ##
============================================
Coverage 50.11% 50.11%
============================================
Files 75 75
Lines 7297 7297
============================================
Hits 3657 3657
Misses 2965 2965
Partials 675 675
Continue to review full report at Codecov.
|
|
LGTM |
1 similar comment
|
LGTM |
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 [email protected]
(cherry picked from commit 5dd22a2)
Signed-off-by: Stephen Day [email protected]