-
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
🐛 MachineSet should allow scale down operations to proceed when templates don't exist #10913
🐛 MachineSet should allow scale down operations to proceed when templates don't exist #10913
Conversation
9859f4b
to
8743dba
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.
One nit
/lgtm /assign @fabriziopandini |
LGTM label has been added. Git tree hash: ba4848aad06fd02e84885eb39ad07e6e54103205
|
/test ? |
@fabriziopandini: The following commands are available to trigger required jobs:
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-sigs/prow repository. |
84c6c57
to
34ee06c
Compare
…ates don't exist Signed-off-by: Vince Prignano <[email protected]>
34ee06c
to
f9c3d8a
Compare
/test pull-cluster-api-e2e-main |
Thx! /lgtm |
LGTM label has been added. Git tree hash: f446ddb2df6d4e960060392a243b15f087bef92d
|
/test pull-cluster-api-e2e-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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini 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 |
/hold I think second time in a row this test case is failing. As far as I know it's not (this) flaky on main |
/test pull-cluster-api-e2e-main |
Also saw it on other PRs I think. Let's check periodics and then merge (just trying to get tests stable so we should be careful to not introduce new flakes) |
Okay clearly a flake that also happens on main since a few days:
(cc @chrischdi, just fyi, let's see who gets around to it first) /hold cancel |
/cherry-pick release-1.7 |
@vincepri: #10913 failed to apply on top of branch "release-1.7":
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-sigs/prow repository. |
We're currently always trying to check that the controller can access and set owner references on MachineSets, even if no operations are ongoing. If a MachineSet is scaling down, we should not block operations if the external reference isn't present anymore (was deleted) and we should let the controller proceed.
In most gitops scenarios, it's preferable that any change being rolled out it's done by setting new template references to new resources. For example, let's say we have a MachineDeployment/MachineSet with a boostrap and infrastructure reference set. To apply a rollout and change to all Machines under management, new templates need to be created, and the references changed to the new templates, which will cause a rollout.
With gitops flows, usually new resources replacing old ones have the side effect that old resources are cleaned up almost immediately; this causes the MachineSet controller to stop scale down (and any rollout) operations due to the references returning a not found error.
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):Related to #6588 (comment)
/area machineset