-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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: add support for patches in v1beta3; deprecate --experimental-patches #103063
kubeadm: add support for patches in v1beta3; deprecate --experimental-patches #103063
Conversation
/kind feature /cc @fabriziopandini |
/hold for review |
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.
Does ExperimentalPatches override Patches here?
https://github.com/kubernetes/kubernetes/pull/103063/files#diff-40e2eaae5e3828005feeb02733c99a5f90e56a43e249388ee94a893c2141cf42R104
I cannot leave a message inline(github 500😓).
no, basically the order of adding flags does not matter in the code. it matters on the command line. |
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 |
The feature of "patches" in kubeadm has been in Alpha for a few releases. It has not received major bug reports from users. Deprecate the --experimental-patches flag and add --patches. Both flags are allowed to be mixed with --config.
Add {Init|Join}Configuration.Patches, which is a structure that contains patch related options. Currently it only has the "Directory" field which is the same option as the existing --experimental-patches flag. The flags --[experimental-]patches value override this value if both a flag and config is passed during "init" or "join".
b84d592
to
70a5246
Compare
According to kubernetes/kubeadm#2046,
|
Indeed, disallowing the mixture is missing. I was debating whether it
should be done or not in 1.22. It is a bit strange if we disallow it right
away. Users might first want to migrate to --patches instead of config. But
maybe they can just migrate to config and disallowing the mixture is fine.
…On Jun 30, 2021 11:41, "Paco Xu" ***@***.***> wrote:
According to kubernetes/kubeadm#2046
<kubernetes/kubeadm#2046>,
- add --patches
- mark --experimental-patches as deprecated
- disallow mixture of --patches and --config
- add Init|JoinConfiguration.patches.directory to v1beta3
disallow mixture of --patches and --config is not implemented in this PR.
However, it can be fixed standalone if needed.
/lgtm
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#103063 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACRATDFJUWNXIMH4CNRB7TTVLKEJANCNFSM47CGSKMQ>
.
|
We may disallow it in 1.23 for compatibility. LGTM then. |
/hold cancel |
/retest |
What this PR does / why we need it:
Which issue(s) this PR fixes:
xref kubernetes/kubeadm#2046
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.: