condition

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 4 Imported by: 218

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotManagedMessage = "Resource already exists"
	NotManagedReason  = "This resource already exists but is not managed by ACK. " +
		"To bring the resource under ACK management, you should explicitly adopt " +
		"the resource by creating a services.k8s.aws/AdoptedResource"
)

Functions

func AllOfType

func AllOfType(
	subject acktypes.ConditionManager,
	condType ackv1alpha1.ConditionType,
) []*ackv1alpha1.Condition

AllOfType returns a slice of Conditions in the resource's Conditions collection of the supplied type.

func FirstOfType

func FirstOfType(
	subject acktypes.ConditionManager,
	condType ackv1alpha1.ConditionType,
) *ackv1alpha1.Condition

FirstOfType returns the first Condition in the resource's Conditions collection of the supplied type. If no such condition is found, returns nil.

func LateInitializationInProgress added in v0.10.0

func LateInitializationInProgress(subject acktypes.ConditionManager) bool

LateInitializationInProgress return true if ConditionTypeLateInitialized has "False" status False status means that resource has LateInitializationConfig but has not been completely late initialized yet.

func LateInitialized added in v0.10.0

func LateInitialized(subject acktypes.ConditionManager) *ackv1alpha1.Condition

LateInitialized returns the Condition in the resource's Conditions collection that is of type ConditionTypeLateInitialized. If no such condition is found, returns nil.

func SetLateInitialized added in v0.10.0

func SetLateInitialized(
	subject acktypes.ConditionManager,
	status corev1.ConditionStatus,
	message *string,
	reason *string,
)

SetLateInitialized sets the resource's Condition of type ConditionTypeLateInitialized to the supplied status, optional message and reason.

func SetSynced

func SetSynced(
	subject acktypes.ConditionManager,
	status corev1.ConditionStatus,
	message *string,
	reason *string,
)

SetSynced sets the resource's Condition of type ConditionTypeResourceSynced to the supplied status, optional message and reason.

func SetTerminal

func SetTerminal(
	subject acktypes.ConditionManager,
	status corev1.ConditionStatus,
	message *string,
	reason *string,
)

SetTerminal sets the resource's Condition of type ConditionTypeTerminal to the supplied status, optional message and reason.

func Synced

Synced returns the Condition in the resource's Conditions collection that is of type ConditionTypeResourceSynced. If no such condition is found, returns nil.

func Terminal

Terminal returns the Condition in the resource's Conditions collection that is of type ConditionTypeTerminal. If no such condition is found, returns nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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