-
Notifications
You must be signed in to change notification settings - Fork 570
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
✨ Spot instances fallback - WaitingTimeout #5062
base: main
Are you sure you want to change the base?
Conversation
WIP:
Spot instances fallback - WaitingTimeout
/label tide/merge-method-squash |
Could somebody help on how to write a unit/e2e testing this & solve the linting error? |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/remove-lifecycle stale |
/retest-required |
Hey @Prucek thanks for the PR. |
Well, it's not done yet, that's why I left the WIP, but I would really welcome a review! Thanks! |
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.
Thanks for this @Prucek 🙇
Just the one comment, around only adding the new field to the latest api version.
@@ -280,6 +282,9 @@ type SpotMarketOptions struct { | |||
// +optional | |||
// +kubebuilder:validation:pattern="^[0-9]+(\.[0-9]+)?$" | |||
MaxPrice *string `json:"maxPrice,omitempty"` | |||
// WaitingTimeout defines the maximum time the user is willing to wait for acquiring a Spot VM instance, after that it will fallback to a regular on-demand instance. | |||
// +optional | |||
WaitingTimeout time.Duration `json:"waitingTimeout,omitempty"` |
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.
The new field only needs to be added to the latest API version, so v1beta2
.
Please can you remove it from here?
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.
There is a "roundtripping" fuzzy test that will complain but you can "store" and "restore" the value.
/test ? |
@richardcase: 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. |
/test pull-cluster-api-provider-aws-e2e |
@Prucek: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
What type of PR is this?
/kind feature
/kind api-change
What this PR does / why we need it:
This feature is adding
WaitingTimeout
forSpotMarketOptions
that is optional. TheWaitingTimeout
serves as a timeout when no Spot instances are available and after this timeout is reached a regular ec2 instance will be acquired instead.Special notes for your reviewer:
Checklist:
Release note: