Documentation ¶
Index ¶
- Constants
- func GetResourceCondition(obj ObjectWithStatusConditions, condition string) *metav1.Condition
- func SetResourceCondition(obj ObjectWithStatusConditions, condition string, ...)
- func ToStatusConditions(conditions []helmopv1.HelmReleaseCondition) []metav1.Condition
- type ObjectWithStatusConditions
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 ¶
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.