k3s/pkg/controller/resourcequota
Kubernetes Submit Queue 01aff52e0c Merge pull request #29653 from ZTE-PaaS/zhangke-patch-010
Automatic merge from submit-queue

the observed usage should match those that have hard constraints

in the sync process, the quota will be replenished, the new observed usage will be sumed from each evaluator, if the previousUsed set is not be cleared, the new usage will be dirty, maybe some unusage resource still in ,  as the code below
	newUsage = quota.Mask(newUsage, matchedResources)
	for key, value := range newUsage {
		usage.Status.Used[key] = value
	}
so i think here shoul not set value previousUsed

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.kubernetes.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/29653)
<!-- Reviewable:end -->
2016-08-11 21:54:28 -07:00
..
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
replenishment_controller.go Merge pull request #28991 from ZTE-PaaS/zhangke-patch-008 2016-08-05 15:45:46 -07:00
replenishment_controller_test.go replenish quota for service optimize, add testcase 2016-08-04 16:55:05 +08:00
resource_quota_controller.go Merge pull request #29653 from ZTE-PaaS/zhangke-patch-010 2016-08-11 21:54:28 -07:00
resource_quota_controller_test.go the observed used should match those that have hard constraint 2016-08-11 22:35:38 +08:00