-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🐛 MD controller: use regular random suffix for MachineSets, ensure max length 63 #9298
🐛 MD controller: use regular random suffix for MachineSets, ensure max length 63 #9298
Conversation
/test help |
@chrischdi: The specified target(s) for
The following commands are available to trigger optional jobs:
Use
In response to this:
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. |
/test pull-cluster-api-e2e-full-main |
/test pull-cluster-api-e2e-informing-main |
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.
Awesome - if I'm right the clusterctl upgrade tests should give us a smoke signal that this is working correctly.
/test pull-cluster-api-e2e-full-main
Note: I did also test |
72fbba9
to
af137e2
Compare
/test pull-cluster-api-e2e-full-main |
/test pull-cluster-api-e2e-informing-main |
/assign @sbueringer |
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
LGTM label has been added. Git tree hash: db9df12581c4f636ea082a97aeeea89dfee71f3f
|
Also checked e2e tests: clusterctl upgrade:
Names generated by previous CAPI version are preserved and no rollout is triggered quickstart on current PR:
New name generation works as expected |
Considering that with the previous code we could end up with invalid MachineSet names (i.e. MachineSet creation for MDs with long names simply did not work), I consider this a bug fix so I'm going to backport it. The change is safe to be backported as it only affects new MachineSets and doesn't trigger rollouts on existing MachineSets. |
/lgtm |
/cherry-pick release-1.5 |
@sbueringer: once the present PR merges, I will cherry-pick it on top of release-1.5 in a new PR and assign it to you. In response to this:
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. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sbueringer 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 |
/cherry-pick release-1.4 |
@sbueringer: once the present PR merges, I will cherry-pick it on top of release-1.4 in a new PR and assign it to you. In response to this:
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. |
cc @g-gaston @furkatgofurov7 regarding release notes |
@sbueringer: new pull request created: #9329 In response to this:
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. |
@sbueringer: new pull request created: #9330 In response to this:
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. |
What this PR does / why we need it:
This PR drops the templateHash from the MachineSet Name inside the controller for MachineDeployments (responsible to create MachineSets).
It also adjusts
computeNewMachineSetName(...)
to generate and return the suffix with the length of the const so we always return a string of max length 63.All in all this helps keeping the length of the name of a MachineSet lower or equal to 63, same as we nowadays do for Machines.
Example Created MD, MS and Machine before and afterwards (with maximum name length):
before:
after:
Example Created MD, MS and Machine before and afterwards (with "normal" name length):
before:
after:
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 #8585
/area machinedeployment