utils
utils copied to clipboard
Non-Kubernetes-specific utility libraries which are consumed by multiple projects.
These need to move out of k8s in order to cut kubectl out: - [x] k8s.io/kubernetes/pkg/util/exec (PR: #5) - [ ] k8s.io/kubernetes/pkg/util/interrupt These should probably live in this repo, but...
**What type of PR is this?** /kind feature **What this PR does / why we need it**: IsNilPtr checks if the provided object is a nil pointer. This is specially...
**What type of PR is this?** /kind feature **What this PR does / why we need it**: This is a part of effort to fix https://github.com/kubernetes/kubernetes/issues/125581 WithDeadlineTimer interface extends Clock...
**What happened**: Consider the following code ([playground](https://go.dev/play/p/Cqur9KwSLVu)): ```go package main import ( "time" "k8s.io/utils/clock" clocktesting "k8s.io/utils/clock/testing" ) func main() { clk := clocktesting.NewFakeClock(time.Now()) go func(clk clock.Clock) { clk.Sleep(time.Second * 2)...
**What type of PR is this?** /kind feature **What this PR does / why we need it**: This PR adds a new type, `buffer.Ring` which is a `buffer.RingGrowing` with a...
**Is your feature request related to a problem?/Why is this needed** the xfs has a bug when kernel os below the 5.10 [https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/considerati[…]ly_file-systems-and-storage_considerations-in-adopting-rhel-9](https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/considerations_in_adopting_rhel_9/assembly_file-systems-and-storage_considerations-in-adopting-rhel-9#ref_file-systems_assembly_file-systems-and-storage) High level of xfs default enable these...