Documentation ¶
Index ¶
- Constants
- Variables
- func CheckAPIServerAvailability(condition gardencorev1beta1.Condition, restClient rest.Interface, ...) gardencorev1beta1.Condition
- func CheckBackupBucket(obj *gardencorev1beta1.BackupBucket) error
- func CheckDaemonSet(daemonSet *appsv1.DaemonSet) error
- func CheckDeployment(deployment *appsv1.Deployment) error
- func CheckExtensionObject(obj extensionsv1alpha1.Object) error
- func CheckNode(node *corev1.Node) error
- func CheckSeed(seed *gardencorev1beta1.Seed, identity *gardencorev1beta1.Gardener) error
- func CheckStatefulSet(statefulSet *appsv1.StatefulSet) error
- func GetPodCondition(status *corev1.PodStatus, conditionType corev1.PodConditionType) (int, *corev1.PodCondition)
- func GetPodReadyCondition(status corev1.PodStatus) *corev1.PodCondition
- func IsPodReady(pod *corev1.Pod) bool
- func IsPodReadyConditionTrue(status corev1.PodStatus) bool
Constants ¶
const NodeOutOfDisk = "OutOfDisk"
NodeOutOfDisk is deprecated NodeConditionType. It is no longer reported by kubelet >= 1.13. See https://github.com/kubernetes/kubernetes/pull/70111. +deprecated
Variables ¶
var Now = time.Now
Now determines the current time.
Functions ¶
func CheckAPIServerAvailability ¶
func CheckAPIServerAvailability(condition gardencorev1beta1.Condition, restClient rest.Interface, conditioner conditionerFunc) gardencorev1beta1.Condition
CheckAPIServerAvailability checks if the API server of a cluster is reachable and measure the response time.
func CheckBackupBucket ¶
func CheckBackupBucket(obj *gardencorev1beta1.BackupBucket) error
CheckBackupBucket checks if an backup bucket Object is healthy or not. An extension object is healthy if * Its observed generation is up-to-date * No gardener.cloud/operation is set * No lastError is in the status * A last operation is state succeeded is present
func CheckDaemonSet ¶
CheckDaemonSet checks whether the given DaemonSet is healthy. A DaemonSet is considered healthy if its controller observed its current revision and if its desired number of scheduled pods is equal to its updated number of scheduled pods.
func CheckDeployment ¶
func CheckDeployment(deployment *appsv1.Deployment) error
CheckDeployment checks whether the given Deployment is healthy. A deployment is considered healthy if the controller observed its current revision and if the number of updated replicas is equal to the number of replicas.
func CheckExtensionObject ¶
func CheckExtensionObject(obj extensionsv1alpha1.Object) error
CheckExtensionObject checks if an extension Object is healthy or not. An extension object is healthy if * Its observed generation is up-to-date * No gardener.cloud/operation is set * No lastError is in the status * A last operation is state succeeded is present
func CheckNode ¶
CheckNode checks whether the given Node is healthy. A node is considered healthy if it has a `corev1.NodeReady` condition and this condition reports `corev1.ConditionTrue`.
func CheckSeed ¶
func CheckSeed(seed *gardencorev1beta1.Seed, identity *gardencorev1beta1.Gardener) error
CheckSeed checks if the Seed is up-to-date and if its extensions have been successfully bootstrapped.
func CheckStatefulSet ¶
func CheckStatefulSet(statefulSet *appsv1.StatefulSet) error
CheckStatefulSet checks whether the given StatefulSet is healthy. A StatefulSet is considered healthy if its controller observed its current revision, it is not in an update (i.e. UpdateRevision is empty) and if its current replicas are equal to its desired replicas.
func GetPodCondition ¶
func GetPodCondition(status *corev1.PodStatus, conditionType corev1.PodConditionType) (int, *corev1.PodCondition)
GetPodCondition extracts the provided condition from the given status and returns that. Returns nil and -1 if the condition is not present, and the index of the located condition.
func GetPodReadyCondition ¶
func GetPodReadyCondition(status corev1.PodStatus) *corev1.PodCondition
GetPodReadyCondition extracts the pod ready condition from the given status and returns that. Returns nil if the condition is not present.
func IsPodReady ¶
IsPodReady returns true if a pod is ready; false otherwise.
func IsPodReadyConditionTrue ¶
IsPodReadyConditionTrue returns true if a pod is ready; false otherwise.
Types ¶
This section is empty.