k3s/test
k8s-merge-robot 32121e344b Merge pull request #24514 from derekwaynecarr/pod_quota_fix
Automatic merge from submit-queue

Quota ignores pod compute resources on updates

Scenario:

1. define a quota Q that tracks memory and cpu
2. create pod P that uses memory=100Mi, cpu=100m
3. update pod P to use memory=50Mi,cpu=10m

Expected Results:
Step 3 should fail with validation error.
Quota Q should not have changed.

Actual Results:
Step 3 fails validation, but quota Q is decremented to have memory usage down 50Mi and cpu usage down 40m.  This is because the quota was getting updated even though the pod was going to fail validation.

Fix:
Quota should only support modifying pod compute resources when pods themselves support modifying their compute resources.

This also fixes https://github.com/kubernetes/kubernetes/issues/24352

/cc @smarterclayton - this is what we discussed.

fyi: @kubernetes/rh-cluster-infra
2016-04-27 06:27:51 -07:00
..
component/scheduler/perf Add RC and container pors to scheduler benchmark 2016-04-20 15:10:57 +02:00
e2e Merge pull request #24514 from derekwaynecarr/pod_quota_fix 2016-04-27 06:27:51 -07:00
e2e_node Track image storage usage for docker containers 2016-04-25 16:00:34 -07:00
fixtures/pkg/kubectl/cmd/apply
images Add Makefile for iperf 2016-04-13 14:28:33 -07:00
integration Merge pull request #23574 from deads2k/add-extra 2016-04-26 21:14:53 -07:00
kubemark Add Services to Load test 2016-04-21 22:00:26 +02:00
soak Update test/e2e for test/e2e/framework refactoring 2016-04-13 10:50:17 -07:00
OWNERS