meta

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ReadyCondition is the name of the workflow condition
	// This captures the status of the entire ApplicationGroup
	ReadyCondition string = "Ready"

	// DeployCondition is the name of the Deploy condition
	// This captures the state of receiving and reacting to the spec by the reconciler
	DeployCondition string = "Deploy"

	// ReleasedCondition represents the status of the last release attempt
	// (install/upgrade/test) against the latest desired state.
	ReleasedCondition string = "Released"
)
View Source
const (
	// SucceededReason represents the fact that the reconciliation succeeded
	SucceededReason string = "Succeeded"

	// FailedReason represents the fact that the the reconciliation failed
	FailedReason string = "Failed"

	// ProgressingReason represents the fact that the workflow is in a starting
	// or running state, we have not reached a terminal state yet
	ProgressingReason string = "Progressing"

	// RollbackReason represents the fact that we are entering a rollback state
	// and is transitioning into a non-terminal state
	RollingBackReason string = "RollingBack"

	// ReversingReason represents the fact that we are reversing the workflow
	ReversingReason string = "Reversing"
)

Variables

This section is empty.

Functions

func GetResourceCondition

func GetResourceCondition(obj ObjectWithStatusConditions, condition string) *metav1.Condition

func SetResourceCondition

func SetResourceCondition(obj ObjectWithStatusConditions, condition string, status metav1.ConditionStatus, reason, message string)

SetResourceCondition sets the given condition with the given status, reason and message on a resource.

Types

type ObjectWithStatusConditions

type ObjectWithStatusConditions interface {
	GetStatusConditions() *[]metav1.Condition
}

ObjectWithStatusConditions is an interface that describes kubernetes resource type structs with Status Conditions +k8s:deepcopy-gen=false

Jump to

Keyboard shortcuts

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