-
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
MachineDeployment should support spec.deletePolicy (like MS) #2585
Comments
It looks like we'll likely need to expose this through the MachineRollingUpdateDeployment type for MachineDeployments |
This seems like it can be made in a future release as a non-breaking change /milestone v0.3.x |
/assign |
@erstaples are you still interested in working on this feature? |
Hi @vincepri , I am indeed. Apologies for my self-assign-and-disappear act :) I can start work on it, at the latest, tomorrow. |
@vincepri OK, having taken a look at it, it looks like its a matter of surfacing DeletePolicy on the MachineRollingUpdateDeployment type, setting a default in PopulateDefaultsMachineDeployment, and making sure to set DeletePolicy on the MachineSet in What might the concerns be wrt backwards compatibility? |
@erstaples If the MachineSet already has a default I don't think we need to set one in MachineDeployment, so it could effectively be empty (nil), maybe? |
@vincepri I have this complete and ready for a PR, aside from one issue. I ran After that,
Am I running the wrong version of a dependency used to generate the files, or...? |
@erstaples sorry for the late reply, those errors usually means that the auto-conversion generation wasn't able to figure out how to convert from the old type to the new one, so it needs manual conversion |
/help |
@vincepri: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed 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. |
/area api |
/kind feature |
/retitle MachineDeployment should support spec.deletePolicy (like MS) |
@vincepri is this still being worked on by someone? If not, can I take this one? |
Sure yeah! |
/assign |
/kind api-change |
What steps did you take and what happened:
deletePolicy
was implemented in #726 by adding a property to themachineSet
to define the deletion policy (random, oldest, newest).How is this intended to be leveraged since most users are only directly creating the
machineDeployment
api objects? I would have expected themachineDeployment
to also expose adeletePolicy
property.Environment:
kubectl version
):/etc/os-release
):/kind bug
The text was updated successfully, but these errors were encountered: