-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 KEP for customization with patches #1742
kubeadm: add KEP for customization with patches #1742
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: neolit123 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 |
@kubernetes/sig-cluster-lifecycle-pr-reviews |
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.
@neolit123 I'm wondering if/how we can get feedback from users around this change, because this introduce a discuntinuity hard to manage for users and higher level tools relying on this feature
keps/sig-cluster-lifecycle/kubeadm/1739-customization-with-patches/README.md
Outdated
Show resolved
Hide resolved
keps/sig-cluster-lifecycle/kubeadm/1739-customization-with-patches/README.md
Outdated
Show resolved
Hide resolved
keps/sig-cluster-lifecycle/kubeadm/1739-customization-with-patches/README.md
Show resolved
Hide resolved
keps/sig-cluster-lifecycle/kubeadm/1739-customization-with-patches/README.md
Outdated
Show resolved
Hide resolved
keps/sig-cluster-lifecycle/kubeadm/1739-customization-with-patches/README.md
Show resolved
Hide resolved
for reference, core k8s removes Alpha features without a deprecation period. in kubeadm we are nicer and usually allow users to transition for at least one release (as in this KEP). i disagreed that there will be discontinuity given there will be a replacement, all that users need to do is:
not editing the patch files and leaving i do agree however that there will be discontinuity if we remove something and don't provide an alternative or an easy workaround. |
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 @neolit123 !
I like the idea, but the UX is a bit strange to me in the following aspects:
- It's not a good practice to encode machine readable information in file names. Something better should be employed.
- It's not a good idea to dump a directory full of stuff and expect kubeadm to consume everything inside that meets certain patterns.
I would advise on having an --experimental-patch-strategic
, --experimental-patch-json
, and --experimental-patch-merge
options. Each can take one file and multiple options can be used in the command line. The patches would be applied in the order of appearance.
That said, patches are local node customizations. As such, they are a big candidate for being included in the NodeRegistrationOptions
or as separate kinds in the config. Possibly, coming up with a solution for this should be a requirement to get this feature to beta.
keps/sig-cluster-lifecycle/kubeadm/1739-customization-with-patches/README.md
Outdated
Show resolved
Hide resolved
keps/sig-cluster-lifecycle/kubeadm/1739-customization-with-patches/README.md
Outdated
Show resolved
Hide resolved
keps/sig-cluster-lifecycle/kubeadm/1739-customization-with-patches/README.md
Outdated
Show resolved
Hide resolved
keps/sig-cluster-lifecycle/kubeadm/1739-customization-with-patches/README.md
Outdated
Show resolved
Hide resolved
keps/sig-cluster-lifecycle/kubeadm/1739-customization-with-patches/README.md
Show resolved
Hide resolved
a7e0ace
to
e71b91b
Compare
e71b91b
to
028a1e4
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.
Thanks @neolit123 !
/lgtm
/hold
for @fabriziopandini 's review.
/lgtm |
/lgtm |
I think that we have reached an agreement here. We can always reiterate if needed. /hold cancel |
028a1e4
to
fbb8340
Compare
fbb8340
to
0b4105d
Compare
/lgtm |
this KEP comes with a proposal that replaces the existing Alpha feature for patching using Kustomize.
note that the new KEP template format is used.
xref:
kubernetes/kubeadm#2046
#1739