cluster

package
v0.0.0-...-3e61cae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2023 License: MIT, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterCondition

func GetClusterCondition(status *v1alpha1.ClusterStatus, conditionType v1alpha1.ClusterConditionType) (int, *v1alpha1.ClusterCondition)

GetClusterCondition 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 GetClusterReadyCondition

func GetClusterReadyCondition(status v1alpha1.ClusterStatus) *v1alpha1.ClusterCondition

GetClusterReadyCondition extracts the Cluster ready condition from the given status and returns that. Returns nil if the condition is not present.

func IsClusterReady

func IsClusterReady(cluster *v1alpha1.Cluster) bool

IsClusterReady returns true if a Cluster is ready; false otherwise.

func IsClusterReadyConditionTrue

func IsClusterReadyConditionTrue(status v1alpha1.ClusterStatus) bool

IsClusterReadyConditionTrue returns true if a Cluster is ready; false otherwise.

func UpdateClusterCondition

func UpdateClusterCondition(status *v1alpha1.ClusterStatus, condition *v1alpha1.ClusterCondition) bool

UpdateClusterCondition updates existing Cluster condition or creates a new one. Sets LastTransitionTime to now if the status has changed. Returns true if Cluster condition has changed or has been added.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL