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

🌱 Feature gate for old infra machine naming #10505

Conversation

lentzi90
Copy link
Contributor

What this PR does / why we need it:

There is a breaking change to the way infra machines are named in v1.7.0. This commit adds a feature gate for getting the old behavior back. It defaults to disabled so the new behavior stays. It is also marked as deprecated so it can be removed in a future minor release.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #10463 (not entirely but at least it makes it possible to get the old behavior back for now)

/area control-plane/kubeadm
/area machineset

@k8s-ci-robot k8s-ci-robot added the area/machineset Issues or PRs related to machinesets label Apr 24, 2024
@k8s-ci-robot
Copy link
Contributor

@lentzi90: The label(s) area/control-plane/kubeadm cannot be applied, because the repository doesn't have them.

In response to this:

What this PR does / why we need it:

There is a breaking change to the way infra machines are named in v1.7.0. This commit adds a feature gate for getting the old behavior back. It defaults to disabled so the new behavior stays. It is also marked as deprecated so it can be removed in a future minor release.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #10463 (not entirely but at least it makes it possible to get the old behavior back for now)

/area control-plane/kubeadm
/area machineset

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 the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 24, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign killianmuldoon for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Apr 24, 2024
@lentzi90
Copy link
Contributor Author

/area control-plane-kubeadm

@k8s-ci-robot
Copy link
Contributor

@lentzi90: The label(s) area/control-plane-kubeadm cannot be applied, because the repository doesn't have them.

In response to this:

/area control-plane-kubeadm

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.

@lentzi90
Copy link
Contributor Author

/area provider/control-plane-kubeadm

@k8s-ci-robot k8s-ci-robot added the area/provider/control-plane-kubeadm Issues or PRs related to KCP label Apr 24, 2024
@lentzi90 lentzi90 force-pushed the lentzi90/feature-gate-infra-machine-naming branch 2 times, most recently from 87898c3 to 7f5bfaa Compare April 24, 2024 10:37
// With this feature gate enabled, infra machines will be named based on the infra machine template.
// The new behavior is that they get the same name as the machine.
//
// Deprecated: v1.7.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this makes sense. I wanted to deprecate it right away since the behavior already changed. However, this means the linter complains that we are using it 😓

@lentzi90 lentzi90 force-pushed the lentzi90/feature-gate-infra-machine-naming branch from 7f5bfaa to f9a0519 Compare April 24, 2024 10:49
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 24, 2024
There is a breaking change to the way infra machines are named in
v1.7.0. This commit adds a feature gate for getting the old behavior
back. It defaults to disabled so the new behavior stays. It is also
marked as deprecated so it can be removed in a future minor release.

Signed-off-by: Lennart Jern <lennart.jern@est.tech>
Copy link
Contributor

@guettli guettli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@lentzi90
Copy link
Contributor Author

/cc @fabriziopandini

@sbueringer
Copy link
Member

sbueringer commented Apr 25, 2024

/hold
To reach consensus about the general direction on the issue first

@sbueringer sbueringer closed this Apr 25, 2024
@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 25, 2024
@sbueringer sbueringer reopened this Apr 25, 2024
@sbueringer
Copy link
Member

Sorry, wrong button 😃

@lentzi90
Copy link
Contributor Author

Replaced by #10511 that targets release-1.7. This makes more sense since the idea is that this would be temporary and go away in v1.8

@lentzi90 lentzi90 closed this Apr 25, 2024
@lentzi90
Copy link
Contributor Author

lentzi90 commented May 8, 2024

/reopen
After more discussions, we agreed to still target this at main and backport to v1.7. That way we can have it in v1.8 also before removal in v1.9.
I have also updated it now to use a normal flag instead of a feature flag.

@k8s-ci-robot
Copy link
Contributor

@lentzi90: Failed to re-open PR: state cannot be changed. The lentzi90/feature-gate-infra-machine-naming branch was force-pushed or recreated.

In response to this:

/reopen
After more discussions, we agreed to still target this at main and backport to v1.7. That way we can have it in v1.8 also before removal in v1.9.
I have also updated it now to use a normal flag instead of a feature flag.

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-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/machineset Issues or PRs related to machinesets area/provider/control-plane-kubeadm Issues or PRs related to KCP cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make it possible to change infra machine naming scheme
4 participants