-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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
StatefulSet scale subresource #49168
StatefulSet scale subresource #49168
Conversation
924479f
to
d4151de
Compare
d4151de
to
07e8f2c
Compare
Looks like a great start! It just needs integration/e2e tests to show that the subresource is properly plumbed through all the way. |
3a527a4
to
79a028d
Compare
@liggitt @enisoc @janetkuo The reason submit queue
IMO there are two ways to resolve this: I will pursue (1), which requires understanding API server and storage codes. Registering the subresource to |
0727e9f
to
976ac2a
Compare
storage["statefulsets/status"] = statefulsetStatusStorage | ||
// enable scale subresource for v1beta1 for e2e testing | ||
// we are not able to test v1beta2 as v1beta2 is disabled at master.go | ||
// TODO (juntee): remove the subresource before 1.8 release |
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.
I don't see a reason to remove this before 1.8... why wouldn't we want the scale subresource in v1beta1 as well?
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 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.
In this case, i prefer spending more time investigating how to make e2e test works for v1beta2.
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.
@liggitt @kow3ns @foxish After discussion, /scale
will NOT be remove for v1beta1
as there is no maintenance cost.
I plan to:
(1) change e2e test's version from v1beta1
to v1beta2
BEFORE code freeze
(2) replace e2e test with integration test sometime AFTER 1.8 release branches cut
Tell me if there is a better way. 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.
I plan to:
(1) change e2e test's version from v1beta1 to v1beta2 BEFORE code freeze
(2) replace e2e test with integration test sometime AFTER 1.8 release
SGTM. if the switch to integration test happens before code freeze, that works as well.
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 confirming! I opened issue #50109 for reference.
@janetkuo are you satisfied that @crimsonfaith91 has addressed your review? |
/approve, though still needs @kubernetes/api-approvers and LGTM |
/lgtm |
test/e2e/apps/statefulset.go
Outdated
@@ -47,6 +48,8 @@ const ( | |||
readTimeout = 60 * time.Second | |||
) | |||
|
|||
var proxyRegexp = regexp.MustCompile("Starting to serve on 127.0.0.1:([0-9]+)") |
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.
This looks no longer needed?
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.
@smarterclayton Thanks for reviewing! Yes, this line is unnecessary. :)
API approved. One minor comment, you can do that in a follow up. /approve |
976ac2a
to
80f5e5f
Compare
80f5e5f
to
91f100b
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: crimsonfaith91, kow3ns, smarterclayton Associated issue: 46005 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue |
What this PR does / why we need it: This PR implements scale subresource for StatefulSet.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #46005Special notes for your reviewer:
Release note:
Feature Checklist:
ScaleREST New(), Get() and Update()
utility functionsScaleREST
object atNewREST()
and return it/scale
field to the storage mapTesting Checklist:
Unit testing
newStorage()
to callNewStorage()
, and change all unit tests accordinglyScaleREST Get() and Update()
utility functionsShortNames
Manual testing
kubectl proxy
commandcurl
viaPOST
e2e testing
RESTClient