meta

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 3 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"
)
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"
)

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.

func ToStatusConditions

func ToStatusConditions(conditions []helmopv1.HelmReleaseCondition) []metav1.Condition

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