-
Notifications
You must be signed in to change notification settings - Fork 579
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
🌱 add Interruptible field to AWSMachine status #2120
🌱 add Interruptible field to AWSMachine status #2120
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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. I understand the commands that are listed here. |
Welcome @akash-gautam! |
Hi @akash-gautam. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
verify CLA again. |
pkg/cloud/scope/machine.go
Outdated
|
||
// SetInterruptible sets the AWSMachine status Interruptible | ||
func (m *MachineScope) SetInterruptible() { | ||
if m.AWSMachine.Spec.SpotMarketOptions != (&infrav1.SpotMarketOptions{}) { |
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 m.AWSMachine.Spec.SpotMarketOptions
is nil then interuptible will still be set which based on the comments in the issue would be wrong.
/ok-to-test |
@akash-gautam - thanks for the PR 👍 As you have made some changes to the CRDs you will need to run |
1b4ef3f
to
8b08a3f
Compare
set Interruptible as true when SpotMarketOptions for AWSMachine is non-nil fixes issue 1899 Signed-off-by: akash-gautam <gautamakash04@gmail.com>
8b08a3f
to
0bd2e39
Compare
@richardcase Thanks a lot for reviewing the PR and providing feedback. I worked on your suggestions but still, two checks are failing for me. |
@akash-gautam - are you on the Kubernetes slack? If you are whats your username? |
The "fuzzy" test are failing on the new field in the status. The fuzzy tests convert v1alpha2<->v1alpha3 and with the new field in the machine status you'll have "restore" the field value when it round trips and converts from v1alpha2->v1alpha3. If you are on the Kubernetes slack we can chat further there as it may be easier. |
7a5028a
to
fc422bb
Compare
conversion tests were failing for AWSMAchine type as the value of Interruptible field in the AWSMachineStatus was not getting restored after running a part of the conversion tests, a function has been added for the same
fc422bb
to
7d66042
Compare
/lgtm |
Thanks @akash-gautam for this change. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: randomvariable 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 |
set Interruptible as true when SpotMarketOptions for AWSMachine is non-nil
fixes issue 1899
Which issue(s) this PR fixes *
Fixes #1899