[Federation] Make the hpa scale time window configurable#49583
[Federation] Make the hpa scale time window configurable#49583k8s-github-robot merged 2 commits intokubernetes:masterfrom
Conversation
0e48108 to
7a3e8af
Compare
|
If an argument is going to be added to the |
I do not clearly understand the need of doing so. |
|
My suggestion is to avoid having to special-case instantiation in the controller and instead provide a map of all parameters (of type interface) to all sync controllers. |
7a3e8af to
93d094b
Compare
Got it, thanks for the suggestion. Updated! |
federation/pkg/federatedtypes/hpa.go
Outdated
There was a problem hiding this comment.
s/Forbiddne/Forbidden/
Also, why is it desirable to drop the comment?
There was a problem hiding this comment.
I guess it's been moved to options.go above. Makes sense.
There was a problem hiding this comment.
Actually, I did add quite an elaborate comment on the new argument added to the federation controller manager, thus dropped the one from here; but I see that it makes sense to keep the comment here also. Updated.
There was a problem hiding this comment.
Consider basing scaledTime on ScaleForbiddenWindow so that any change in that value does not require a change in this test.
|
Looks OK to me. @marun let me know when you're happy and I can approve. |
93d094b to
9e4d3fe
Compare
9e4d3fe to
2be69a5
Compare
|
/lgtm |
|
@madhusudancs @shashidharatd, can one of you please approve this for the flag name updated in "hack". |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: irfanurrehman, quinton-hoole, shashidharatd Associated issue requirement bypassed by: quinton-hoole The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
|
/retest Review the full test history for this PR. |
|
Automatic merge from submit-queue (batch tested with PRs 50016, 49583, 49930, 46254, 50337) |
This PR is on top of open pr #45993.
Please review only the last commit in this PR.
This adds a config param to controller manager, the value of which gets passed to hpa adapter via sync controller.
This is needed to reduce the overall time limit of the hpa scaling window to much lesser (then the default 2 mins) to get e2e tests run faster. Please see the comment on the newly added parameter.
Special notes for your reviewer:
@kubernetes/sig-federation-pr-reviews
@quinton-hoole
@marun to please validate the mechanism used to pass a parameter from cmd line to adapter.
Release note: