util

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PoolManagersAvailable is added in a cspc when it has its minimum pool-managers required available.
	MinimumPoolManagersAvailable = "MinimumPoolManagersAvailable"
	// MinimumPoolManagersUnAvailable is added in a cspc when it doesn't have the minimum required pool-managers
	// available.
	MinimumPoolManagersUnAvailable = "MinimumPoolManagersUnAvailable"
)
View Source
const (
	// PoolManagerAvailable is
	PoolManagerAvailable cstor.CSPCConditionType = "PoolManagerAvailable"
)

Variables

This section is empty.

Functions

func GetCSPCCondition

GetCSPCCondition returns the condition with the provided type.

func NewCSPCCondition

func NewCSPCCondition(condType cstor.CSPCConditionType, status corev1.ConditionStatus, reason, message string) *cstor.CStorPoolClusterCondition

NewCSPCCondition creates a new cspc condition.

func RemoveCSPCCondition

func RemoveCSPCCondition(status *cstor.CStorPoolClusterStatus, condType cstor.CSPCConditionType)

RemoveCSPCCondition removes the cspc condition with the provided type.

func SetCSPCCondition

func SetCSPCCondition(status *cstor.CStorPoolClusterStatus, condition cstor.CStorPoolClusterCondition)

SetCSPCCondition updates the cspc to include the provided condition. If the condition that we are about to add already exists and has the same status and reason then we are not going to update.

Types

This section is empty.

Jump to

Keyboard shortcuts

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