-
Notifications
You must be signed in to change notification settings - Fork 39.4k
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
kubeadm: remove ClusterConfiguration.DNS.Type from v1beta3 #101547
kubeadm: remove ClusterConfiguration.DNS.Type from v1beta3 #101547
Conversation
/kind deprecation cleanup |
/hold |
/retest |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: neolit123, pacoxu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
As node-local-dns is GAed since 1.18, is there a plan to add node-local-dns to ClusterConfiguration.DNS.Cache=true in kubeadm? |
we had a few discussions about this in the past. as an addon, my main argument against it is that its not something that is exactly required for a cluster to work. we also want to move CoreDNS and similar addons outside of kubeadm to operators or a different form of addon plugins. |
8911d41
to
e513b75
Compare
Kubeadm no longer supports kube-dns and CoreDNS is the only supported DNS server. Remove ClusterConfiguration.DNS.Type from v1beta3 that is used to set the DNS server type.
e513b75
to
0bdfe05
Compare
@fabriziopandini i have updated the PR. looking for LGTM. getting this right is difficult and other fuzzer magic did not help. the scenario around DNS.Type unravels some limitations in the fuzzers + stock API machinery:
i argue that this model is flawed and it forces API maintainers to have their latest public API converters and internal APIs know about outdated fields (see cmd/kubeadm/app/apis/kubeadm/v1beta3/conversion.go). if you are wondering, during fuzzing the Schema converters do execute the defaulting for v1beta2, which means DNS.Type receives |
/lgtm We can eventually iterate on the fuzzer/internal types on separated PRs given that this isn't user facing. |
/hold cancel |
/retest Review the full test history for this PR. Silence the bot with an |
3 similar comments
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
What this PR does / why we need it:
Kubeadm no longer supports kube-dns and CoreDNS is the only
supported DNS server. Remove ClusterConfiguration.DNS.Type
from v1beta3 that is used to set the DNS server type.
Which issue(s) this PR fixes:
Fixes kubernetes/kubeadm#2398
xref kubernetes/kubeadm#1796
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: