conditions

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReadyCondition            ConditionType   = "Ready"
	SuccessfulReconcileReason ConditionReason = "ReconcileSuccess"
	ReconcileErrorReason      ConditionReason = "ReconcileError"
	DeletingReason            ConditionReason = "Deleting"
	DeletionFailedReason      ConditionReason = "DeletionFailed"
	GarmAPIErrorReason        ConditionReason = "GarmAPIError"
	UnknownReason             ConditionReason = "UnknownReason"
)

Common Conditions & Reasons

View Source
const (
	ImageReference                ConditionType   = "ImageReference"
	FetchingImageRefSuccessReason ConditionReason = "FetchingImageRefSuccess"
	FetchingImageRefFailedReason  ConditionReason = "FetchingImageRefFailed"

	ScopeReference                ConditionType   = "ScopeReference"
	FetchingScopeRefSuccessReason ConditionReason = "FetchingScopeRefSuccess"
	FetchingScopeRefFailedReason  ConditionReason = "FetchingScopeRefFailed"
	ScopeRefNotReadyReason        ConditionReason = "ScopeRefNotReady"
	DuplicatePoolReason           ConditionReason = "DuplicatePoolFound"
)

Pool Conditions & Reasons

View Source
const (
	PoolManager              ConditionType   = "PoolManager"
	PoolManagerRunningReason ConditionReason = "PoolManagerRunning"
	PoolManagerFailureReason ConditionReason = "PoolManagerFailure"

	SecretReference                ConditionType   = "SecretReference"
	FetchingSecretRefSuccessReason ConditionReason = "FetchingSecretRefSuccess"
	FetchingSecretRefFailedReason  ConditionReason = "FetchingSecretRefFailed"

	CredentialsReference                ConditionType   = "CredentialsReference"
	FetchingCredentialsRefSuccessReason ConditionReason = "CredentialsRefSuccess"
	FetchingCredentialsRefFailedReason  ConditionReason = "CredentialsRefFailed"
)

Enterprise, Org & Repo Conditions

View Source
const (
	EndpointReference                ConditionType   = "EndpointReference"
	FetchingEndpointRefSuccessReason ConditionReason = "FetchingEndpointRefSuccess"
	FetchingEndpointRefFailedReason  ConditionReason = "FetchingEndpointRefFailed"
)

Credential Conditions

View Source
const (
	GarmServerNotReconciledYetMsg  string = "GARM server not reconciled yet"
	CredentialsNotReconciledYetMsg string = "credentials not reconciled yet"
	DeletingEnterpriseMsg          string = "Deleting enterprise"
	DeletingOrgMsg                 string = "Deleting organization"
	DeletingRepoMsg                string = "Deleting repository"
	DeletingPoolMsg                string = "Deleting pool"
	DeletingEndpointMsg            string = "Deleting endpoint"
	DeletingCredentialsMsg         string = "Deleting credentials" // #nosec G101
)

Variables

This section is empty.

Functions

func FalseCondition

func FalseCondition(t ConditionType, reason ConditionReason, message string) *metav1.Condition

func MarkFalse

func MarkFalse(o ConditionStatusObject, t ConditionType, reason ConditionReason, message string)

func MarkTrue

func MarkTrue(o ConditionStatusObject, t ConditionType, reason ConditionReason, message string)

func MarkUnknown

func MarkUnknown(o ConditionStatusObject, t ConditionType, reason ConditionReason, message string)

func NilLastTransitionTime

func NilLastTransitionTime(o ConditionStatusObject)

func Remove

func Set

func Set(o ConditionStatusObject, condition metav1.Condition)

func TrueCondition

func TrueCondition(t ConditionType, reason ConditionReason, message string) *metav1.Condition

func UnknownCondition

func UnknownCondition(t ConditionType, reason ConditionReason, message string) *metav1.Condition

Types

type ConditionReason

type ConditionReason string

type ConditionStatusObject

type ConditionStatusObject interface {
	SetConditions(conditions []metav1.Condition)
	GetConditions() []metav1.Condition
}

type ConditionType

type ConditionType string

Jump to

Keyboard shortcuts

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