Francesco Romani
623587ec8b
cpumanager: test: add missing helper
...
add back the missing AssertStateEqual helper;
it is needed by some tests we still want to run.
Signed-off-by: Francesco Romani <fromani@redhat.com >
2020-04-07 16:59:07 +02:00
Francesco Romani
be0fe3df9b
cpumanager: drop old custom file backend
...
The cpumanager file-based state backend was obsoleted since few
releases, aving the cpumanager moved to the checkpointmanager common
infrastructure.
The old test checking compatibility to/from the old format is
also no longer needed, because the checkpoint format is stable
(see
https://github.com/kubernetes/kubernetes/tree/master/pkg/kubelet/checkpointmanager ).
Signed-off-by: Francesco Romani <fromani@redhat.com >
2020-04-07 13:24:48 +02:00
Kubernetes Prow Robot
037db1cb6c
Merge pull request #89687 from dims/update-docker-dependency
...
Update docker dependency and remove deprecated method use
2020-04-06 15:42:14 -07:00
Kubernetes Prow Robot
8cdf21ab4c
Merge pull request #86409 from sshukun/fix-golint
...
Fix go-lint issues in package pkg/kubelet/checkpointmanager/testing/example_checkpoint_formats/v1
2020-04-06 15:42:01 -07:00
Kubernetes Prow Robot
0d8b4b5df4
Merge pull request #85994 from coderanger/patch-1
...
Tiny typo in a comment.
2020-04-06 15:41:47 -07:00
Kubernetes Prow Robot
9441df3aad
Merge pull request #89808 from fuweid/close-resize-chan
...
remotecommand: close resize channel for notification
2020-04-06 13:47:46 -07:00
Wei Fu
d2b59f10c5
remotecommand: close resize channel for notification
...
Remotecommand package should notify executor by closing resizeChan.
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2020-04-06 23:32:23 +08:00
Andrew Sy Kim
2e56866c97
move apparmor annotation constants to k8s.io/api/core/v1
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com >
2020-04-06 10:22:04 -04:00
Davanum Srinivas
7368359782
Stop using deprecated method
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2020-04-03 15:48:32 -04:00
Kubernetes Prow Robot
b030be376b
Merge pull request #89581 from Wenfeng-GAO/simplify
...
simplify code in topologymanager
2020-04-02 23:07:46 -07:00
Kubernetes Prow Robot
adcbe470d7
Merge pull request #89619 from mattjmcnaughton/mattjmcnaughton/delete-unused-builder-type
...
Delete unused `Builder` type from `kubelet.go`
2020-04-02 21:40:31 -07:00
Kubernetes Prow Robot
69681d7df8
Merge pull request #89286 from uzuku/mar-fix-nil-pointer-in-format
...
Handle nil pod in pod format
2020-04-02 19:04:00 -07:00
Kubernetes Prow Robot
4e6a12223b
Merge pull request #89567 from giuseppe/cgroupv2-unit-test
...
kubelet: add tests for cgroup v2 conversions
2020-04-02 12:42:52 -07:00
Kubernetes Prow Robot
bbe5594409
Merge pull request #89296 from danwinship/random-emptily
...
Don't log whether we're using iptables --random-fully
2020-04-02 12:42:24 -07:00
Noah Kantrowitz
14969831e9
Apply the same style of fix as #87913 but for HTTP methods too.
...
Go does not validate HTTP methods beyond len!=0 and that they don't contain HTTP meta chars like a newline. Also to using string sets instead of maps.
2020-04-02 02:15:04 -07:00
Sascha Grunert
2dfb22b5b7
Remove unnecessary sprintf in node status tests
...
There is no invocation to sprintf needed for those strings so we can
remove them.
Signed-off-by: Sascha Grunert <sgrunert@suse.com >
2020-04-01 14:16:28 +02:00
Andrew Sy Kim
e2bc3a755f
move well-known kubelet cloud provider annotations to k8s.io/cloud-provider ( #88631 )
...
* move well-known kubelet cloud provider annotations to k8s.io/cloud-provider
Signed-off-by: andrewsykim <kim.andrewsy@gmail.com >
* cloud provider: rename AnnotationProvidedIPAddr to AnnotationAlphaProvidedIPAddr to indicate alpha status
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com >
2020-03-31 23:01:27 -07:00
Kubernetes Prow Robot
357d3c9f93
Merge pull request #89584 from kevtaylor/kep/VolumeSubpathExpansion-Remove-FeatureGate
...
Remove VolumeSubpathEnvExpansion Feature Gate
2020-03-31 20:03:27 -07:00
Kubernetes Prow Robot
1168b4b812
Merge pull request #88006 from tedyu/socket-path
...
Unregister csiplugin even if socket path is gone
2020-03-31 10:54:40 -07:00
Ted Yu
c7bde41478
Unregister csiplugin even if socket path is gone
...
Signed-off-by: Ted Yu <yuzhihong@gmail.com >
2020-03-31 06:57:05 -07:00
Zhou Peng
930bedf144
[pkg/kubelet]: make func a little comfortable
...
This func has only 1 argument, don't wrap it across multiple lines
Signed-off-by: Zhou Peng <p@ctriple.cn >
2020-03-31 16:47:32 +08:00
Davanum Srinivas
a1bceb8915
add import restrictions
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2020-03-30 10:45:22 -04:00
Davanum Srinivas
765e926d35
Avoid using internal packages for streaming/ package
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2020-03-29 18:42:27 -04:00
mattjmcnaughton
6b5b8bb186
Delete unused Builder type from kubelet.go
...
As far as I can tell, nothing uses this type. As a result, it doesn't
really provide any benefit, and just clutters `kubelet.go`.
There's also the risk of it falling out of date with `NewMainKubelet`,
as nothing enforces `NewMainKubelet` being of the `Builder` type.
2020-03-28 20:04:58 -04:00
Kubernetes Prow Robot
fca2963aa2
Merge pull request #89540 from dashpole/fix_metric
...
Fix cpu resource metric type by changing to counter
2020-03-27 14:36:07 -07:00
Kevin Taylor
9fd48b4039
Remove VolumeSubpathEnvExpansion Feature Gate
2020-03-27 16:28:33 +00:00
Wenfeng-GAO
1aebbee7da
simplify code in topologymanager
2020-03-28 00:04:51 +08:00
Giuseppe Scrivano
c4429d8bd4
kubelet: add tests for cgroup v2 conversions
...
follow-up for https://github.com/kubernetes/kubernetes/pull/85218
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2020-03-27 13:50:57 +01:00
Kubernetes Prow Robot
708dd2ea7a
Merge pull request #89308 from zshihang/sync
...
sync api/v1/pod/util with api/pod/util
2020-03-26 14:10:49 -07:00
Kubernetes Prow Robot
34c8b26c9f
Merge pull request #85218 from giuseppe/cgroupv2
...
kubelet: add initial support for cgroupv2
2020-03-26 14:10:23 -07:00
David Ashpole
86192d4b9a
fix cpu resource metric type by changing to counter
2020-03-26 13:30:36 -07:00
Kubernetes Prow Robot
4488fd4749
Merge pull request #89053 from bg-chun/move_package
...
migration of re-usable package from pkg/kubelet/cm/cpumanager to pkg/kubelet/cm
2020-03-26 11:14:09 -07:00
yameiwang
6783f991c3
fix function NodeAllocatableRoot
2020-03-26 18:48:05 +08:00
Shihang Zhang
b56da85a77
sync api/v1/pod/util with api/pod/util and remove DefaultContainers
2020-03-24 16:42:32 -07:00
Kubernetes Prow Robot
89dfebb214
Merge pull request #89359 from gongguan/process
...
eviction by process number
2020-03-24 15:27:25 -07:00
Kubernetes Prow Robot
f321d0ed12
Merge pull request #89361 from fuweid/me-use-statsfunc
...
eviction: use previous statsFunc
2020-03-24 00:28:46 -07:00
Kubernetes Prow Robot
907d4c1bb9
Merge pull request #89381 from dashpole/comment_disable_readonly
...
Add comment explaining when to remove cadvisor json endpoints
2020-03-23 20:31:19 -07:00
louisgong
e56d40d048
remove unused param
2020-03-24 09:25:04 +08:00
louisgong
0efb70c0a2
eviction by process number
2020-03-24 09:25:04 +08:00
David Ashpole
b4ed7273da
add comment explaining when to remove the --enable-cadvisor-json-endpoints
2020-03-23 12:52:00 -07:00
Wei Fu
a809aaf03d
eviction: use previous statsFunc
...
No need to use summary to create statsFunc for localStorageEviction.
Just use vals from makeSignalObservations.
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2020-03-23 19:11:17 +08:00
Dan Winship
8edd656238
Don't log whether we're using iptables --random-fully
2020-03-20 08:06:27 -04:00
Uzuku
302cda742a
Handle nil pod in pod format
2020-03-20 15:30:44 +08:00
Kubernetes Prow Robot
e74ad38854
Merge pull request #89013 from dims/copy-jsonlog-from-docker/docker-locally
...
Copy jsonlog from docker/docker locally
2020-03-19 12:08:37 -07:00
Kubernetes Prow Robot
dfb6993947
Merge pull request #89182 from dims/just-use-runtime-numcpu
...
Just use runtime.NumCPU on windows
2020-03-19 06:05:51 -07:00
Odin Ugedal
2830827442
Add support for removing unsupported huge page sizes
...
When kubelet is restarted, it will now remove the resources for huge
page sizes no longer supported. This is required when:
- node disables huge pages
- changing the default huge page size in older versions of linux
(because it will then only support the newly set default).
- Software updates that change what sizes are supported (eg. by changing
boot parameters).
2020-03-19 13:08:08 +01:00
Kubernetes Prow Robot
34ad7d1984
Merge pull request #88450 from shikanon/fix/golintTypo
...
fix typos error in handlers_test.go file
2020-03-18 14:24:44 -07:00
Kubernetes Prow Robot
0c8ac83e04
Merge pull request #88871 from dashpole/fix_oom
...
Use the container whose limit is hit for system OOMs
2020-03-17 19:27:54 -07:00
Davanum Srinivas
825f99c396
run update-vendor.sh
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2020-03-17 21:26:07 -04:00
Davanum Srinivas
0c52ffe08f
make local copy of JSONLog
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2020-03-17 21:25:55 -04:00