kubernetes/pkg/kubelet
Claudiu Belu 11f1d24165 unit tests: Fixes kubelet util unit tests for Windows
The unit tests are currently failing due to missing imports. This commit
addresses this issue.

Additionally, TestIsUnixDomainSocket expects an error to be raised by
IsUnixDomainSocket if the file does not exist, but on Windows we do not
raise such error.

This issue is addressed by Stat-ing the file, and checking
if the file exists or not. We're also handling the case in which the given
filePath is a named pipe, returning false immediately, instead of trying to
dial it as a Unix domain socket.
2023-05-10 11:25:49 +00:00
..
apis Clean up brace whitespace in **/validation_test.go 2023-05-02 00:48:42 -07:00
cadvisor revert azuredisk test removal change 2023-03-11 07:10:05 +00:00
certificate Replace uses of diff.ObjectDiff with cmp.Diff 2023-04-12 08:46:12 -07:00
checkpointmanager
client kubelet/client: collapse transport wiring onto standard approach 2023-02-06 20:34:49 -05:00
cloudresource Replace uses of ObjectReflectDiff with cmp.Diff 2023-04-12 08:48:03 -07:00
cm Merge pull request #117105 from yoongon/feature/assert-order 2023-05-01 22:34:22 -07:00
config pod-infra-container-image: update comments as it will be removed in couple more releases 2023-03-09 11:14:32 +08:00
configmap Generate and format files 2022-07-26 13:14:05 -04:00
container deprecate ExperimentalHostUserNamespaceDefaulting 2023-03-17 22:07:25 +00:00
cri Fix image pull error type ErrRegistryUnavailable 2023-04-26 11:02:47 +02:00
envvars
events
eviction Replace uses of diff.ObjectDiff with cmp.Diff 2023-04-12 08:46:12 -07:00
images Add support for CRI ErrSignatureValidationFailed 2023-05-04 08:34:11 +02:00
kubeletconfig replace ioutil with os, update doc 2023-04-13 09:02:46 +08:00
kuberuntime Merge pull request #117538 from TommyStarK/fix-flaky-test/TestGeneratePodSandboxConfig 2023-05-06 07:23:34 -07:00
leaky
lifecycle kubelet: replace intstr.FromInt with intstr.FromInt32 2023-05-01 09:17:35 +02:00
logs Second attempt: Plumb context to Kubelet CRI calls (#113591) 2022-11-05 06:02:13 -07:00
metrics Removing WindowsHostProcessContainers feature-gate 2023-05-01 13:30:38 -07:00
network Merge pull request #116730 from danwinship/network-owners 2023-04-11 18:19:44 -07:00
nodeshutdown dependencies: update klog v2.90.1 2023-03-01 19:03:50 +01:00
nodestatus Replace uses of diff.ObjectDiff with cmp.Diff 2023-04-12 08:46:12 -07:00
oom linux: fix kubelet start unit test 2022-11-09 07:17:05 +08:00
pleg Fix potential mutex usage bug 2023-04-21 23:50:33 +08:00
pluginmanager Merge pull request #111634 from KunWuLuan/pluginmanager_cache_log_amend 2023-03-09 19:08:29 -08:00
pod kubelet: Replace deprecated pointer function 2023-01-08 13:44:09 +01:00
preemption feat: improve naming 2022-07-24 19:04:08 +09:00
prober Merge pull request #117198 from charles-chenzz/deprecated_function 2023-05-02 08:18:14 -07:00
qos Rename ContainerStatus.ResourcesAllocated to ContainerStatus.AllocatedResources 2023-03-10 14:49:26 +00:00
runtimeclass kubelet: Replace deprecated pointer function 2023-01-08 13:44:09 +01:00
secret Generate and format files 2022-07-26 13:14:05 -04:00
server node: re-implement Localendpoint on windows 2023-03-14 22:39:56 +01:00
stats *: Fix linter warnings 2023-02-07 13:01:41 +05:30
status Merge pull request #117198 from charles-chenzz/deprecated_function 2023-05-02 08:18:14 -07:00
sysctl Remove unnecessary if judgments 2023-04-16 23:55:31 +08:00
token Merge pull request #99685 from yangjunmyfm192085/run-test24 2022-05-03 17:16:47 -07:00
types Merge pull request #114017 from calvin0327/cleanup-containerruntime-options 2023-03-09 21:33:06 -08:00
userns kubelet: Move userns manager to its own package 2023-03-13 22:28:04 +01:00
util unit tests: Fixes kubelet util unit tests for Windows 2023-05-10 11:25:49 +00:00
volumemanager kubelet: pass context to VolumeManager.WaitFor* 2023-04-17 11:53:28 -05:00
winstats Updating perfCounterUpdatePerioud for Windows to 10 seconds 2023-03-13 12:13:24 -07:00
active_deadline_test.go Add comment for 0th case 2022-10-08 12:06:42 +03:00
active_deadline.go
doc.go
errors.go
kubelet_getters_test.go Add test case for getPodVolumeSubpathsDir 2022-04-27 16:33:28 +08:00
kubelet_getters.go Merge pull request #116482 from smarterclayton/no_mutate 2023-04-12 02:22:32 -07:00
kubelet_network_linux.go Clarify kubelet/kube-proxy iptables rule skew constraints 2023-04-13 14:05:58 -04:00
kubelet_network_others.go
kubelet_network_test.go
kubelet_network.go Second attempt: Plumb context to Kubelet CRI calls (#113591) 2022-11-05 06:02:13 -07:00
kubelet_node_status_others.go
kubelet_node_status_test.go Replace uses of diff.ObjectDiff with cmp.Diff 2023-04-12 08:46:12 -07:00
kubelet_node_status_windows.go
kubelet_node_status.go kubelet: Keep trying fast status update at startup until node is ready 2022-11-09 15:55:20 +00:00
kubelet_pods_linux_test.go Promote Local storage capacity isolation feature to GA 2022-08-02 23:45:48 -07:00
kubelet_pods_test.go Replace uses of ObjectReflectDiff with cmp.Diff 2023-04-12 08:48:03 -07:00
kubelet_pods_windows_test.go unittests: Fixes unit tests for Windows 2022-10-25 23:46:56 +03:00
kubelet_pods.go Replace diff.ObjectDiff with cmp.Equal 2023-04-12 08:45:32 -07:00
kubelet_resources_test.go
kubelet_resources.go
kubelet_server_journal_linux.go kubelet: Expose simple journald and Get-WinEvent shims on the logs endpoint 2023-03-14 08:54:36 -07:00
kubelet_server_journal_others.go kubelet: Expose simple journald and Get-WinEvent shims on the logs endpoint 2023-03-14 08:54:36 -07:00
kubelet_server_journal_test.go unittests: Fixes server journal unit test on Windows 2023-04-06 08:50:10 +00:00
kubelet_server_journal_windows.go kubelet: Expose simple journald and Get-WinEvent shims on the logs endpoint 2023-03-14 08:54:36 -07:00
kubelet_server_journal.go kubelet: Expose simple journald and Get-WinEvent shims on the logs endpoint 2023-03-14 08:54:36 -07:00
kubelet_test.go kubelet: pass context to VolumeManager.WaitFor* 2023-04-17 11:53:28 -05:00
kubelet_volumes_linux_test.go Remove ioutil in kubelet and its tests 2022-07-30 12:35:26 +09:00
kubelet_volumes_test.go kubelet: pass context to VolumeManager.WaitFor* 2023-04-17 11:53:28 -05:00
kubelet_volumes.go Add metric for failed orphan pod cleanup 2023-02-22 18:43:38 +01:00
kubelet.go kubelet: pass context to VolumeManager.WaitFor* 2023-04-17 11:53:28 -05:00
OWNERS
pod_container_deletor_test.go
pod_container_deletor.go Second attempt: Plumb context to Kubelet CRI calls (#113591) 2022-11-05 06:02:13 -07:00
pod_workers_test.go kubelet: Mark new terminal pods as non-finished in pod worker 2023-04-11 01:39:05 -07:00
pod_workers.go Merge pull request #117019 from bobbypage/gh_116925 2023-04-17 15:10:58 -07:00
reason_cache_test.go
reason_cache.go Generate and format files 2022-07-26 13:14:05 -04:00
runonce_test.go kubelet: use filepath.Clean before init, validate it in setupDataDirs 2023-03-17 15:45:39 +08:00
runonce.go kubelet: Force deleted pods can fail to move out of terminating 2023-03-08 22:03:51 -06:00
runtime.go
volume_host.go kubelet: remove GetHostIDsForPod() 2023-03-13 22:28:03 +01:00