cluster-api icon indicating copy to clipboard operation
cluster-api copied to clipboard

🌱 Add NamingStrategy to MachineDeployment

Open adilGhaffarDev opened this issue 1 year ago • 4 comments

What this PR does / why we need it:

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 part of #10577

adilGhaffarDev avatar Sep 11 '24 13:09 adilGhaffarDev

Skipping CI for Draft Pull Request. If you want CI signal for your change, please convert it to an actual PR. You can still manually trigger a test run with /test all

k8s-ci-robot avatar Sep 11 '24 13:09 k8s-ci-robot

/hold on https://github.com/kubernetes-sigs/cluster-api/pull/11123 so we make sure feedback there is incorporated here

enxebre avatar Oct 02 '24 11:10 enxebre

/area machineset /area machinedeployment

adilGhaffarDev avatar Oct 23 '24 07:10 adilGhaffarDev

cc @sbueringer @fabriziopandini @chrischdi This one is ready for review, please check.

adilGhaffarDev avatar Oct 29 '24 08:10 adilGhaffarDev

I have verified that it is working as expected with a real end-to-end test. Thanks for working on this @adilGhaffarDev !

lentzi90 avatar Oct 31 '24 13:10 lentzi90

/unhold Unholding because kcp pr is merged.

adilGhaffarDev avatar Oct 31 '24 17:10 adilGhaffarDev

I don't know when I'll get around to it. Not much time but a lot of work left until code freeze / PTO.

In general I'm fine with keeping the flag for another minor release

sbueringer avatar Nov 04 '24 13:11 sbueringer

If the PR is not merged in the meantime, I'll get back to this once I'm back from PTO

sbueringer avatar Nov 20 '24 05:11 sbueringer

@fabriziopandini @chrischdi sorry for the delay, I was on vacation, and I was not able to address all the comments. But now all comments are addressed please take a look.

adilGhaffarDev avatar Dec 17 '24 06:12 adilGhaffarDev

The last findings I could find. As of that lgtm

chrischdi avatar Jan 15 '25 07:01 chrischdi

/lgtm

chrischdi avatar Jan 15 '25 08:01 chrischdi

LGTM label has been added.

Git tree hash: 824b6672a22ae23e06110c8c8b7073e9088175cc

k8s-ci-robot avatar Jan 15 '25 08:01 k8s-ci-robot

The last findings I could find. As of that lgtm

rebased the PR please re lgtm

adilGhaffarDev avatar Jan 21 '25 09:01 adilGhaffarDev

Thank you very much!

/lgtm

/assign @fabriziopandini @chrischdi

sbueringer avatar Jan 22 '25 10:01 sbueringer

LGTM label has been added.

Git tree hash: a647f7a9910c04d2e440946e792c539270e40291

k8s-ci-robot avatar Jan 22 '25 10:01 k8s-ci-robot

Great work! /lgtm

fabriziopandini avatar Jan 22 '25 11:01 fabriziopandini

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chrischdi

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 /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Jan 22 '25 11:01 k8s-ci-robot

Thanks everyone for working on this, really appreciate it. I know it took a while and some patience :) (realistically mostly due to maintainer bandwith limitations)

sbueringer avatar Jan 22 '25 12:01 sbueringer

Could we cherry-pick this into the release-1.9 branch? A user was asking in this thread.

mboersma avatar May 06 '25 15:05 mboersma

@sm4ll-3gg : couldn't you use v1.10 to migrate away from use-deprecated-infra-machine-naming=true?

I think we should not introduce new API fields in a patch version (edit: if possible).

chrischdi avatar May 08 '25 09:05 chrischdi

@sm4ll-3gg : couldn't you use v1.10 to migrate away from use-deprecated-infra-machine-naming=true?

I think we should not introduce new API fields in a patch version.

Unfortunately no, I described the issue in the Slack: https://kubernetes.slack.com/archives/C8TSNPY4T/p1746453230357789

Not sure about introducing new fields in a patch version, but the same feature was added for KCP as part of 1.9.x patch at least (https://github.com/kubernetes-sigs/cluster-api/pull/11123). Just one case I'm aware of)

sm4ll-3gg avatar May 08 '25 10:05 sm4ll-3gg

Some data on what happened:

  • KCP NamingStrategy implementation in #11123
    • Part of v1.9.0
  • MD NamingStrategy implementation (this PR)
    • Part of v1.10.0
  • Removal of the flag in #11679
    • Part of v1.10.0

I discussed it with @sbueringer and its more straight forward to cherry-pick this back to v1.9 then reverting the flag removal for v1.10.

/cherry-pick release-1.9

chrischdi avatar May 09 '25 13:05 chrischdi

Lastly @sm4ll-3gg , thanks for bringing this up!

chrischdi avatar May 09 '25 13:05 chrischdi

@chrischdi: new pull request created: #12181

In response to this:

Some data on what happened:

  • KCP NamingStrategy implementation in #11123
  • Part of v1.9.0
  • MD NamingStrategy implementation (this PR)
  • Part of v1.10.0
  • Removal of the flag in #11679
  • Part of v1.10.0

I discussed it with @sbueringer and its more straight forward to cherry-pick this back to v1.9 then reverting the flag removal for v1.10.

/cherry-pick release-1.9

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.

Thx for looking into this @chrischdi !

sbueringer avatar May 09 '25 13:05 sbueringer

I discussed it with @sbueringer and its more straight forward to cherry-pick this back to v1.9 then reverting the flag removal for v1.10.

@chrischdi thank you for the quick help. JFYI, if i'm not wrong, you don't have to revert flag removal from 1.10. Provided that namingStrategy for MD is released in 1.9.x, users will be able to migrate smoothly from deprecated naming and discard the flag using 1.9, and only after that upgrade to 1.10.

sm4ll-3gg avatar May 12 '25 10:05 sm4ll-3gg

@sm4ll-3gg Yes, that's correct. We were just thinking if we should revert the flag removal or backport. But now that we backported we don't have to revert the flag as you are saying.

sbueringer avatar May 12 '25 12:05 sbueringer