Skip to content

Commit ade1c7c

Browse files
authored
Condition type and reason for ManifestWork Complete (#378)
Signed-off-by: Ben Perry <[email protected]>
1 parent 5880b0c commit ade1c7c

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

work/v1/types.go

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,16 @@ const (
503503
// WorkDegraded represents that the current state of work does not match
504504
// the desired state for a certain period.
505505
WorkDegraded string = "Degraded"
506+
// WorkComplete represents that the work has completed and should no longer
507+
// be updated.
508+
WorkComplete string = "Complete"
509+
)
510+
511+
// Work condition reasons
512+
const (
513+
// WorkManifestsComplete represents that all completable manifests in the work
514+
// have the Complete condition
515+
WorkManifestsComplete string = "ManifestsComplete"
506516
)
507517

508518
// ManifestCondition represents the conditions of the resources deployed on a
@@ -596,7 +606,10 @@ const (
596606
ManifestComplete string = "Complete"
597607
)
598608

599-
// Condition reasons
609+
// Manifest condition reasons
610+
//
611+
// All reasons set by condition rule evaluation are expected to be prefixed with "ConditionRule"
612+
// in order to determine which conditions were set by rules.
600613
const (
601614
// ConditionRuleTrue is set when a rule is evaluated without error
602615
ConditionRuleEvaluated string = "ConditionRuleEvaluated"

0 commit comments

Comments
 (0)