-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Allow replica set to be exposed as a service and add kubectl command tests for replica sets. #20928
Allow replica set to be exposed as a service and add kubectl command tests for replica sets. #20928
Conversation
Please include replicasets in |
Labelling this PR as size/XXL |
0408470
to
b306d6f
Compare
cc @Kargakis |
GCE e2e test build/test passed for commit 0408470e5d4667c83a01add1c831a9fd7c41aeda. |
GCE e2e test build/test passed for commit b306d6fe6bfd76189eb476a6e5fedfcf12300687. |
@janetkuo Done. |
57c0e73
to
eaa7ac8
Compare
GCE e2e test build/test passed for commit 57c0e730d00f4c813524fc0814d3060682978547. |
GCE e2e test build/test passed for commit eaa7ac8. |
Note for others: I'm commenting on the last commit. |
@janetkuo Please move the deployment example from /examples/extensions to /docs/user-guide |
You also need to handle rs in |
@bgrant0607 It threw me off a bit as well (after reading your comment). Because I remembered commenting out Deployment scaler. I had to go look at the code again to remind myself. We just update the resource - kubernetes/pkg/kubectl/scale.go Line 217 in e7a9f30
|
Once the scale subresource is considered ready, I would vote for changing kubectl scale to use the scale endpoints (what already happens with deployments) |
GCE e2e build/test failed for commit c9c26b4b08085392e18852f4f52fcd0f784ab762. |
Done.
Scaler and Reaper are already implemented. Filed #20986 for kubectl autoscale. |
c9c26b4
to
f378e1e
Compare
Labelling this PR as size/L |
LGTM |
236467b
to
99e592f
Compare
GCE e2e test build/test passed for commit 99e592ff1602943702b9c58cdff8b74deb40077b. |
@@ -67,22 +67,22 @@ func (h *DeploymentHistoryViewer) History(namespace, name string) (HistoryInfo, | |||
if err != nil { | |||
return historyInfo, fmt.Errorf("failed to retrieve deployment %s: %v", name, err) | |||
} | |||
_, allOldRCs, err := deploymentutil.GetOldReplicaSets(*deployment, h.c) | |||
_, allOldRSs, err := deploymentutil.GetOldReplicaSets(*deployment, h.c) |
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 fix is unrelated to this PR, but ok.
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.
@bgrant0607 This was an artifact of the weird commits ordering, which itself was due to an incorrect rebase. Fixed the rebase and squashed the commits. This has disappeared now.
@madhusudancs If the yaml files are just for the test and not examples for users, then we probably should find a better place for them later. |
The 3 commits appear in a weird order. Please rebase and squash. |
Don't change it now, but hack/testdata is probably the right place for test-cmd.sh inputs. |
This is next in the queue to be merged and as @bgrant0607 mentioned the commits are in a strange order. I am on a bus and don't know when SSH just drops. So removing the LGTM label for now. Will add it back once the PR is rebased and the commits are squashed. |
…tests for replica sets.
PR needs rebase |
99e592f
to
293793c
Compare
GCE e2e test build/test passed for commit 293793c. |
Everything looks Ok, adding LGTM back. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
Thanks. LGTM |
GCE e2e build/test failed for commit 293793c. |
GCE e2e test build/test passed for commit 293793c. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e test build/test passed for commit 293793c. |
Automatic merge from submit-queue |
Auto commit by PR queue bot
Only the last commit needs review.
cc @bgrant0607