Skip to content

Commit 5c27146

Browse files
committed
Adding common "reason" constants
Signed-off-by: Gaurav Dasson <[email protected]>
1 parent 77d72bc commit 5c27146

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

apis/meta/conditions.go

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ const (
5757
// For more information about polarity patterns, see:
5858
// https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties
5959
ReconcilingCondition string = "Reconciling"
60+
61+
// HealthyCondition represents the last recorded
62+
// health assessment result.
63+
HealthyCondition string = "Healthy"
6064
)
6165

6266
// These constants define generic Condition reasons to be used by GitOps Toolkit components.
@@ -120,6 +124,30 @@ const (
120124
// UnsupportedConnectionTypeReason signals a failure caused by
121125
// the use of unsupported network protocols.
122126
UnsupportedConnectionTypeReason = "UnsupportedConnectionType"
127+
128+
// PruneFailedReason represents the fact that the
129+
// pruning of the resources failed.
130+
PruneFailedReason string = "PruneFailed"
131+
132+
// ArtifactFailedReason represents the fact that the
133+
// source artifact download failed.
134+
ArtifactFailedReason string = "ArtifactFailed"
135+
136+
// BuildFailedReason represents the fact that the
137+
// build failed.
138+
BuildFailedReason string = "BuildFailed"
139+
140+
// HealthCheckFailedReason represents the fact that
141+
// one of the health checks failed.
142+
HealthCheckFailedReason string = "HealthCheckFailed"
143+
144+
// ReconciliationSucceededReason represents the fact that
145+
// the reconciliation succeeded.
146+
ReconciliationSucceededReason string = "ReconciliationSucceeded"
147+
148+
// ReconciliationFailedReason represents the fact that
149+
// the reconciliation failed.
150+
ReconciliationFailedReason string = "ReconciliationFailed"
123151
)
124152

125153
// ObjectWithConditions describes a Kubernetes resource object with status conditions.

0 commit comments

Comments
 (0)