Documentation ¶
Index ¶
- func GetClusterCondition(status *v1alpha1.ClusterStatus, conditionType v1alpha1.ClusterConditionType) (int, *v1alpha1.ClusterCondition)
- func GetClusterReadyCondition(status v1alpha1.ClusterStatus) *v1alpha1.ClusterCondition
- func IsClusterReady(cluster *v1alpha1.Cluster) bool
- func IsClusterReadyConditionTrue(status v1alpha1.ClusterStatus) bool
- func UpdateClusterCondition(status *v1alpha1.ClusterStatus, condition *v1alpha1.ClusterCondition) bool
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 ¶
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.