Mark Rossetti
0c6088861b
Fixing issue in generatePodSandboxWindowsConfig for hostProcess containers by
...
where pod sandbox won't have HostProcess bit set if pod does not have a
security context but containers specify HostProcess.
Signed-off-by: Mark Rossetti <marosset@microsoft.com >
2022-06-02 12:10:10 -07:00
Jonathan Dobson
daa181d92e
kubelet: fix volume reconstruction for CSI ephemeral volumes
...
This resolves a couple of issues for CSI volume reconstruction.
1. IsLikelyNotMountPoint is known not to work for bind mounts and was
causing problems for subpaths and hostpath volumes.
2. Inline volumes were failing reconstruction due to calling
GetVolumeName, which only works when there is a PV spec.
2022-06-01 14:22:57 -06:00
Kubernetes Prow Robot
737f706b1c
Merge pull request #108803 from SergeyKanzhelev/httpProbeMinorCleanup
...
remove TODOs from http package and prober
2022-06-01 12:03:28 -07:00
Thearas
2457fbc643
docs: add ephemeral-storage to SystemReserved/KubeReserved comment
2022-06-01 16:19:26 +08:00
Davanum Srinivas
50bea1dad8
Move from k8s.gcr.io to registry.k8s.io
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2022-05-31 10:16:53 -04:00
Mikko Ylinen
2c8bfad910
grpc: move to use grpc.WithTransportCredentials()
...
v1.43.0 marked grpc.WithInsecure() deprecated so this commit moves to use
what is the recommended replacement:
grpc.WithTransportCredentials(insecure.NewCredentials())
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com >
2022-05-30 21:41:47 +03:00
Antonio Ojea
d16d23e0c7
add pod util to verify pod is terminal
...
pods on phase succeeded or failed are guaranteed to have all containers
stopped and to not ever regress
2022-05-27 06:42:39 +02:00
Kubernetes Prow Robot
e9f1c9cc7c
Merge pull request #110138 from wojtek-t/fix_leaking_goroutines_in_kubelet_test
...
Fix leaking goroutines in kubelet integration test
2022-05-23 04:06:01 -07:00
Wojciech Tyczyński
0d41d2921e
Fix leaking goroutines in kubelet integration test
2022-05-23 11:50:29 +02:00
Kubernetes Prow Robot
6dc592e347
Merge pull request #108787 from 249043822/cadvisor_stat_provider_filter_0
...
filter out terminated containers in cadvisor_stats_provider
2022-05-20 16:50:00 -07:00
Gunju Kim
563c99599f
Deflake TestStaticPodExclusion
2022-05-16 23:30:57 +09:00
Kubernetes Prow Robot
3441850891
Merge pull request #109987 from gnufied/fix-ephemeral-volume-expansion
...
Fix resizing of ephemeral volumes
2022-05-13 14:24:06 -07:00
Kubernetes Prow Robot
f7857f0846
Merge pull request #109830 from AllenZMC/fix_test
...
fix defer in loop, maybe resource leak
2022-05-13 08:51:49 -07:00
Kubernetes Prow Robot
1be1ec4aa3
Merge pull request #109970 from stevekuznetsov/skuznets/isolate-versioner
...
storage: move the APIObjectVersioner definition to storage
2022-05-12 12:32:44 -07:00
Kubernetes Prow Robot
3688442c75
Merge pull request #108115 from haircommander/cadvisor-pod-stats
...
kubelet/stats: update cadvisor stats provider with new log location
2022-05-12 08:09:13 -07:00
Hemant Kumar
4bf500eb92
Add test for checking ephemeral volume expansion
2022-05-11 16:18:10 -04:00
Hemant Kumar
a5c961f4a8
Fix resizing of ephemeral volumes
2022-05-11 15:06:42 -04:00
Steve Kuznetsov
3939f3003e
storage: move the APIObjectVersioner definition to storage
...
The means by which we extract and parse the version of an API object is
not specific to etcd3. In order to allow for a generic suite of tests
against any storage.Interface imlpementation, we need this logic to live
outside of the etcd3 package, or import cycles will exist.
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com >
2022-05-11 08:19:32 -07:00
Kubernetes Prow Robot
d9780798ba
Merge pull request #109849 from pacoxu/fix-data-race
...
fix data race in device manager plugin hander
2022-05-09 06:33:20 -07:00
Paco Xu
0ec7e38ef0
fix data race in device manager plugin hander
2022-05-07 11:18:23 +08:00
Kubernetes Prow Robot
4bec6b34ef
Merge pull request #107122 from songlh/fixing-5
...
fixing the panic in TestVersion
2022-05-05 16:28:41 -07:00
AllenZMC
bedd0839a1
Optimize test cases for kubelet
2022-05-05 23:07:09 +08:00
Jordan Liggitt
410ac59c0d
Remove PodSecurityPolicy admission plugin
2022-05-04 16:00:56 -04:00
Kubernetes Prow Robot
d9fa563550
Merge pull request #109441 from Miciah/kubelet-parseResolvConf-handle-search-dot
...
kubelet: parseResolvConf: Handle "search ."
2022-05-04 01:27:42 -07:00
Kubernetes Prow Robot
dbf2f1d833
Merge pull request #109103 from Dingshujie/fix_memory_leak
...
cpu/memory manager containerMap memory leak
2022-05-03 18:24:43 -07:00
Kubernetes Prow Robot
1b2de5cf01
Merge pull request #109042 from bjorand/network_panic_kubelet
...
kubelet: fix panic triggered when playing with a wip CRI
2022-05-03 18:24:20 -07:00
Kubernetes Prow Robot
05e3919b45
Merge pull request #109016 from klueska/refactor-devicemanager
...
Refactor all device-plugin logic into separate 'plugin' package under the devicemanager
2022-05-03 18:24:12 -07:00
Kubernetes Prow Robot
be9ef536cd
Merge pull request #105995 from NoicFank/feature-add-error-handle
...
Add error handling for Write() function
2022-05-03 17:18:07 -07:00
Kubernetes Prow Robot
9a160ac5fb
Merge pull request #101882 from jackfrancis/kubelet-initialnode-getcapacity
...
kubelet: more resilient node allocatable ephemeral-storage data getter
2022-05-03 17:17:24 -07:00
Kubernetes Prow Robot
ea7c57b2ee
Merge pull request #99685 from yangjunmyfm192085/run-test24
...
Fix misspelling of success.
2022-05-03 17:16:47 -07:00
STRRL
297b6c2995
test: another test case for TestIsCgroupPod
...
contains reserved word pod
Signed-off-by: STRRL <im@strrl.dev >
2022-05-03 00:01:09 +08:00
STRRL
28b9216b42
test: testcases for pod container manager GetPodContainerName
...
Signed-off-by: STRRL <im@strrl.dev >
2022-05-02 23:51:27 +08:00
Kevin Klues
57f8b31b42
Update tests to accommodate devicemanager refactoring
...
Signed-off-by: Kevin Klues <kklues@nvidia.com >
2022-04-29 10:52:37 +00:00
Kevin Klues
f6eaa25b71
Move DevicePluginStub implementation into new plugin package
...
Signed-off-by: Kevin Klues <kklues@nvidia.com >
2022-04-29 10:52:37 +00:00
Kevin Klues
db88676c20
Refactor all device plugin logic into separate 'plugin' package
...
This is the first step towards being able to support a new plugin API version
in parallel with the existing one.
Signed-off-by: Kevin Klues <kklues@nvidia.com >
2022-04-29 10:52:37 +00:00
Sergey Kanzhelev
1df526b3f7
remove TODOs from http package and prober
2022-04-28 16:51:11 +00:00
yxxhero
4fac7486d4
remove ioutil in kubelet
...
Signed-off-by: yxxhero <aiopsclub@163.com >
2022-04-27 21:08:42 +08:00
zhangxiaoyang
0b1fb2b394
Add test case for getPodVolumeSubpathsDir
2022-04-27 16:33:28 +08:00
Miciah Masters
5832b84200
kubelet: parseResolvConf: Handle "search ."
...
When parsing a resolv.conf file that has "search .", parseResolvConf should
accept the "." entry verbatim. Before this commit, parseResolvConf
unconditionally trimmed the "." suffix, which in the case of "." resulted
in a "" entry (that is, the empty string). This empty entry could lead
parseResolvConf to produce a resolv.conf file with "search ". Resolvers
could fail to parse such a resolv.conf file from parseResolvConf, thus
breaking DNS resolution in pods. After this commit, parseResolvConf
accepts a resolv.conf file with "search ." and passes the "." entry through
verbatim to produce a valid resolv.conf file. The "." suffix is still
trimmed for any entry that does not solely comprise ".".
Follow-up to commit a215a88d91 .
* pkg/kubelet/network/dns/dns.go (parseResolvConf): Handle a "." entry in
the search path by copying it verbatim.
* pkg/kubelet/network/dns/dns_test.go (TestParseResolvConf): Add a test
case for "search .".
2022-04-12 15:39:31 -04:00
cncal
ab945d21ad
reorder the import packages
2022-04-09 11:30:26 +08:00
cncal
fa1d1edbef
use require to simplify testcases
2022-04-09 11:30:26 +08:00
cncal
a64b9cee21
fix test for CheckpointStateRestore
2022-04-09 11:30:26 +08:00
XuzhengChang
6266554b34
refactor: pleg/getContainersFromPods
2022-04-06 14:12:52 +08:00
Hemant Kumar
5da524d973
Fix error for inline migrated volumes
...
Inline migrated volumes report a PV, even though they are not backed
by PV.
2022-04-04 13:14:29 -04:00
Kubernetes Prow Robot
e04a4e1c5b
Merge pull request #105599 from jonyhy96/fix-pod-workers-test
...
fix: pod workers test
2022-04-02 06:50:09 -07:00
David Ashpole
120da3bb9b
fix copylock vet errors in component-base metrics
2022-03-31 15:07:11 +00:00
Maciej Wyrzuc
1108bed763
Revert "Field status.hostIPs added for Pod ( #101566 )"
...
This reverts commit 61b3c028ba .
2022-03-31 12:39:45 +00:00
DingShujie
fb3636da40
cpu manager policy set to none, no one remove container id from container map, lead memory leak
2022-03-30 23:25:05 +08:00
Jack Francis
ab14cba2cf
kubelet: more resilient node allocatable ephemeral-storage data getter
2022-03-29 18:13:57 -07:00
Kubernetes Prow Robot
b0254c8a0b
Merge pull request #108758 from fengzixu/improvement-volume-health
...
re-push "add volume kubelet_volume_stats_health_abnormal to kubelet #105585 "
2022-03-29 17:35:34 -07:00