package
1.8.0-alpha.1
Repository: https://github.com/bentheelder/kubernetes.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
Tries to add a taint to annotations list.
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.
DeleteTaint removes all the the taints that have the same key and effect to given taintToDelete.
DeleteTaintsByKey removes all the taints that have the same key to given taintKey.
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.
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.
GetStorageNodeAffinityFromAnnotation gets the json serialized data from PersistentVolume.Annotations and converts it to the NodeAffinity type in api.
IsOpaqueIntResourceName returns true if the resource name has the opaque integer resource prefix.
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.
TODO: make method on LoadBalancerStatus?.
TODO: make method on LoadBalancerStatus?.
NodeSelectorRequirementsAsSelector converts the []NodeSelectorRequirement api type into a struct that implements labels.Selector.
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.
Tries to remove a taint from annotations list.
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.
No description provided by the author
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.