k3s/pkg/kubectl
Kubernetes Submit Queue ca5879bdb9 Merge pull request #31051 from caesarxuchao/fix-rc-scale
Automatic merge from submit-queue

Fix rc scaler watch

<!--  Thanks for sending a pull request!  Here are some tips for you:
1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md
2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md
3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes
-->

**What this PR does / why we need it**:
The RC scaler uses Watch to monitor if the RC is scaled. The Watch was sent with resourceVersion=0, so the watch event it gets back starts from any point in the history, so the result is not valid.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

Probably will fix #30990
Fix #30469

**Special notes for your reviewer**:

This breaks the load test because the reaper doesn't actually wait until all the pods are gone before it deletes the RC.

I haven't run the node-100 test myself to verify it fixes the problem though.

cc @deads2k @smarterclayton @lavalamp
2016-08-24 12:18:54 -07:00
..
cmd Merge pull request #31210 from lojies/changetostderr 2016-08-24 03:32:57 -07:00
metricsutil Use List objects for metrics in kubectl top and HPA 2016-08-19 17:26:50 +02:00
resource Merge pull request #30821 from ardnaxelarak/21076_change_isEmpty_to_Empty 2016-08-22 00:54:28 -07:00
testing Update generated files due to dependency shift. 2016-08-09 10:41:09 -05:00
OWNERS Remove bgrant from pkg/OWNERS and pkg/kubectl/OWNERS since he has plenty to do. 2016-06-16 08:21:27 -07:00
apply.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
autoscale.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
bash_comp_utils.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
configmap.go Move IsSecretKey into util/validation 2016-07-03 02:19:09 -07:00
configmap_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
custom_column_printer.go Added warning msg for `kubectl get` 2016-08-15 22:49:37 +00:00
custom_column_printer_test.go 24133 fix: --no-headers works with custom columns now 2016-07-07 10:04:09 +02:00
deployment.go Add "create deployment" sub-command 2016-08-08 13:24:30 +10:00
deployment_test.go Add "create deployment" sub-command 2016-08-08 13:24:30 +10:00
describe.go support Azure data disk volume 2016-08-23 13:23:07 +00:00
describe_test.go Initial Quobyte support 2016-08-18 17:13:50 +02:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
explain.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
generate.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
generate_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
history.go kubectl: refactor rollout history to be more configurable 2016-07-12 10:36:14 +02:00
interfaces.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
kubectl.go use valid_resources to replace kubectl.PossibleResourceTypes 2016-08-19 09:42:46 +08:00
kubectl_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
namespace.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
namespace_test.go Fix namespace_test error message 2016-08-08 12:08:57 +10:00
proxy_server.go Fix various typos in kubectl 2016-08-02 19:51:51 +03:00
proxy_server_test.go Make "attach" and "exec" rejection in proxy more explicit 2016-07-19 20:50:19 +02:00
quota.go Add --scopes to kubectl-create-quota and add tests 2016-07-26 14:12:35 +02:00
quota_test.go Add --scopes to kubectl-create-quota and add tests 2016-07-26 14:12:35 +02:00
resource_printer.go Merge pull request #30858 from kargakis/status-column-for-rs 2016-08-24 00:38:53 -07:00
resource_printer_test.go Added warning msg for `kubectl get` 2016-08-15 22:49:37 +00:00
rollback.go Move deployment utilities to there own package 2016-07-08 09:46:56 +02:00
rolling_updater.go make correction to two variables in inverse order 2016-08-05 16:17:01 +08:00
rolling_updater_test.go Merge pull request #29971 from caesarxuchao/fix-kubectl-rolling-update-with-gc 2016-08-04 20:48:10 -07:00
rollout_status.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
run.go kubectl run add pull-policy flag to control image pull policy 2016-08-17 11:26:27 +08:00
run_test.go kubectl run add pull-policy flag to control image pull policy 2016-08-17 11:26:27 +08:00
scale.go fix RC watch in scale 2016-08-24 10:26:08 -07:00
scale_test.go fix RC watch in scale 2016-08-24 10:26:08 -07:00
secret.go Move IsSecretKey into util/validation 2016-07-03 02:19:09 -07:00
secret_for_docker_registry.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
secret_for_docker_registry_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
secret_for_tls.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
secret_for_tls_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
secret_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
service.go Merge pull request #28239 from ApsOps/kubectl-expose-headless-svc 2016-08-02 01:18:19 -07:00
service_basic.go Add "create service" sub-commands 2016-08-08 12:31:21 +10:00
service_basic_test.go Add "create service" sub-commands 2016-08-08 12:31:21 +10:00
service_test.go Merge pull request #28239 from ApsOps/kubectl-expose-headless-svc 2016-08-02 01:18:19 -07:00
serviceaccount.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
serviceaccount_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
sorted_event_list.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
sorted_event_list_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
sorted_resource_name_list.go Merge pull request #28110 from mfojtik/describe-volume-mounts 2016-06-30 17:15:05 -07:00
sorted_resource_name_list_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
sorting_printer.go Added warning msg for `kubectl get` 2016-08-15 22:49:37 +00:00
sorting_printer_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
stop.go Allow changes to container image for updates 2016-08-18 16:33:51 -07:00
stop_test.go speed up RC scaler 2016-08-12 08:19:10 -04:00
version.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
watchloop.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00