package
0.0.0-20170824060325-cf23810f2098
Repository: https://github.com/sttts/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.
GetStorageNodeAffinityFromAnnotation gets the json serialized data from PersistentVolume.Annotations and converts it to the NodeAffinity type in api.
IsDefaultNamespaceResource returns true if the resource name is in the *kubernetes.io/ namespace.
IsExtendedResourceName returns true if the resource name is not in the default namespace, or it has the opaque integer resource prefix.
IsOpaqueIntResourceName returns true if the resource name has the opaque integer resource prefix.
IsOvercommitAllowed returns true if the resource is in the default namespace and not blacklisted.
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.
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.
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.