Skip to content

Commit

Permalink
Add new reinstall status ConditionTypes and ConditionReasons
Browse files Browse the repository at this point in the history
Signed-off-by: Sharat Akhoury <[email protected]>
  • Loading branch information
sakhoury committed Nov 30, 2024
1 parent a4bb266 commit cb8532c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions api/v1alpha1/clusterinstance_conditions.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,20 @@ const (
Unknown ClusterInstanceConditionReason = "Unknown"
StaleConditions ClusterInstanceConditionReason = "StaleConditions"
)

// The following constants define the different reinstall condition types
const (
ReinstallRequestValidated ClusterInstanceConditionType = "ReinstallRequestValidated"
ReinstallRequestProcessed ClusterInstanceConditionType = "ReinstallRequestProcessed"
ReinstallPreservationDataBackedup ClusterInstanceConditionType = "ReinstallPreservationDataBackedup"
ReinstallPreservationDataRestored ClusterInstanceConditionType = "ReinstallPreservationDataRestored"
ReinstallClusterIdentityDataDetected ClusterInstanceConditionType = "ReinstallClusterIdentityDataDetected"
ReinstallRenderedManifestsDeleted ClusterInstanceConditionType = "ReinstallRenderedManifestsDeleted"
)

// The following constants define additional reinstall condition reasons
const (
PreservationNotRequired ClusterInstanceConditionReason = "PreservationNotRequired"
DataUnavailable ClusterInstanceConditionReason = "DataUnavailable"
DataAvailable ClusterInstanceConditionReason = "DataAvailable"
)

0 comments on commit cb8532c

Please sign in to comment.