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" ForwardWorkflowSucceededCondition string = "ForwardWorkflowSucceeded" ReverseWorkflowSucceededCondition string = "ReverseWorkflowSucceeded" RollbackWorkflowSucceededCondition string = "RollbackWorkflowSucceeded" )
View Source
const ( // SucceededReason represents the condition succeeding SucceededReason string = "Succeeded" // FailedReason represents the fact that the the reconciliation failed FailedReason string = "Failed" // ProgressingReason represents the fact that the application group reconciler // is reconciling the app group and the forward workflow has not completed ProgressingReason string = "Progressing" // TerminatingReason represents that the application group is deleting // and waiting for the reverse workflow to complete TerminatingReason string = "Terminating" // SuspendedReason represents that the workflow is in a suspended state SuspendedReason string = "Suspended" // ChartPullFailedReason represents the fact that the application group reconcile // was unable to pull from the chart repo specified ChartPullFailedReason string = "ChartPullFailed" // WorkflowFailedReason represents the fact that a workflow step failed and is the reason // why the application group was unable to successfully reconcile WorkflowFailedReason string = "WorkflowFailed" // WorkflowTemplateGenerationFailedReason represents the fact that the application group was unable // to generate the templates for the workflow reconciliation WorkflowTemplateGenerationFailedReason string = "WorkflowTemplateGenerationFailed" )
Variables ¶
View Source
var ( ErrInvalidSpec = errors.New("custom resource spec is invalid") ErrWorkflowFailure = errors.New("workflow in failure status") ErrHelmReleaseStatusFailure = errors.New("helmrelease in failure status") ErrForwardWorkflowNotFound = errors.New("forward workflow not found") ErrPreviousSpecNotSet = errors.New("failed to generate rollback workflow, previous spec is unset") )
Functions ¶
func GetResourceCondition ¶
func GetResourceCondition(obj ObjectWithStatusConditions, condition string) *metav1.Condition
func IsFailedHelmReason ¶ added in v0.7.0
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 ¶
ObjectWithStatusConditions is an interface that describes kubernetes resource type structs with Status Conditions +k8s:deepcopy-gen=false
Click to show internal directories.
Click to hide internal directories.