-
Notifications
You must be signed in to change notification settings - Fork 3.8k
RELEASES.md: describe the deprecated config properties #8241
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
Conversation
|
Skipping CI for Draft Pull Request. |
ff2238c to
2e2c848
Compare
| // Configs are configs for each registry. | ||
| // The key is the domain name or IP of the registry. | ||
| // This option will be fully deprecated for ConfigPath in the future. | ||
| // DEPRECATED: Use ConfigPath instead. |
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.
(This has been already deprecated since v1.5)
containerd/releases/v1.5.0.toml
Line 133 in 1f236dc
| ##### Deprecation of `registry.mirrors` and `registry.configs` in CRI plugin |
| // today, who don't have a cni daemonset in production. NetworkPluginConfTemplate is | ||
| // a temporary backward-compatible solution for them. | ||
| // TODO(random-liu): Deprecate this option when kubenet is deprecated. | ||
| // DEPRECATED: use CNI configs |
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.
Substantially we have been deprecating this for years, but looks like we have forgotten to formally deprecate it
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.
Commented on #8596. It's unfortunate this was ostensibly deprecated for so long without any notice, I don't think a reasonable replacement is readily available yet. This allowed for very simple generic networking using the Kubernetes built in node pod CIDR IPAM, avoiding the need to fetch the node object through some external process (which has scalability, auth, complexity issues).
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.
This TODO is from a time where this field was going to be deprecated and made sense at that point in time kubernetes/kubernetes#57130
However, the time evolved and showed to be useful and there are several projects dependent on it , as a proof you can see that the kubernetes field got added new features instead of being deprecated as you can see in this KEP https://github.com/kubernetes/enhancements/tree/master/keps/sig-network/2593-multiple-cluster-cidrs
So, it seems that happened here is that we forget to tell containerd how useful is this field and this TODO should have been removed
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.
Sure, let's de-deprecate this
17f1685 to
de3f80b
Compare
RELEASES.md
Outdated
| |`[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.*]` | `runtime_engine` | containerd v1.3 | containerd v2.0 | Use runtime v2 | | ||
| |`[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.*]` | `runtime_root` | containerd v1.3 | containerd v2.0 | Use `options.Root` | | ||
| |`[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.*.options]` | `CriuPath` | containerd v1.7 | containerd v2.0 | Set `$PATH` to the `criu` binary | | ||
| |`[plugins."io.containerd.grpc.v1.cri".registry]` | `auths` | containerd v1.3 | containerd v2.0 | Use [`config_path`](./docs/hosts.md) | |
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.
config_path does not have support for authentication and there is no plan to have it supported in this way. Recommendation would be use pull secrets or could link to an in progress issue for 2.0.
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.
Could link to this issue #8228 for now
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.
done
de3f80b to
3d48d9e
Compare
These deprecations were mentioned in `pkg/cri/config/config.go` but not mentioned in `RELEASES.md`. Signed-off-by: Akihiro Suda <[email protected]>
3d48d9e to
625217d
Compare
These deprecations were mentioned in
pkg/cri/config/config.gobut not mentioned inRELEASES.md.