kubernetes/pkg/kubelet/eviction
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
..
api Merge pull request #97493 from Pingan2017/allocatemem-1224 2021-03-07 20:09:44 -08:00
defaults_linux.go unittests: Fixes unit tests for Windows 2022-10-25 23:46:56 +03:00
defaults_others.go unittests: Fixes unit tests for Windows 2022-10-25 23:46:56 +03:00
doc.go
eviction_manager_test.go Merge pull request #104933 from vikramcse/automate_mockery 2021-09-30 18:33:21 -07:00
eviction_manager.go Promote Local storage capacity isolation feature to GA 2022-08-02 23:45:48 -07:00
helpers_test.go Promote Local storage capacity isolation feature to GA 2022-08-02 23:45:48 -07:00
helpers.go Generate and format files 2022-07-26 13:14:05 -04:00
memory_threshold_notifier_test.go eviction: Deflake TestStart 2022-02-08 17:03:44 +01:00
memory_threshold_notifier.go Structured Logging migration: modify eviction part logs of kubelet. 2021-02-21 08:36:14 +08:00
mock_threshold_notifier_test.go Regen mocks using go 1.18 2022-03-23 10:19:38 -07:00
threshold_notifier_linux.go Merge pull request #96828 from panjf2000/opt-epoll-eventfd 2022-03-01 13:59:54 -08:00
threshold_notifier_unsupported.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
types.go mockery to mockgen conversion 2021-09-25 16:15:08 +00:00