k3s/pkg
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
..
admission let admission plugins indicate they want nothing 2016-04-19 08:11:53 -04:00
api Merge pull request #23632 from stefwalter/parse-repository-tag-removed 2016-04-26 09:49:25 -07:00
apimachinery Add third party support to kubectl 2016-03-31 10:53:32 -07:00
apis add user.Info.GetExtra 2016-04-26 15:08:34 -04:00
apiserver Merge pull request #24539 from smarterclayton/unify_stream_and_serial 2016-04-25 11:25:16 +02:00
auth add user.Info.GetExtra 2016-04-26 15:08:34 -04:00
capabilities
client Generated changes for moving job internals from pkg/apis/extensions to pkg/apis/batch 2016-04-25 11:03:57 +02:00
cloudprovider Merge pull request #22023 from mkulke/rackspace-improvements 2016-04-21 16:38:13 -07:00
controller Fix DeletingLoadBalancer event generation. 2016-04-27 00:27:55 +00:00
conversion Default conversion for byte slices is incorrect 2016-04-17 21:20:50 -04:00
credentialprovider Refactor PullImage RemoveImage methods 2016-04-23 10:33:47 -04:00
fieldpath
fields
genericapiserver In preparation for new storage backends renaming generic registry store 2016-04-26 08:32:13 -05:00
healthz
httplog
hyperkube
kubectl Make DrainOptions.getPodsForDeletion public to be reused in ClusterAutoscaler 2016-04-27 11:47:34 +02:00
kubelet Merge pull request #23632 from stefwalter/parse-repository-tag-removed 2016-04-26 09:49:25 -07:00
kubemark Increase MaxPods in Kubemark 2016-03-02 16:21:16 +01:00
labels Regenerate auto-generated files 2016-03-17 09:30:02 +01:00
master Reduce LOC in third party controller test 2016-04-27 02:50:46 -04:00
metrics Add container_spec_cpu_period metric 2016-04-04 23:53:54 +02:00
probe Allow setting the Host header in a httpGet probe 2016-04-15 01:59:42 +01:00
proxy added test for revertPorts 2016-04-26 14:23:06 -07:00
quota Merge pull request #24514 from derekwaynecarr/pod_quota_fix 2016-04-27 06:27:51 -07:00
registry In preparation for new storage backends renaming generic registry store 2016-04-26 08:32:13 -05:00
runtime Merge pull request #24539 from smarterclayton/unify_stream_and_serial 2016-04-25 11:25:16 +02:00
securitycontext Refactor CreateContainer. 2016-04-14 17:05:46 -07:00
serviceaccount Improve error messages in jwt_test.go 2016-04-21 11:37:14 +08:00
ssh Merge pull request #24506 from timstclair/ssh 2016-04-19 22:36:44 -07:00
storage etcd3/watcher: cancelling context shouldn't return error 2016-04-22 12:23:04 +08:00
types Create Unix UID/GID types 2016-02-24 11:22:02 -05:00
ui Remove url query param that is leading to XSS issue 2016-03-22 10:35:06 -07:00
util Merge pull request #23632 from stefwalter/parse-repository-tag-removed 2016-04-26 09:49:25 -07:00
version Include Go version, platform, and other build info in version string 2016-03-14 13:55:28 -07:00
volume Merge pull request #22023 from mkulke/rackspace-improvements 2016-04-21 16:38:13 -07:00
watch Handle streaming serializers more consistently 2016-04-22 11:07:24 -04:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00