package
4.0.0+incompatible
Repository: https://github.com/openshift/kubernetes-client-go.git
Documentation: pkg.go.dev

# Packages

NOTE: DO NOT use those helper functions through client-go, the package path will be changed in the future.

# Functions

AddOrUpdateTolerationInPod tries to add a toleration to the pod's toleration list.
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.
GetAffinityFromPodAnnotations gets the json serialized affinity data from Pod.Annotations and converts it to the Affinity type in api.
GetPersistentVolumeClaimClass returns StorageClassName.
GetPersistentVolumeClass returns StorageClassName.
GetStorageNodeAffinityFromAnnotation gets the json serialized data from PersistentVolume.Annotations and converts it to the NodeAffinity type in api.
GetTaintsFromNodeAnnotations gets the json serialized taints data from Pod.Annotations and converts it to the []Taint type in api.
GetTolerationsFromPodAnnotations gets the json serialized tolerations data from Pod.Annotations and converts it to the []Toleration type in api.
HasAnnotation returns a bool if passed in annotation exists.
IsIntegerResourceName returns true if the resource is measured in integer values.
IsOpaqueIntResourceName returns true if the resource name has the opaque integer resource prefix.
IsResourceQuotaScopeValidForResource returns true if the resource applies to the specified scope.
this function aims to check if the service's cluster IP is requested or not.
this function aims to check if the service's ClusterIP is set or not the objective is not to perform validation here.
IsStandardContainerResourceName returns true if the container can make a resource request for the specified resource.
No description provided by the author
IsStandardLimitRangeType returns true if the type is Pod or Container.
IsStandardQuotaResourceName returns true if the resource is known to the quota tracking system.
IsStandardResourceName returns true if the resource is known to the system.
IsStandardResourceQuotaScope returns true if the scope is a standard value.
TODO: make method on LoadBalancerStatus?.
TODO: make method on LoadBalancerStatus?.
NodeSelectorRequirementsAsSelector converts the []NodeSelectorRequirement api type into a struct that implements labels.Selector.
NonConvertibleFields iterates over the provided map and filters out all but any keys with the "non-convertible.kubernetes.io" prefix.
OpaqueIntResourceName returns a ResourceName with the canonical opaque integer prefix prepended.
PersistentVolumeClaimHasClass returns true if given claim has set StorageClassName field.
PodAnnotationsFromSysctls creates an annotation value for a slice of Sysctls.
SetMetaDataAnnotation sets the annotation and value.
Converts NodeAffinity type to Alpha annotation for use in PersistentVolumes TODO: update when storage node affinity graduates to beta.
SysctlsFromPodAnnotation parses an annotation value into a slice of Sysctls.
SysctlsFromPodAnnotations parses the sysctl annotations into a slice of safe Sysctls and a slice of unsafe Sysctls.
TaintToleratedByTolerations checks if taint is tolerated by any of the tolerations.
TolerationToleratesTaint checks if the toleration tolerates the taint.

# Variables

Semantic can do semantic deep equality checks for api objects.