kubernetes/pkg/kubelet
Claudiu Belu 6f2eeed2e8 unittests: Fixes unit tests for Windows
Currently, there are some unit tests that are failing on Windows due to
various reasons:

- config options not supported on Windows.
- files not closed, which means that they cannot be removed / renamed.
- paths not properly joined (filepath.Join should be used).
- time.Now() is not as precise on Windows, which means that 2
  consecutive calls may return the same timestamp.
- different error messages on Windows.
- files have \r\n line endings on Windows.
- /tmp directory being used, which might not exist on Windows. Instead,
  the OS-specific Temp directory should be used.
- the default value for Kubelet's EvictionHard field was containing
  OS-specific fields. This is now moved, the field is now set during
  Kubelet's initialization, after the config file is read.
2022-10-25 23:46:56 +03:00
..
apis unittests: Fixes unit tests for Windows 2022-10-25 23:46:56 +03:00
cadvisor Promote Local storage capacity isolation feature to GA 2022-08-02 23:45:48 -07:00
certificate unittests: Fixes unit tests for Windows 2022-10-25 23:46:56 +03:00
checkpointmanager remove fakefs to drop spf13/afero dependency 2021-06-24 09:51:34 -04:00
client Merge pull request #96004 from serathius/datapolicy-kubelet-pkg 2022-03-04 15:34:51 -08:00
cloudresource Apply suggestions from code review 2021-03-05 23:59:23 +05:30
cm unittests: Fixes unit tests for Windows 2022-10-25 23:46:56 +03:00
config Remove ioutil in kubelet and its tests 2022-07-30 12:35:26 +09:00
configmap Generate and format files 2022-07-26 13:14:05 -04:00
container Merge pull request #111221 from inosato/remove-ioutil-from-kubelet 2022-09-17 21:56:28 -07:00
cri Handle UpdateContainerResources for Windows in v1alpha2 2022-08-02 15:31:00 -07:00
envvars hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
events kubelet: add shutdown events 2021-06-23 16:44:19 -05:00
eviction unittests: Fixes unit tests for Windows 2022-10-25 23:46:56 +03:00
images unittests: Fixes unit tests for Windows 2022-10-25 23:46:56 +03:00
kubeletconfig unittests: Fixes unit tests for Windows 2022-10-25 23:46:56 +03:00
kuberuntime unittests: Fixes unit tests for Windows 2022-10-25 23:46:56 +03:00
leaky hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
lifecycle Remove ioutil in kubelet and its tests 2022-07-30 12:35:26 +09:00
logs unittests: Fixes unit tests for Windows 2022-10-25 23:46:56 +03:00
metrics When metrics are counted, discard the wrong container startup time metrics 2022-07-15 08:56:12 +08:00
network Merge pull request #111221 from inosato/remove-ioutil-from-kubelet 2022-09-17 21:56:28 -07:00
nodeshutdown Remove ioutil in kubelet and its tests 2022-07-30 12:35:26 +09:00
nodestatus Promote Local storage capacity isolation feature to GA 2022-08-02 23:45:48 -07:00
oom generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
pleg refactor: pleg/getContainersFromPods 2022-04-06 14:12:52 +08:00
pluginmanager Remove ioutil in kubelet and its tests 2022-07-30 12:35:26 +09:00
pod Remove EphemeralContainers feature-gate checks 2022-07-26 02:55:30 +02:00
preemption migrated preemption.go, stateful.go, resource_allocation.go to structured logging 2021-11-08 22:52:47 +05:30
prober Merge pull request #104484 from jackfrancis/prober-duration-metrics 2022-07-29 13:17:11 -07:00
qos Only system-node-critical pods should be OOM Killed last 2021-03-03 16:34:27 -05:00
runtimeclass Generate and format files 2022-07-26 13:14:05 -04:00
secret Generate and format files 2022-07-26 13:14:05 -04:00
server unittests: Fixes unit tests for Windows 2022-10-25 23:46:56 +03:00
stats Merge pull request #111221 from inosato/remove-ioutil-from-kubelet 2022-09-17 21:56:28 -07:00
status unittests: Fixes unit tests for Windows 2022-10-25 23:46:56 +03:00
sysctl Generate and format files 2022-07-26 13:14:05 -04:00
token Merge pull request #99685 from yangjunmyfm192085/run-test24 2022-05-03 17:16:47 -07:00
types Introduce PodHasNetwork condition for pods 2022-08-01 09:51:43 -07:00
util Merge pull request #111221 from inosato/remove-ioutil-from-kubelet 2022-09-17 21:56:28 -07:00
volumemanager Add unit tests for DesiredStateOfWorldPopulator 2022-08-04 10:51:59 +02:00
winstats Merge pull request #111418 from muyangren2/winstats_assert 2022-07-29 19:29:29 -07:00
active_deadline_test.go Migrate to k8s.io/utils/clock in pkg/kubelet 2021-09-10 12:20:09 +02:00
active_deadline.go Migrate to k8s.io/utils/clock in pkg/kubelet 2021-09-10 12:20:09 +02:00
doc.go
errors.go
kubelet_getters_test.go Add test case for getPodVolumeSubpathsDir 2022-04-27 16:33:28 +08:00
kubelet_getters.go kubelet: add checkpoint/restore infrastructure 2022-07-14 10:27:40 +00:00
kubelet_network_linux.go Add IPTablesOwnershipCleanup feature to disable kubelet iptables setup 2022-07-27 13:33:09 -04:00
kubelet_network_others.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
kubelet_network_test.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
kubelet_network.go Move iptables consts to kubelet_network_linux.go. 2022-03-26 11:22:51 -04:00
kubelet_node_status_others.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
kubelet_node_status_test.go Promote Local storage capacity isolation feature to GA 2022-08-02 23:45:48 -07:00
kubelet_node_status_windows.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
kubelet_node_status.go Promote Local storage capacity isolation feature to GA 2022-08-02 23:45:48 -07: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 Merge pull request #111221 from inosato/remove-ioutil-from-kubelet 2022-09-17 21:56:28 -07:00
kubelet_pods_windows_test.go unittests: Fixes unit tests for Windows 2022-10-25 23:46:56 +03:00
kubelet_pods.go Merge pull request #111221 from inosato/remove-ioutil-from-kubelet 2022-09-17 21:56:28 -07:00
kubelet_resources_test.go
kubelet_resources.go Migrate pkg/kubelet/kubeletconfig to Structured Logging 2021-03-15 15:42:34 -07:00
kubelet_test.go Merge pull request #111221 from inosato/remove-ioutil-from-kubelet 2022-09-17 21:56:28 -07: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 Upgrade CSIMigrationGCE feature gate to GA 2022-08-02 09:14:27 -07:00
kubelet_volumes.go remove ioutil in kubelet 2022-04-27 21:08:42 +08:00
kubelet.go Cleanup: Remove unused lastContainerStartedTime time.Cache lru 2022-08-19 14:57:29 +02:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
pod_container_deletor_test.go
pod_container_deletor.go Structured Logging migration: modify volume and container part logs of kubelet. 2021-03-17 08:59:03 +08:00
pod_workers_test.go Merge pull request #110071 from gjkim42/deflake-TestStaticPodExclusion 2022-07-29 13:17:43 -07:00
pod_workers.go Generate and format files 2022-07-26 13:14:05 -04:00
reason_cache_test.go
reason_cache.go Generate and format files 2022-07-26 13:14:05 -04:00
runonce_test.go Promote Local storage capacity isolation feature to GA 2022-08-02 23:45:48 -07:00
runonce.go kubelet: Delay writing a terminal phase until the pod is terminated 2022-03-16 13:15:00 -04:00
runtime.go
userns_manager_test.go kubelet: drop bitArray implementation 2022-08-19 16:55:15 +02:00
userns_manager.go kubelet: drop bitArray implementation 2022-08-19 16:55:15 +02:00
volume_host.go kubelet: add GetHostIDsForPod() 2022-08-03 19:53:22 +02:00