@@ -29,26 +29,31 @@ const (
29
29
// "ConditionCompleted" means the condition is fulfilled.
30
30
// "ConditionDegraded" means the condition is not fulfilled.
31
31
// "ConditionResyncing" means the condition is resyncing.
32
+ // "ConditionReplicating" means the condition is replicating.
32
33
const (
33
- ConditionCompleted = "Completed"
34
- ConditionDegraded = "Degraded"
35
- ConditionResyncing = "Resyncing"
36
- ConditionValidated = "Validated"
34
+ ConditionCompleted = "Completed"
35
+ ConditionDegraded = "Degraded"
36
+ ConditionResyncing = "Resyncing"
37
+ ConditionValidated = "Validated"
38
+ ConditionReplicating = "Replicating"
37
39
)
38
40
39
41
// These are valid messages for various conditions and states of volume replication.
40
42
const (
41
- MessagePromoted = "is promoted to primary and replicating to secondary"
42
- MessageHealthy = "is healthy"
43
- MessageNotResyncing = "is not resyncing"
44
- MessageValidated = "is validated and met all prerequisites"
45
- MessageFailedPromoted = "failed to promote"
46
- MessageFailedDemoted = "failed to demote"
47
- MessageFailedPreCondition = "failed to meet prerequisite"
48
- MessageDemoted = "is demoted to secondary"
49
- MessageDegraded = "is degraded"
50
- MessageResyncTriggered = "is resyncing changes from primary to secondary"
51
- MessageResyncFailed = "failed to resync"
43
+ MessagePromoted = "is promoted to primary and replicating to secondary"
44
+ MessageHealthy = "is healthy"
45
+ MessageNotResyncing = "is not resyncing"
46
+ MessageValidated = "is validated and met all prerequisites"
47
+ MessageFailedPromoted = "failed to promote"
48
+ MessageFailedDemoted = "failed to demote"
49
+ MessageFailedPreCondition = "failed to meet prerequisite"
50
+ MessageDemoted = "is demoted to secondary"
51
+ MessageDegraded = "is degraded"
52
+ MessageResyncTriggered = "is resyncing changes from primary to secondary"
53
+ MessageResyncFailed = "failed to resync"
54
+ MessageReplicating = "is replicating"
55
+ MessageNotReplicating = "is not replicating"
56
+ MessageUnknownReplicationState = "replication status is unknown"
52
57
)
53
58
54
59
type Source string
@@ -87,6 +92,10 @@ const (
87
92
PrerequisiteMet = "PrerequisiteMet"
88
93
// PrerequisiteNotMet condition represents that the prerequisite is not met.
89
94
PrerequisiteNotMet = "PrerequisiteNotMet"
95
+ // Replicating condition represents that the volume/group is replicating.
96
+ Replicating = "Replicating"
97
+ // NotReplicating condition represents that the volume/group is not replicating.
98
+ NotReplicating = "NotReplicating"
90
99
)
91
100
92
101
// ReplicationState represents the replication operations to be performed on the volume.
0 commit comments