-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[WIP] add nerdctl ci minimal support #3408
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: yankay The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
86687ec
to
5e3bffe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking at the existing workflows it seems acceptable to test providers, but unclear whether wrapping CLI tools like nerdctl should be tested.
it's always better to log an issue and discuss the proposal there, before sending the PR.
my vote for this change is +0.
5e3bffe
to
6804987
Compare
run: | | ||
sudo systemctl is-active --quiet docker.service || systemctl stop docker.service | ||
sudo apt-get remove -y docker-ce docker-ce-cli docker-buildx-plugin podman | ||
sudo curl -sSL https://github.com/containerd/nerdctl/releases/download/v${NERDCTL_VERSION}/nerdctl-${NERDCTL_VERSION}-linux-amd64.tar.gz|sudo tar -xvz -C /usr/local/bin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You want to wait for nerdctl v1.7
(ETA: by the end of this week)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @AkihiroSuda
it's waiting for the nerdctl v1.7.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sudo systemctl is-active --quiet docker.service || systemctl stop docker.service | ||
sudo apt-get remove -y docker-ce docker-ce-cli docker-buildx-plugin podman | ||
sudo curl -sSL https://github.com/containerd/nerdctl/releases/download/v${NERDCTL_VERSION}/nerdctl-${NERDCTL_VERSION}-linux-amd64.tar.gz|sudo tar -xvz -C /usr/local/bin | ||
sudo ln -s /usr/local/bin/nerdctl /usr/local/bin/docker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kind
should support a custom Docker path via $DOCKER
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to make kind support the custom binary name in the next .
The kind is hardcoded docker in the provider. for example:
https://github.com/kubernetes-sigs/kind/blob/v0.20.0/pkg/cluster/internal/providers/docker/provision.go#L314
So it use the symbolic link now.
.github/workflows/nerdctl.yaml
Outdated
jobs: | ||
nerdctl: | ||
name: Nerdctl | ||
runs-on: ubuntu-20.04 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not 22.04 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll try to upgrade them at #3409
If it merged, it'll be updated
ipFamily: [ipv4, ipv6] | ||
deployment: [singleNode, multiNode] | ||
exclude: | ||
- ipFamily: ipv6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we support rootless too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @AkihiroSuda
The rootless mode support has been added to the 'work items' at : #2317 (comment)
Could I provide it in another PR, so that this PR will not be too large ?
Thanks @neolit123 for the PR review. :-) I've log the issue at the #2317 (comment) to proposal. Best Regards. |
0e6de8a
to
e0caaad
Compare
Lines 99 to 122 in a9fbf70
kind/pkg/cluster/internal/providers/docker/util.go Lines 26 to 34 in a9fbf70
This check has to be modified, otherwise it choose Podman, not nerdctl |
e0caaad
to
11465e9
Compare
861cf9e
to
29abd18
Compare
Signed-off-by: Kay Yan <kay.yan@daocloud.io>
PR needs rebase. 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/test-infra repository. |
close by #3429 |
Add basic ci to test that kind can create clusters with nerdctl , and using the docker provider.
The issue: #2317 (comment)
The PR is wating: containerd/nerdctl#2600