clusterstatus

package
v1.7.14 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Failed

func Failed(atype api.ActionType, actions []api.ClusterAction) bool

func Finished

func Finished(atype api.ActionType, actions []api.ClusterAction) bool

func InitOperatorActionsIfNeeded

func InitOperatorActionsIfNeeded(status *api.CrdbClusterStatus, now metav1.Time)

func ResetActionType

func ResetActionType(atype api.ActionType, status *api.CrdbClusterStatus)

ResetActionType will delete the actiontype from the slice of operation action this is used to reset if previously an error was thrown and now the action is ok TO DO: each action has it's own states to follow on status

func SetActionFailed

func SetActionFailed(atype api.ActionType, message string, status *api.CrdbClusterStatus)

func SetActionFinished

func SetActionFinished(atype api.ActionType, status *api.CrdbClusterStatus)

func SetActionUnknown

func SetActionUnknown(atype api.ActionType, status *api.CrdbClusterStatus)

func SetClusterStatus

func SetClusterStatus(status *api.CrdbClusterStatus)

func SetClusterStatusOnFirstReconcile

func SetClusterStatusOnFirstReconcile(status *api.CrdbClusterStatus)

SetClusterStatusOnFirstReconcile will set Status of teh cluster with value Running on first rin Very important: this is used on OpenShift CI to pass the tests, if not set it will timeout

func Unknown

func Unknown(atype api.ActionType, actions []api.ClusterAction) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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