# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
AddEnvVar adds the given EnvVar to the given Container if not present.
AddVolume adds the given Volume to the given PodSpec if not present.
AddVolumeMount adds the given VolumeMount to the given Container if not present.
ByCreationTimestamp returns a comparison function for sorting by creation timestamp.
ByName returns a comparison function for sorting by name.
ClientCertificateFromRESTConfig returns the client certificate used inside a REST config.
CurrentReplicaCountForDeployment returns the current replicaCount for the given deployment.
DeleteObject deletes a Kubernetes object.
DeleteObjects deletes a list of Kubernetes objects.
DeleteObjectsFromListConditionally takes a Kubernetes List object.
DeleteSecretByReference deletes the secret referenced by the given secret reference.
DeleteStalePods deletes stale pods.
DNSNamesForService returns the possible DNS names for a service with the given name and namespace.
FeatureGatesToCommandLineParameter transforms feature gates given as string/bool map to a command line parameter that is understood by Kubernetes components.
FetchEventMessages gets events for the given object of the given `eventType` and returns them as a formatted output.
FQDNForService returns the fully qualified domain name of a service with the given name and namespace.
GetAdmissionPluginsForVersion returns the set of default admission plugins for the given Kubernetes version.
GetContainerResourcesInStatefulSet returns the containers resources in StatefulSet.
GetDeploymentForPod returns the deployment the pod belongs to by traversing its metadata.
GetLoadBalancerIngress takes a context, a client, a service object.
GetManagedSeedByName tries to read a ManagedSeed in the garden namespace.
GetManagedSeedWithReader gets the ManagedSeed resource for the given shoot namespace and name, by searching for all ManagedSeeds in the shoot namespace that have spec.shoot.name set to the shoot name.
GetNodeSelectorRequirementForZones returns a node selector requirement to ensure all pods are scheduled only on nodes in the provided zones.
GetReplicaCount returns the replica count based on the criteria, failure tolerance type, and component type.
GetSecretByReference returns the secret referenced by the given secret reference.
GetSecretMetadataByReference returns the secret referenced by the given secret reference.
GetTopologySpreadConstraints adds topology spread constraints based on the passed `failureToleranceType`.
HasEnvVar checks if the given container has an EnvVar with the given name.
HasMetaDataAnnotation checks if the passed meta object has the given key, value set in the annotations section.
IsNodeLabelAllowedForKubelet determines whether kubelet is allowed by the NodeRestriction admission plugin to set a label on its own Node object with the given key.
LookupObject retrieves an obj for the given object key dealing with potential stale cache that still does not contain the obj.
MakeUnique takes either a *corev1.ConfigMap or a *corev1.Secret object and makes it immutable, i.e., it sets .immutable=true, computes a checksum based on .data, and appends the first 8 characters of the computed checksum to the name of the object.
MapStringBoolToCommandLineParameter transforms a string/bool map to a command line parameter that is understood by Kubernetes components.
MergeOwnerReferences merges the newReferences with the list of existing references.
MostRecentCompleteLogs returns the logs of the pod/container in case it is not running.
NewestObject returns the most recently created object based on the provided list object type.
NewestPodForDeployment returns the most recently created Pod object for the given deployment.
NewKubeconfig returns a new kubeconfig structure.
ObjectKeyForCreateWebhooks creates an object key for an object handled by webhooks registered for CREATE verbs.
ObjectKeyFromSecretRef returns an ObjectKey for the given SecretReference.
OwnedBy checks if the given object's owner reference contains an entry with the provided attributes.
PodManagedByDaemonSet returns 'true' if the given pod is managed by a DaemonSet, determined by the existing owner references.
ReadLeaderElectionRecord returns the leader election record for a given lock type and a namespace/name combination.
ReconcileServicePorts reconciles the existing service ports with the desired ports.
ResourcesExist checks if there is at least one object of the given objList.
SetAlwaysAllowEviction sets the UnhealthyPodEvictionPolicy field to AlwaysAllow if the kubernetes version is >= 1.26.
SetAnnotationAndUpdate sets the annotation on the given object and updates it.
SetMetaDataAnnotation sets the annotation on the given object.
SetMetaDataLabel sets the key value pair in the labels section of the given Object.
TolerationForTaint returns the corresponding toleration for the given taint.
TruncateLabelValue truncates a string at 63 characters so it's suitable for a label value.
ValidDeploymentContainerImageVersion validates compliance of a deployment container image to a minimum version.
VisitContainers calls the given visitor for all (init) containers in the given PodSpec.
VisitPodSpec calls the given visitor for the PodSpec contained in the given object.
WaitUntilCRDManifestsDestroyed takes CRD names and waits for them to be gone with a timeout of 15 seconds.
WaitUntilCRDManifestsReady takes names of CRDs and waits for them to get ready with a timeout of 15 seconds.
WaitUntilLoadBalancerIsReady waits until the given external load balancer has been created (i.e., its ingress information has been updated in the service status).
WaitUntilResourceDeleted waits until it has been deleted.
WaitUntilResourceDeletedWithDefaults deletes the given resource and then waits until it has been deleted.
WaitUntilResourcesDeleted waits until the given resources are gone.
# Variables
APIGroupControllerMap is a map for the Kubernetes API groups and the corresponding controllers for them.
TLSCipherSuites is a list of the wanted and acceptable cipher suits.
WaitTimeout specifies the total time to wait for CRDs to become ready or to be deleted.
# Structs
ComparableTolerations contains information to transform an ordinary 'corev1.Toleration' object to a semantically comparable object that is fully compatible with the 'comparable' Golang interface, see https://github.com/golang/go/blob/de6abd78893e91f26337eb399644b7a6bc3ea583/src/builtin/builtin.go#L102.
# Type aliases
SortBy the type of a "less" function that defines the ordering of its object arguments.