package
1.13.0-alpha.1
Repository: https://github.com/clickyotomy/kubernetes.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AddOrUpdateTolerationInPod tries to add a toleration to the pod's toleration list.
AddOrUpdateTolerationInPodSpec tries to add a toleration to the toleration list in PodSpec.
AddToNodeAddresses appends the NodeAddresses to the passed-by-pointer slice, only if they do not already exist.
GetAccessModesAsString returns a string representation of an array of access modes.
GetAccessModesAsString returns an array of AccessModes from a string created by GetAccessModesAsString.
No description provided by the author
Returns true and list of Tolerations matching all Taints if all are tolerated, or false otherwise.
GetPersistentVolumeClaimClass returns StorageClassName.
GetPersistentVolumeClass returns StorageClassName.
HugePageResourceName returns a ResourceName with the canonical hugepage prefix prepended for the specified page size.
HugePageSizeFromResourceName returns the page size for the specified huge page resource name.
No description provided by the author
IsExtendedResourceName returns true if: 1.
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.
Extended and Hugepages resources.
this function aims to check if the service's ClusterIP is set or not the objective is not to perform validation here.
TODO: make method on LoadBalancerStatus?.
TODO: make method on LoadBalancerStatus?.
MatchNodeSelectorTerms checks whether the node labels and fields match node selector terms in ORed; nil or empty term matches no objects.
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.
NodeSelectorRequirementsAsFieldSelector converts the []NodeSelectorRequirement core type into a struct that implements fields.Selector.
NodeSelectorRequirementsAsSelector converts the []NodeSelectorRequirement api type into a struct that implements labels.Selector.
ScopedResourceSelectorRequirementsAsSelector converts the ScopedResourceSelectorRequirement api type into a struct that implements labels.Selector.
TolerationsTolerateTaint checks if taint is tolerated by any of the tolerations.
TolerationsTolerateTaintsWithFilter checks if given tolerations tolerates all the taints that apply to the filter in given taint list.
TopologySelectorRequirementsAsSelector converts the []TopologySelectorLabelRequirement api type into a struct that implements labels.Selector.