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

Skip unmounting layers for sandbox container. #932

Merged
merged 1 commit into from
Jan 28, 2021

Conversation

dcantah
Copy link
Contributor

@dcantah dcantah commented Jan 26, 2021

  • Skip unmounting the layers for the sandbox container as we know the UVM gets torn down shortly afterwards.

Signed-off-by: Daniel Canter dcanter@microsoft.com

@dcantah dcantah requested a review from a team as a code owner January 26, 2021 03:55
Copy link
Contributor

@anmaxvl anmaxvl left a comment

Choose a reason for hiding this comment

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

LGTM

@dcantah dcantah force-pushed the special-case-scratch branch 2 times, most recently from d36e24c to b8e5f80 Compare January 27, 2021 22:47
@@ -145,6 +146,7 @@ func CreateContainer(ctx context.Context, createOptions *CreateOptions) (_ cow.C
if err != nil {
return nil, r, err
}
isSandbox = ct == oci.KubernetesContainerTypeSandbox
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be moved out of the networking setup code path?

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, now that it's used for more than just network setup

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Donezo

@dcantah dcantah force-pushed the special-case-scratch branch from b8e5f80 to d221e81 Compare January 27, 2021 23:51
@@ -285,13 +281,17 @@ func CreateContainer(ctx context.Context, createOptions *CreateOptions) (_ cow.C
}

// Create a network namespace if necessary.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: this should go under the code for getting the container type........

* Skip unmounting the layers for the sandbox container as we know the UVM
gets torn down shortly afterwards.

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
@dcantah dcantah force-pushed the special-case-scratch branch from d221e81 to 61e1b43 Compare January 28, 2021 01:36
Copy link
Contributor

@katiewasnothere katiewasnothere left a comment

Choose a reason for hiding this comment

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

lgtm

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.

3 participants