Documentation ¶
Index ¶
- Constants
- func VerifyClusterOperatorsVersion(desiredVersion string, clusterOperatorList []*Builder, ...) (bool, error)
- func WaitForAllClusteroperatorsAvailable(apiClient *clients.Settings, timeout time.Duration, ...) (bool, error)
- func WaitForAllClusteroperatorsStopProgressing(apiClient *clients.Settings, timeout time.Duration, ...) (bool, error)
- type Builder
- func (builder *Builder) Exists() bool
- func (builder *Builder) Get() (*configv1.ClusterOperator, error)
- func (builder *Builder) GetConditionReason(conditionType configv1.ClusterStatusConditionType) string
- func (builder *Builder) HasDesiredVersion(desiredVersion string) (bool, error)
- func (builder *Builder) IsAvailable() bool
- func (builder *Builder) IsDegraded() bool
- func (builder *Builder) IsProgressing() bool
- func (builder *Builder) WaitUntilAvailable(timeout time.Duration) error
- func (builder *Builder) WaitUntilConditionTrue(conditionType configv1.ClusterStatusConditionType, timeout time.Duration) error
- func (builder *Builder) WaitUntilProgressing(timeout time.Duration) error
Constants ¶
const ( // APIGroup represents nodes.config api group. APIGroup = "config.openshift.io" // APIVersion represents version of nodes.config api. APIVersion = "v1" // APIKind represents nodes.config api kind. APIKind = "ClusterOperator" )
Variables ¶
This section is empty.
Functions ¶
func VerifyClusterOperatorsVersion ¶
func VerifyClusterOperatorsVersion(desiredVersion string, clusterOperatorList []*Builder, options ...metav1.ListOptions) (bool, error)
VerifyClusterOperatorsVersion checks if all the clusterOperators have version desiredVersion.
func WaitForAllClusteroperatorsAvailable ¶
func WaitForAllClusteroperatorsAvailable( apiClient *clients.Settings, timeout time.Duration, options ...metav1.ListOptions) (bool, error)
WaitForAllClusteroperatorsAvailable waits until all clusterOperators are in available state.
func WaitForAllClusteroperatorsStopProgressing ¶
func WaitForAllClusteroperatorsStopProgressing( apiClient *clients.Settings, timeout time.Duration, options ...metav1.ListOptions) (bool, error)
WaitForAllClusteroperatorsStopProgressing waits until all clusterOperators stopped progressing.
Types ¶
type Builder ¶
type Builder struct { // ClusterOperator definition. Used to create a clusterOperator object. Definition *configv1.ClusterOperator // Created clusterOperator object. Object *configv1.ClusterOperator // contains filtered or unexported fields }
Builder provides struct for clusterOperator object.
func (*Builder) Get ¶
func (builder *Builder) Get() (*configv1.ClusterOperator, error)
Get fetches existing clusterOperator from cluster.
func (*Builder) GetConditionReason ¶
func (builder *Builder) GetConditionReason(conditionType configv1.ClusterStatusConditionType) string
GetConditionReason returns the specific condition type's reason value or an empty string if it does not exist.
func (*Builder) HasDesiredVersion ¶
HasDesiredVersion checks if an operator has a desiredVersion.
func (*Builder) IsAvailable ¶
IsAvailable check if the clusterOperator is available.
func (*Builder) IsDegraded ¶
IsDegraded checks if the clusterOperator is degraded.
func (*Builder) IsProgressing ¶
IsProgressing checks if the clusterOperator is progressing.
func (*Builder) WaitUntilAvailable ¶
WaitUntilAvailable waits for timeout duration or until clusterOperator is Available.
func (*Builder) WaitUntilConditionTrue ¶
func (builder *Builder) WaitUntilConditionTrue( conditionType configv1.ClusterStatusConditionType, timeout time.Duration) error
WaitUntilConditionTrue waits for timeout duration or until clusterOperator gets to a specific status.