conditions

package
v6.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// CreatingCondition tells if the cluster is being created.
	CreatingCondition capi.ConditionType = "Creating"

	// UpgradingCondition tells if the cluster is being upgraded to a newer
	// release version.
	UpgradingCondition capi.ConditionType = "Upgrading"

	// ProviderInfrastructureReadyCondition tells if the provider
	// infrastructure defined by the related provider-specific CR is Ready. For
	// example, in Cluster CR it tells if Azure infrastructure defined by the
	// AzureCluster is ready.
	ProviderInfrastructureReadyCondition capi.ConditionType = "ProviderInfrastructureReady"

	// NodePoolsReadyCondition tells if all node pools are ready.
	NodePoolsReadyCondition capi.ConditionType = "NodePoolsReady"
)

Cluster conditions

View Source
const (
	CreationCompletedReason = "CreationCompleted"
	ExistingClusterReason   = "ExistingCluster"
)

Creating reasons

View Source
const (
	UpgradeCompletedReason  = "UpgradeCompleted"
	UpgradeNotStartedReason = "UpgradeNotStarted"
)

Upgrading reasons

Variables

This section is empty.

Functions

func SerializeUpgradingConditionMessage

func SerializeUpgradingConditionMessage(message UpgradingConditionMessage) (string, error)

SerializeUpgradingConditionMessage converts specified message object into a JSON string.

Types

type UpgradingConditionMessage

type UpgradingConditionMessage struct {
	Message        string `json:"message"`
	ReleaseVersion string `json:"release_version"`
}

func DeserializeUpgradingConditionMessage

func DeserializeUpgradingConditionMessage(messageJson string) (UpgradingConditionMessage, error)

DeserializeUpgradingConditionMessage parses specified JSON string and returns message UpgradingConditionMessage struct.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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