package
4.1.4+incompatible
Repository: https://github.com/minio/directpv.git
Documentation: pkg.go.dev

# Functions

BoolToConditionStatus converts boolean value to condition status.
CRDClient gets kubernetes CRD client.
DiscoveryClient gets kubernetes discovery client.
FakeInit initializes fake clients.
GetClient returns kubernetes client.
GetKubeConfig gets kubernetes configuration from command line argument, ~/.kube/config or in-cluster configuration.
Init initializes various client interfaces.
IsCondition checks whether type/status/reason/message in conditions or not.
KubeClient gets kubernetes client.
KubeConfig gets kubernetes client configuration.
MatchTrueConditions matches whether types and status list are in a true conditions or not.
NewClient initializes the client with the provided kube config.
NewFakeDiscovery creates a fake discovery interface Note: To be used for writing test cases only.
NewHostPathVolume - creates volume for given name and host path.
NewVolumeMount - creates volume mount for given name, path, mount propagation and read only flag.
ParseNodeSelector parses the provided node selector values.
ParseTolerations parses the provided toleration values.
SanitizeResourceName - Sanitize given name to a valid kubernetes name format.
SetKubeInterface sets the given kube interface Note: To be used for writing test cases only.
UpdateCondition updates type/status/reason/message of conditions matched by condition type.

# Constants

MaxThreadCount is maximum thread count.

# Structs

Client represents the kubernetes client set.
FakeDiscovery creates fake discovery.