Skip to content

[release/1.6] Ensure /run/containerd gets created with correct perms#10535

Merged
samuelkarp merged 1 commit intocontainerd:release/1.6from
k8s-infra-cherrypick-robot:cherry-pick-10516-to-release/1.6
Jul 31, 2024
Merged

[release/1.6] Ensure /run/containerd gets created with correct perms#10535
samuelkarp merged 1 commit intocontainerd:release/1.6from
k8s-infra-cherrypick-robot:cherry-pick-10516-to-release/1.6

Conversation

@k8s-infra-cherrypick-robot

This is an automated cherry-pick of #10516

/assign samuelkarp

There are a couple directories that get created under the default
state directory ("/run/containerd") even when containerd is configured
to use a different location for its state directory. Create the default
state directory even if containerd is configured to use a different
state directory location. This ensure pkg/shim and pkg/fifo won't create
the default state directory with incorrect permissions when calling
os.MkdirAll for their respective subdirectories.

Signed-off-by: Erikson Tung <[email protected]>
@k8s-ci-robot
Copy link

Hi @k8s-infra-cherrypick-robot. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@samuelkarp
Copy link
Member

/ok-to-test

@samuelkarp samuelkarp merged commit 5348b9c into containerd:release/1.6 Jul 31, 2024
@dmcgowan dmcgowan changed the title [release/1.6] Ensure /run/containerd gets created with correct perms [release/1.6] Ensure /run/containerd gets created with correct perms Aug 9, 2024
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.

6 participants