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

Rename cri sock #1175

Closed
wants to merge 3 commits into from
Closed

Rename cri sock #1175

wants to merge 3 commits into from

Conversation

mogren
Copy link
Contributor

@mogren mogren commented Aug 26, 2020

Issue #, if available: #783

Description of changes:

  • Rename the mount point of dockershim.sock to cri.sock to make it more obvious where to change when using another container runtime.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mogren mogren requested a review from jayanthvn August 26, 2020 18:23
@mogren
Copy link
Contributor Author

mogren commented Aug 26, 2020

],
},
},
containers: objectValues(self.containers_),
volumes: [
{name: "cni-bin-dir", hostPath: {path: "/opt/cni/bin"}},
{name: "cni-net-dir", hostPath: {path: "/etc/cni/net.d"}},
{name: "dockershim", hostPath: {path: "/var/run/dockershim.sock"}},
{name: "cri-sock", hostPath: {path: "/var/run/dockershim.sock"}},
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we just keep it as dockershim and update the readme with clear comments or have another sample config with cri sock?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The point here is that it's not docker specific, it's "any CRI socket" that we mount inside the pod. That's why we want to rename it.

Copy link

Choose a reason for hiding this comment

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

Considering that Kubernetes is deprecating Docker, should this be merged? Would make make it easier to understand what changes are require for compatibility with containerd or cri-o.

It may be a good idea to also remove mentions to dockerSocketPath at same time:

socketPath := dockerSocketPath
if info, err := os.Stat("/var/run/cri.sock"); err == nil && !info.IsDir() {
socketPath = criSocketPath
}

@mogren mogren force-pushed the rename-cri-sock branch 2 times, most recently from 69dac30 to a7f81a2 Compare August 28, 2020 18:03
@mogren mogren force-pushed the rename-cri-sock branch 4 times, most recently from b003163 to 9883f62 Compare September 10, 2020 05:45
@mogren mogren force-pushed the rename-cri-sock branch 2 times, most recently from 47ba0a8 to d1af209 Compare September 23, 2020 21:54
@jayanthvn jayanthvn assigned M00nF1sh and unassigned fawadkhaliq Aug 6, 2021
@jayanthvn jayanthvn added this to the v1.10 milestone Aug 6, 2021
@jayanthvn jayanthvn modified the milestones: v1.10.0, v1.11.0 Nov 10, 2021
@github-actions
Copy link

This pull request is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days

@github-actions github-actions bot added the stale Issue or PR is stale label Apr 13, 2022
@jayanthvn jayanthvn removed this from the v1.11.0 milestone Apr 18, 2022
@github-actions
Copy link

github-actions bot commented May 3, 2022

Pull request closed due to inactivity.

@github-actions github-actions bot closed this May 3, 2022
@S-Chan
Copy link

S-Chan commented Aug 11, 2022

Hi @jayanthvn, is there any chance of reopening this PR? We're not using dockershim. It would be great to be able to use the published manifests without additional patches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issue or PR is stale tech debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants