Kubernetes Prow Robot
6b47754740
Merge pull request #81627 from tallclair/copy
...
Delete duplicate resource.Quantity.Copy()
2019-08-22 11:13:13 -07:00
Eric Ernst
80ee072b85
pod-overhead: utilize pod overhead for cgroup sizing, eviction handling
...
Pod and burstable QoS cgroups should take overhead of running a sandbox
into account if the PodOverhead feature is enabled. These helper
functions are utilized by Kubelet for sizing the pod and burstable QoS
cgroups.
Pod overhead is added to resource requests, regardless of the initial
request values. A particular resource pod overhead is only added to a
resource limit if a non-zero limit already existed.
This commit updates eviction handling to also take Pod Overhead into
account (if the feature is enabled).
Signed-off-by: Eric Ernst <eric.ernst@intel.com>
2019-08-19 17:40:47 -07:00
Tim Allclair
49f50484b8
Delete duplicate resource.Quantity.Copy()
2019-08-19 17:23:14 -07:00
Eric Ernst
f137a9cdb9
resource: cleanup helpers_test.go
...
No test content changes - just improvements for readability
Signed-off-by: Eric Ernst <eric.ernst@intel.com>
2019-08-13 16:23:28 -07:00
Eric Ernst
9d2d37be27
resource: modify resource helpers for better reuse
...
Update GetResoureqRequest function to utilize a new helper,
GetResourceRequestQuantity. This logic was duplicated in a couple of
areas in the K/K codebase, so consolidating for better test coverage.
Signed-off-by: Eric Ernst <eric.ernst@intel.com>
2019-08-13 16:23:28 -07:00
David Xia
fabfd950b1
cleanup: fix some log and error capitalizations
...
Part of https://github.com/kubernetes/kubernetes/issues/15863
2019-07-20 18:26:16 -04:00
Ted Yu
2dca643ca1
Check the correct value of Quantity in GetResourceRequest
2019-07-01 06:45:28 +08:00
yuchengwu
6bcb7d5130
Fix initContainer failed to get its own field value as env values
2019-05-15 13:45:50 +08:00
Prasad Ghangal
3fba36291c
pkg/api: Fix golint errors
2018-09-07 12:31:25 +05:30
yanxuean
efca28f8a5
remove deplicate code for PodRequestsAndLimits
...
Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
2018-08-18 09:22:28 +08:00
Jeff Grafton
23ceebac22
Run hack/update-bazel.sh
2018-06-22 16:22:57 -07:00
Jeff Grafton
ef56a8d6bb
Autogenerated: hack/update-bazel.sh
2018-02-16 13:43:01 -08:00
Jeff Grafton
efee0704c6
Autogenerate BUILD files
2017-12-23 13:12:11 -08:00
NickrenREN
d379a9a3ff
Add downward_api e2e test for LocalStorageCapacityIsolation feature
2017-11-04 12:50:34 +08:00
Jeff Grafton
aee5f457db
update BUILD files
2017-10-15 18:18:13 -07:00
Dr. Stefan Schimanski
509df603b1
apimachinery: mechanical removal of ObjectCopier plumbing
2017-10-06 19:21:03 +02:00
Dr. Stefan Schimanski
362439db64
pkg/api: simplify deepcopy calls
2017-08-29 20:04:05 +02:00
NickrenREN
194418986f
Add local storage to downwards API
2017-08-26 11:58:21 +08:00
xiangpengzhao
1c4dbcf5ca
Replace hard-code "cpu" and "memory" to consts
2017-08-16 16:37:50 +08:00
Jeff Grafton
a7f49c906d
Use buildozer to delete licenses() rules except under third_party/
2017-08-11 09:32:39 -07:00
Jeff Grafton
33276f06be
Use buildozer to remove deprecated automanaged tags
2017-08-11 09:31:50 -07:00
Xing Zhou
37f9e13025
Remove useless error
2017-07-03 14:59:54 +08:00
Chao Xu
60604f8818
run hack/update-all
2017-06-22 11:31:03 -07:00
Chao Xu
f4989a45a5
run root-rewrite-v1-..., compile
2017-06-22 10:25:57 -07:00
Chao Xu
958903509c
bazel
2017-04-27 09:41:53 -07:00
Chao Xu
3fa7b7824a
easy changes
2017-04-27 09:41:53 -07:00
Chao Xu
4f9591b1de
move pkg/api/v1/ref.go and pkg/api/v1/resource.go to subpackages. move some functions in resource.go to pkg/api/v1/node and pkg/api/v1/pod
2017-04-17 11:38:11 -07:00