package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev

# Packages

# Functions

AddOrUpdateTolerationInPodSpec tries to add a toleration to the toleration list in PodSpec.
GetAccessModesAsString returns a string representation of an array of access modes.
GetAccessModesFromString returns an array of AccessModes from a string created by GetAccessModesAsString.
GetMatchingTolerations returns true and list of Tolerations matching all Taints if all are tolerated, or false otherwise.
HugePageResourceName returns a ResourceName with the canonical hugepage prefix prepended for the specified page size.
HugePageSizeFromMedium returns the page size for the specified huge page medium.
HugePageSizeFromResourceName returns the page size for the specified huge page resource name.
HugePageUnitSizeFromByteSize returns hugepage size has the format.
IsAttachableVolumeResourceName returns true when the resource name is prefixed in attachable volume.
IsExtendedResourceName returns true if: 1.
IsHugePageMedium returns true if the volume medium is in 'HugePages[-size]' format.
IsHugePageResourceName returns true if the resource name has the huge page resource prefix.
IsNativeResource returns true if the resource name is in the *kubernetes.io/ namespace.
IsOvercommitAllowed returns true if the resource is in the default namespace and is not hugepages.
IsPrefixedNativeResource returns true if the resource name is in the *kubernetes.io/ namespace.
IsServiceIPSet aims to check if the service's ClusterIP is set or not the objective is not to perform validation here.
MatchTopologySelectorTerms checks whether given labels match topology selector terms in ORed; nil or empty term matches no objects; while empty term list matches all objects.
NodeSelectorRequirementKeysExistInNodeSelectorTerms checks if a NodeSelectorTerm with key is already specified in terms.
ScopedResourceSelectorRequirementsAsSelector converts the ScopedResourceSelectorRequirement api type into a struct that implements labels.Selector.
TopologySelectorRequirementsAsSelector converts the []TopologySelectorLabelRequirement api type into a struct that implements labels.Selector.