k3s/pkg/controller
Joseph Burnett d881d48b2c There are various reasons that the HPA will decide not the change the
current scale. Two important ones are when missing metrics might
change the direction of scaling, and when the recommended scale is
within tolerance of the current scale.

The way that ReplicaCalculator signals it's desire to not change the
current scale is by returning the current scale. However the current
scale is from scale.Status.Replicas and can be larger than
scale.Spec.Replicas (e.g. during Deployment rollout with configured
surge). This causes a positive feedback loop because
scale.Status.Replicas is written back into scale.Spec.Replicas,
further increasing the current scale.

This PR fixes the feedback loop by plumbing the replica count from
spec through horizontal.go and replica_calculator.go so the calculator
can punt with the right value.
2019-07-03 10:35:42 +02:00
..
apis/config Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00
bootstrap Move from glog to klog 2018-11-10 07:50:31 -05:00
certificates Update client callers to use explicit versions 2019-02-26 08:36:30 -05:00
cloud delete the persistentvolume labeler controller 2019-02-26 14:23:20 -05:00
clusterroleaggregation Move from glog to klog 2018-11-10 07:50:31 -05:00
cronjob Avoid panic in cronjob sorting 2019-04-03 12:44:01 -07:00
daemon Delete only unscheduled pods if node doesn't exist anymore. 2019-04-08 19:31:57 +02:00
deployment Merge pull request #74044 from danielqsj/dr 2019-02-21 20:51:01 -08:00
disruption Merge pull request #74044 from danielqsj/dr 2019-02-21 20:51:01 -08:00
endpoint Merge pull request #73968 from freehan/big-endpoint-event 2019-02-22 16:15:20 -08:00
garbagecollector Merge pull request #72525 from justinsb/owners_should_not_be_executable 2019-02-14 23:55:45 -08:00
history Merge pull request #72525 from justinsb/owners_should_not_be_executable 2019-02-14 23:55:45 -08:00
job Merge pull request #72525 from justinsb/owners_should_not_be_executable 2019-02-14 23:55:45 -08:00
namespace Update client callers to use explicit versions 2019-02-26 08:36:30 -05:00
nodeipam Move pkg/api/v1/node to pkg/util/node (#73656) 2019-02-26 11:05:32 -08:00
nodelifecycle nodelifecycle controller: reconcile node OS/arch labels 2019-03-06 17:26:23 -08:00
podautoscaler There are various reasons that the HPA will decide not the change the 2019-07-03 10:35:42 +02:00
podgc Merge pull request #72525 from justinsb/owners_should_not_be_executable 2019-02-14 23:55:45 -08:00
replicaset Merge pull request #74122 from draveness/feature/refactor-filter-active-pods 2019-02-27 15:54:25 -08:00
replication Merge pull request #72525 from justinsb/owners_should_not_be_executable 2019-02-14 23:55:45 -08:00
resourcequota Merge pull request #72525 from justinsb/owners_should_not_be_executable 2019-02-14 23:55:45 -08:00
route Move pkg/api/v1/node to pkg/util/node (#73656) 2019-02-26 11:05:32 -08:00
service Merge pull request #72185 from dcbw/owners-label-sig-network 2019-02-08 10:36:16 -08:00
serviceaccount Merge pull request #72525 from justinsb/owners_should_not_be_executable 2019-02-14 23:55:45 -08:00
statefulset Merge pull request #72525 from justinsb/owners_should_not_be_executable 2019-02-14 23:55:45 -08:00
testutil go-1.12: fix 'go vet' failures 2019-03-01 18:48:17 +02:00
ttl Move from glog to klog 2018-11-10 07:50:31 -05:00
ttlafterfinished Move from glog to klog 2018-11-10 07:50:31 -05:00
util/node nodelifecycle controller: reconcile node OS/arch labels 2019-03-06 17:26:23 -08:00
volume Move CSIDriver Lister to the controller 2019-06-10 17:41:54 -07:00
.import-restrictions Merge pull request #70265 from jingyih/use_chunking_when_list_in_cronjob_controller 2019-03-06 04:45:59 -08:00
BUILD replace client-go/util/integer with k8s.io/utils/integer 2019-01-24 15:34:21 -05:00
OWNERS Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00
client_builder.go SAControllerClientBuilder: Replace ListWatchUntil with UntilWithSync to 2019-01-07 15:58:12 +01:00
controller_ref_manager.go Move from glog to klog 2018-11-10 07:50:31 -05:00
controller_ref_manager_test.go
controller_utils.go nodelifecycle controller: reconcile node OS/arch labels 2019-03-06 17:26:23 -08:00
controller_utils_test.go
doc.go
lookup_cache.go