Kubernetes Prow Robot
06dfe683ce
Merge pull request #103123 from dims/remove-fakefs-to-drop-spf13/afero-dependency
...
Remove fakefs to drop spf13/afero dependency
2021-06-24 07:57:41 -07:00
Davanum Srinivas
5feff280e1
remove fakefs to drop spf13/afero dependency
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2021-06-24 09:51:34 -04:00
Mengjiao Liu
af825b4357
Remove default JSON logging format registration from component-base/logs package
2021-06-24 20:37:09 +08:00
Jan Safranek
d3dfe124da
Update mounter interface in volume manager
...
Update mounter interface in volume manager's ActualStateOfWorld every time.
Otherwise kubelet uses the first mounter it gets, which may not have the
latest information.
This fixes set up of CSI volumes, which store information about SELinux
support in their `mounter` interface implementation. With each MountVolume()
retry, a new mounter is instantiated and only the final mounter that succeeds
has the right info if the volume supports SELinux or not and can later
return the right attributes on GetAttributes() call.
2021-06-24 14:11:31 +02:00
Rishabh Jain
8f08db9164
Change log level to Debug
2021-06-24 14:23:06 +05:30
Kenta Tada
89a4d4b071
kubelet: modify the function of getCgroupSubsystemsV2 to use libcontainer API
2021-06-24 16:58:05 +09:00
sanwishe
43f8f58895
add containers starttime metrics for metrics/resource endpoint
...
Signed-off-by: sanwishe <jiang.mingzhi35@zte.com.cn >
2021-06-24 02:53:21 +08:00
Sascha Grunert
8b7003aff4
Add SeccompDefault feature
...
This adds the gate `SeccompDefault` as new alpha feature. Seccomp path
and field fallbacks are now passed to the helper functions, whereas unit
tests covering those code paths have been added as well.
Beside enabling the feature gate, the feature has to be enabled by the
`SeccompDefault` kubelet configuration or its corresponding
`--seccomp-default` CLI flag.
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
Apply suggestions from code review
Co-authored-by: Paulo Gomes <pjbgf@linux.com >
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
2021-06-23 10:22:57 +02:00
Kubernetes Prow Robot
985ac8ae50
Merge pull request #101030 from cynepco3hahue/pod_resources_memory_interface
...
Extend pod resource API response to return the information from memory manager
2021-06-22 06:35:58 -07:00
Artyom Lukianov
03830db82d
Implement all necessary methods to provide memory manager data under pod resources metrics
...
Signed-off-by: Artyom Lukianov <alukiano@redhat.com >
2021-06-22 13:06:32 +03:00
Artyom Lukianov
24023f9fcc
Extend pod resource API response to return the memory manager information
...
Signed-off-by: Artyom Lukianov <alukiano@redhat.com >
2021-06-22 12:59:04 +03:00
Kubernetes Prow Robot
e154a6d637
Merge pull request #102455 from lunhuijie/addTestHelpers
...
Add test cases to the addAllocatableThresholds function in pkg/kubelet/eviction/helpers.go
2021-06-21 19:23:57 -07:00
Kubernetes Prow Robot
3bd29bc53d
Merge pull request #102829 from snowplayfire/update-devicemanager
...
Add resource capacity to ListAndWatch grpc logging
2021-06-21 16:28:09 -07:00
Kubernetes Prow Robot
844fa00c5e
Merge pull request #102725 from 249043822/br-podworker
...
Fix:slow memory leak may be in kubelet podworkers.isWorking
2021-06-21 16:27:57 -07:00
Kubernetes Prow Robot
62fdaabe82
Merge pull request #102635 from charlesxsh/fix-linux-test
...
fix a potential deadlock in graceful node shutdown unit tests
2021-06-21 16:27:45 -07:00
Kubernetes Prow Robot
4afb72a863
Merge pull request #100183 from jsafrane/fix-unstage-retry
...
Mark volume as uncertain after Unmount* fails
2021-06-18 11:04:06 -07:00
jingxueli
45d18acbcc
add info for possible failed listAndWatch grpc call
2021-06-17 16:25:20 +08:00
Kubernetes Prow Robot
2d7a20fcd6
Merge pull request #102840 from Kissy/issue-102820
...
Improve terminated pod message when node is shutting down
2021-06-16 12:48:12 -07:00
Jan Safranek
d5da73032f
Add unit test for DSWP with uncertain volume
...
desiredStateOfWorldPopulator.findAndRemoveDeletedPods() should remove
volumes from DSW when a pod is deleted on the API server and the volume is
uncertain in ASW.
2021-06-16 18:41:44 +02:00
Jan Safranek
f795b02f4f
Refactor dswp unit tests
...
Change existing desiredStateOfWorldPopulator.findAndAddNewPods tests to use
a common initialization function.
2021-06-16 18:41:43 +02:00
Jan Safranek
2fcb5e9cf7
Add PodRemovedFromVolume
...
To know when a volume has been fully unmounted (incl. uncertain mounts).
2021-06-16 18:41:41 +02:00
Jan Safranek
ca934b8f5c
Add GetPossiblyMountedVolumesForPod to let kubelet know all volumes were unmounted
...
podVolumesExist() should consider also uncertain volumes (where kubelet
does not know if a volume was fully unmounted) when checking for pod's
volumes. Added GetPossiblyMountedVolumesForPod for that.
Adding uncertain mounts to GetMountedVolumesForPod would potentially break
other callers (e.g. `verifyVolumesMountedFunc`).
2021-06-16 18:39:12 +02:00
Elana Hashman
9469756b6c
Ensure kubelet statuses can handle loss of container runtime state
2021-06-15 11:12:55 -07:00
Lee Verberne
30d2ad576a
Remove ManagedPod,ManagedContainer metrics
...
This replaces the generic ManagedPod and ManagedContainer kubelet
metrics with a gauge to track only ephemeral container usage.
2021-06-15 19:02:07 +02:00
Guillaume Le Biller
f1de598233
Improve terminated pod message when node is shutting down
...
Signed-off-by: Guillaume Le Biller <glebiller@Traveldoo.com >
2021-06-15 18:29:54 +02:00
Marek Siarkowicz
f9343f837d
Use LoggingConfig within LogOptions
...
Co-authored-by: mengjiao.liu <mengjiao.liu@daocloud.io >
Co-authored-by: Jordan Liggitt <jordan@liggitt.net >
Co-authored-by: Heisenberg <yuzhiquanlong@gmail.com >
2021-06-15 17:14:43 +02:00
刁浩 10284789
be48f1d272
Add test cases to the addAllocatableThresholds function in pkg/kubelet/eviction/helpers.go
...
Signed-off-by: 刁浩 10284789 <diao.hao@zte.com.cn >
2021-06-15 11:32:44 +00:00
KeZhang
83ee5da75e
Fix:slow memory leak may be in kubelet podworkers.isWorking
2021-06-15 15:26:30 +08:00
Kubernetes Prow Robot
4e7fc6df63
Merge pull request #100369 from wzshiming/fix/restart-dbus-for-graceful-node-shutdown
...
After DBus restarts, make GracefulNodeShutdown work again
2021-06-14 20:50:00 -07:00
Kubernetes Prow Robot
85f0931ab9
Merge pull request #102772 from saintube/patch-1
...
cleanup: fix kubelet cpuset typo
2021-06-14 19:00:13 -07:00
Francesco Romani
369416b763
cm: handle nil cpumanager avoiding segfault
...
If the cpumanager feature gate is disabled, the corresponsing field
of the containerManager will be nil.
A couple functions don't check for this occurrence and happily
deference the pointer unconditionally, leading to possible segfaults.
The relevant functions were introduced to support the podresources API,
so to trigger this segfault all the following are needed:
- cpumanager feature gate has to be disabled explicitely
- any podresources API must be called
Worth pointing out that when the new functions were introduced (around
kubernetes 1.20) the default feature gate for cpumanager was already set
to true, hence this bug is expected to be triggered rarely.
Signed-off-by: Francesco Romani <fromani@redhat.com >
2021-06-10 16:22:43 +02:00
Frame
9255f2ccf3
Fix kubelet cpuset typo
2021-06-10 18:17:04 +08:00
Jonathan Dobson
484eb01822
kubelet: do not call RemoveAll on volumes directory for orphaned pods
2021-06-08 13:57:35 -06:00
Kubernetes Prow Robot
f7cff077d5
Merge pull request #102611 from ehashman/test-order
...
kubelet: Fix test order in verifyContainerStatuses
2021-06-08 00:29:11 -07:00
Kubernetes Prow Robot
db34c5a869
Merge pull request #102471 from wzshiming/clean/cap
...
Pre-allocated memory
2021-06-07 19:55:12 -07:00
Kubernetes Prow Robot
bd0196e8ba
Merge pull request #102568 from ehashman/init-container-coverage
...
Add unit test coverage for init container phases
2021-06-07 09:46:55 -07:00
Elana Hashman
cc2e9394be
kubelet: Fix test order in verifyContainerStatuses
...
Per https://pkg.go.dev/github.com/stretchr/testify/assert#Equal
expected goes before actual.
2021-06-04 16:04:10 -07:00
Shihao Xia
a2a4b50bc1
fixed deadlock
2021-06-03 18:03:17 -04:00
Kubernetes Prow Robot
9f7c9c322f
Merge pull request #101738 from matthyx/deflake-startupprobe
...
fix manual trigger of readinessProbe on startupProbe success
2021-06-03 14:34:42 -07:00
Elana Hashman
dfd67c7d79
Add unit test coverage for init container phases
2021-06-02 17:37:51 -07:00
Kubernetes Prow Robot
4eda493658
Merge pull request #101959 from lunhuijie/run-test5
...
Add test cases to the LoadClientConfig function
2021-06-02 13:42:55 -07:00
Kubernetes Prow Robot
4d50f2ace0
Merge pull request #101633 from llhuii/kubelet/remove-redundant-code
...
kubelet_pods.go: clean makeEnvironmentVariables
2021-06-02 13:42:43 -07:00
刁浩 10284789
ce08fd5976
Add test cases to the LoadClientConfig function
...
Signed-off-by: 刁浩 10284789 <diao.hao@zte.com.cn >
2021-06-02 15:22:00 +00:00
Kubernetes Prow Robot
1795a98eeb
Merge pull request #102221 from kikimo/add-hint-to-fake-topology-manager
...
Add hint to fake topology manager.
2021-06-02 03:40:05 -07:00
kikimo
86d68effc2
clean code
2021-06-02 09:07:53 +08:00
Kubernetes Prow Robot
38b94683c9
Merge pull request #101559 from njuptlzf/fsstore_test
...
Clean up tempDir after fsstore_test.go is executed
2021-06-01 16:02:07 -07:00
Kubernetes Prow Robot
7c7a0865cd
Merge pull request #102218 from kolyshkin/cgroup-cleanups
...
pkg/kubelet/cm: cgroup-related cleanups
2021-06-01 13:45:51 -07:00
Kubernetes Prow Robot
e5b54d0769
Merge pull request #102232 from MadhavJivrajani/mirror-client-log-line-fix
...
Change log line to print actual pod uid and not address of the pod uid
2021-06-01 10:51:52 -07:00
kikimo
9d2135f703
reuse fake topology manager
2021-06-02 01:35:00 +08:00
kikimo
8b3162d67b
clean code
2021-06-02 01:17:04 +08:00