Skip to content
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

Make KubeadmConfig and the KubeadmConfigTemplate immutable #4910

Open
fabriziopandini opened this issue Jul 9, 2021 · 17 comments
Open

Make KubeadmConfig and the KubeadmConfigTemplate immutable #4910

fabriziopandini opened this issue Jul 9, 2021 · 17 comments
Labels
area/control-plane Issues or PRs related to control-plane lifecycle management help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@fabriziopandini
Copy link
Member

KubeadmConfigTemplate are currently mutable but nor MachinePool nor MachineDeployments trigger rollout in case of changes assuming templates immutable. I suggest we make it immutable like all the other templates

Alsi KubeadmConfig is currently mutable, which does not make much sense given that it will processed only once right at the beginning of the machine lifecycle. Let's make this immutable as well.

Note: this is a breaking change, most probably it should wait for the next API version (unless we consider it a bug). opinions?

/kind api-change

@k8s-ci-robot k8s-ci-robot added the kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API label Jul 9, 2021
@sbueringer
Copy link
Member

sbueringer commented Jul 27, 2021

We had a short discussion about this in Slack: https://kubernetes.slack.com/archives/C8TSNPY4T/p1627022324424100

Based on the discussion I would assume we could go ahead and consider this fixing a UX bug.

/cc @enxebre @CecileRobertMichon @vincepri @fabriziopandini (to be sure)

P.S. We could also mention this in the CAPI meeting tomorrow?

@fabriziopandini
Copy link
Member Author

+1 for me, let put this in agenda for tomorrow

@randomvariable
Copy link
Member

randomvariable commented Jul 28, 2021

Can't remember if it was something the New Relic folk we're doing, though I thought that was mostly KCP no kubeadmconfigtemplates. cc @dthorsen

Not sure how relevant it is for them given they're using EKS and AWSManagedMachinePool now.

@vincepri
Copy link
Member

/milestone Next

@k8s-ci-robot k8s-ci-robot added this to the Next milestone Jul 28, 2021
@sbueringer
Copy link
Member

As discussed in the meeting today, we're considering this a breaking (behavioral) change.

We also identified a gap in the documentation on how to properly "update" KubeadmConfigTemplates (I'll open a PR for it)

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 26, 2021
@fabriziopandini
Copy link
Member Author

/lifecycle frozen

@k8s-ci-robot k8s-ci-robot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Oct 27, 2021
@randomvariable
Copy link
Member

/area control-plane

@sbueringer
Copy link
Member

If we ever want to do this for KubeadmConfigTemplate, we have to make sure it does't break SSA dry-run (just like we did for DockerMachineTemplate)

@chrischdi
Copy link
Member

I think this should be good to implement after #6710 got merged :-)

/assign

@sbueringer
Copy link
Member

Please note:

As discussed in the meeting today, we're considering this a breaking (behavioral) change.

@chrischdi
Copy link
Member

/unassign

Due to:

Note: this is a breaking change, most probably it should wait for the next API version (unless we consider it a bug). opinions?

@fabriziopandini fabriziopandini added the triage/accepted Indicates an issue or PR is ready to be actively worked on. label Jul 29, 2022
@fabriziopandini fabriziopandini removed this from the Next milestone Jul 29, 2022
@fabriziopandini fabriziopandini removed the triage/accepted Indicates an issue or PR is ready to be actively worked on. label Jul 29, 2022
@fabriziopandini
Copy link
Member Author

/triage accepted

@k8s-triage-robot
Copy link

This issue has not been updated in over 1 year, and should be re-triaged.

You can:

  • Confirm that this issue is still relevant with /triage accepted (org members only)
  • Close this issue with /close

For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/

/remove-triage accepted

@k8s-ci-robot k8s-ci-robot added needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. and removed triage/accepted Indicates an issue or PR is ready to be actively worked on. labels Jan 19, 2024
@fabriziopandini
Copy link
Member Author

/priority important-longterm

@k8s-ci-robot k8s-ci-robot added the priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. label Apr 12, 2024
@fabriziopandini fabriziopandini removed the lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. label Apr 16, 2024
@fabriziopandini
Copy link
Member Author

Note.
There are slightly related discussion about how to use KubeadmConfig for MachinePoois, but otherwise still worth to do it as soon as we bump a new API version
/help
/triage accepted

@k8s-ci-robot
Copy link
Contributor

@fabriziopandini:
This request has been marked as needing help from a contributor.

Guidelines

Please ensure that the issue body includes answers to the following questions:

  • Why are we solving this issue?
  • To address this issue, are there any code changes? If there are code changes, what needs to be done in the code and what places can the assignee treat as reference points?
  • Does this issue have zero to low barrier of entry?
  • How can the assignee reach out to you for help?

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

Note.
There are slightly related discussion about how to use KubeadmConfig for MachinePoois, but otherwise still worth to do it as soon as we bump a new API version
/help
/triage accepted

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/control-plane Issues or PRs related to control-plane lifecycle management help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

7 participants