-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
OSDOCS:11739 add support for cron scaler in CMA #80708
Conversation
f9b266b
to
f150dc4
Compare
@joelsmith PTAL |
Thanks @mburke5678 , looks great! |
f150dc4
to
04148b8
Compare
New changes are detected. LGTM label has been removed. |
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.
Left a few comments but otherwise LGTM!
The custom metrics autoscaler with cron trigger scales pods based only on the specified times and cannot scale pods on a daily, weekly, monthly, or yearly schedule. | ||
==== | ||
|
||
The following example scales the pods associated with this scaled object from `0` to `100` from 6:00 a.m to 6:30 p.m India Standard Time. |
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.
Per IBM word usage (AM and PM), the times should be in caps and without periods:
The following example scales the pods associated with this scaled object from `0` to `100` from 6:00 a.m to 6:30 p.m India Standard Time. | |
The following example scales the pods associated with this scaled object from `0` to `100` from 6:00 AM to 6:30 PM India Standard Time. |
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.
@skopacz1 Thank you! They must have changed this one on me. I have the IBM style guide in book form, which I did consult here. Ooops. The book is 22 years old. I guess I need a new one!
<2> Specifies a cron trigger. | ||
<3> Specifies the timezone for the time frame. This value must be from the link:https://data.iana.org/time-zones/tzdb-2021a/zone1970.tab[IANA Time Zone Database]. | ||
<4> Specifies the start of the time frame. | ||
<5> Specifies the end of the time frame. | ||
<6> Specifies the number of pods to scale to between the start and end of the time frame. Should be the same as `maxReplicaCount`. |
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.
These values all need to be bumped down by 1 since you added a new callout here:
<2> Specifies a cron trigger. | |
<3> Specifies the timezone for the time frame. This value must be from the link:https://data.iana.org/time-zones/tzdb-2021a/zone1970.tab[IANA Time Zone Database]. | |
<4> Specifies the start of the time frame. | |
<5> Specifies the end of the time frame. | |
<6> Specifies the number of pods to scale to between the start and end of the time frame. Should be the same as `maxReplicaCount`. | |
<3> Specifies a cron trigger. | |
<4> Specifies the timezone for the time frame. This value must be from the link:https://data.iana.org/time-zones/tzdb-2021a/zone1970.tab[IANA Time Zone Database]. | |
<5> Specifies the start of the time frame. | |
<6> Specifies the end of the time frame. | |
<7> Specifies the number of pods to scale to between the start and end of the time frame. Should be the same as `maxReplicaCount`. |
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. Too much going on this morning.
<3> Specifies the timezone for the time frame. This value must be from the link:https://data.iana.org/time-zones/tzdb-2021a/zone1970.tab[IANA Time Zone Database]. | ||
<4> Specifies the start of the time frame. | ||
<5> Specifies the end of the time frame. | ||
<6> Specifies the number of pods to scale to between the start and end of the time frame. Should be the same as `maxReplicaCount`. |
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.
Suggestion to make the last sentence complete and resemble the similar statement in the other callout:
<6> Specifies the number of pods to scale to between the start and end of the time frame. Should be the same as `maxReplicaCount`. | |
<6> Specifies the number of pods to scale to between the start and end of the time frame. This value should be the same as `maxReplicaCount`. |
04148b8
to
c8da47a
Compare
/lgtm , thank you ! |
c8da47a
to
21d7464
Compare
@mburke5678: all tests passed! Full PR test history. Your PR dashboard. 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. |
/cherrypick enterprise-4.12 |
/cherrypick enterprise-4.13 |
/cherrypick enterprise-4.14 |
/cherrypick enterprise-4.15 |
/cherrypick enterprise-4.16 |
/cherrypick enterprise-4.17 |
@mburke5678: new pull request created: #80896 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. |
@mburke5678: new pull request created: #80897 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. |
@mburke5678: new pull request created: #80898 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. |
@mburke5678: new pull request created: #80899 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. |
@mburke5678: new pull request created: #80900 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. |
@mburke5678: new pull request created: #80901 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. |
https://issues.redhat.com/browse/OSDOCS-11739
Preview:
Understanding the cron trigger
QE review: