Quota ignores pod compute resources on updates

This commit is contained in:
derekwaynecarr
2016-04-19 23:05:59 -04:00
parent 265c7df39e
commit b92b7255f4
2 changed files with 16 additions and 1 deletions

View File

@@ -47,7 +47,8 @@ func NewPodEvaluator(kubeClient clientset.Interface) quota.Evaluator {
InternalGroupKind: api.Kind("Pod"),
InternalOperationResources: map[admission.Operation][]api.ResourceName{
admission.Create: allResources,
admission.Update: computeResources,
// TODO: the quota system can only charge for deltas on compute resources when pods support updates.
// admission.Update: computeResources,
},
GetFuncByNamespace: func(namespace, name string) (runtime.Object, error) {
return kubeClient.Core().Pods(namespace).Get(name)