-
Notifications
You must be signed in to change notification settings - Fork 1
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 atlasScheduledAutoscaling (SRE-720) #18
base: develop
Are you sure you want to change the base?
Conversation
LowTier string `json:"lowTier,omitempty"` | ||
|
||
// The maximum tier the cluster can scale up to. | ||
// +kubebuilder:validation:Enum=M0;M2;M5;M10;M20;M30;M40;M50;M60;M80;M140;M200;M300;M400;M500;M700;M900;M1000 |
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.
should shared tiers be listed as valid scale downs or scale ups? likely we don't want to scale down so much or up, we could avoid mistakes like typos by not having them in validation.
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.
Yeah, doesn't make sense to have anything below M10 there, and I'll cap it at M200. That way we don't acidentally typo in an M400 and go bankrupt in a month.
|
||
// Cron expression for the time the cluster should be scaled down. | ||
// +kubebuilder:default="0 20 * * 1-5" | ||
ScaleDownExpression string `json:"scaleDownExpression,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.
ScaleDownExpression string `json:"scaleDownExpression,omitempty"` | |
ScaleDownCronExpression string `json:"scaleDownCronExpression,omitempty"` |
|
||
// Cron expression for the time the cluster should be scaled up. | ||
// +kubebuilder:default="0 6 * * 1-5" | ||
ScaleUpExpression string `json:"scaleUpExpression,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.
ScaleUpExpression string `json:"scaleUpExpression,omitempty"` | |
ScaleUpCronExpression string `json:"scaleUpCronExpression,omitempty"` |
being more verbose as expression can mean plain texts too.
No description provided.