Closed sathieu closed 1 day ago
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.
Hi @sathieu. Thanks for your PR.
I'm waiting for a kubernetes-sigs 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.
/ok-to-test Thanks @sathieu
More information may be added to the PR describtion :-) /approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: sathieu, yankay
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Please edit your PR content.
/hold
I don't understand this PR change; I see that the template doesn't need to add this variable.
This is because when the path is not set, the server
param is not applied.
This is not clearly documented, but I think this comes from here:
https://github.com/containerd/containerd/blob/v1.7.22/remotes/docker/config/hosts.go#L78-L90
The advanced options (use_path, server) are only available when config_path is used.
The server part is in the parseHostConfig
function:
https://github.com/containerd/containerd/blob/v1.7.22/remotes/docker/config/hosts.go#L419
Which is called from parseHostsFile called from loadHostDir.
The legacy part is not setting server :
https://github.com/containerd/containerd/blob/v1.7.22/remotes/docker/config/hosts.go#L92-L269
It should be that containerd_registries_mirrors
has been deprecated in Containerd, and it should be a matter of fixing the configuration file to the format that is currently supported by Containerd (the hosts are all written in /etc/containerd/certs.d).
@tico88612 the new format is already supported (and enabled with containerd_use_config_path: true
). Maybe change the default to containerd_use_config_path: true
? Or remove the option to set it to false...
PR can be closed once https://github.com/kubernetes-sigs/kubespray/pull/11755 is merged.
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: