-
Notifications
You must be signed in to change notification settings - Fork 35
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
CNV-49299: use runStrategy on cloning #2217
CNV-49299: use runStrategy on cloning #2217
Conversation
@upalatucci: This pull request references CNV-49299 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.18.0" version, but no target version was set. 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 openshift-eng/jira-lifecycle-plugin repository. |
@upalatucci, why not just change the example yaml? Its ours isn't it? or you are thinking about a case of user yaml with runstrategy ? |
|
const vmUseRunning = useMemo( | ||
() => | ||
(source as V1VirtualMachine)?.spec?.running !== undefined && | ||
(source as V1VirtualMachine)?.spec?.running !== null, |
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.
What about when running can be false
? there are also cases where someone would like to pass a different runStrategy the Always
?
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.
If rspec.running
is false, it means that the user used this attribute to run/stop the VM so we'll use the same s[attribute changing the spec.running
. If it's not in the vm spec it means that we'll use runStrategy
I can at this point call the vm API action to run the vm, so the backend will choose what strategy use.
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.
runStrategies that start vms are Always
and RerunOnFailure
d4f4c9f
to
77b3d39
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: metalice, upalatucci 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 |
📝 Description
spec.running
andspec.runStrategy
are mutual exclusive. YAML example now usespec.runStrategy
so patching the VM withspec.running: true
does not work. So if the VM usespec.running
patch that spec attribute otherwise usespec.runStrategy