package util
import "k8s.io/kubernetes/pkg/kubelet/util"
Package util holds utility functions.
Index ¶
- func CreateListener(endpoint string) (net.Listener, error)
- func FromApiserverCache(opts *metav1.GetOptions)
- func GetAddressAndDialer(endpoint string) (string, func(ctx context.Context, addr string) (net.Conn, error), error)
- func GetBootTime() (time.Time, error)
- func GetNodenameForKernel(hostname string, hostDomainName string, setHostnameAsFQDN *bool) (string, error)
- func LocalEndpoint(path, file string) (string, error)
- func LockAndCheckSubPath(volumePath, subPath string) ([]uintptr, error)
- func SetNodeOwnerFunc(c clientset.Interface, nodeName string) func(lease *coordinationv1.Lease) error
- func UnlockPath(fileHandles []uintptr)
Functions ¶
func CreateListener ¶
CreateListener creates a listener on the specified endpoint.
func FromApiserverCache ¶
func FromApiserverCache(opts *metav1.GetOptions)
FromApiserverCache modifies <opts> so that the GET request will be served from apiserver cache instead of from etcd.
func GetAddressAndDialer ¶
func GetAddressAndDialer(endpoint string) (string, func(ctx context.Context, addr string) (net.Conn, error), error)
GetAddressAndDialer returns the address parsed from the given endpoint and a context dialer.
func GetBootTime ¶
GetBootTime empty implementation
func GetNodenameForKernel ¶
func GetNodenameForKernel(hostname string, hostDomainName string, setHostnameAsFQDN *bool) (string, error)
GetNodenameForKernel gets hostname value to set in the hostname field (the nodename field of struct utsname) of the pod.
func LocalEndpoint ¶
LocalEndpoint empty implementation
func LockAndCheckSubPath ¶
LockAndCheckSubPath empty implementation
func SetNodeOwnerFunc ¶
func SetNodeOwnerFunc(c clientset.Interface, nodeName string) func(lease *coordinationv1.Lease) error
SetNodeOwnerFunc helps construct a newLeasePostProcessFunc which sets a node OwnerReference to the given lease object
func UnlockPath ¶
func UnlockPath(fileHandles []uintptr)
UnlockPath empty implementation
Source Files ¶
doc.go nodelease.go util.go util_unsupported.go
Directories ¶
Path | Synopsis |
---|---|
pkg/kubelet/util/cache | |
pkg/kubelet/util/format | |
pkg/kubelet/util/ioutils | |
pkg/kubelet/util/manager | |
pkg/kubelet/util/queue | |
pkg/kubelet/util/sliceutils | |
pkg/kubelet/util/store | Package store hosts a Store interface and its implementations. |
- Version
- v1.23.14
- Published
- Nov 9, 2022
- Platform
- js/wasm
- Imports
- 9 packages
- Last checked
- 4 minutes ago –
Tools for package owners.