@@ -24,19 +24,25 @@ import (
2424
2525// EMQXStatus defines the observed state of EMQX
2626type EMQXStatus struct {
27- // Represents the latest available observations of a EMQX Custom Resource current state .
27+ // Conditions representing the current status of the EMQX Custom Resource.
2828 // +listType=map
2929 // +listMapKey=type
3030 Conditions []metav1.Condition `json:"conditions,omitempty"`
3131
32- CoreNodes []EMQXNode `json:"coreNodes,omitempty"`
32+ // Status of each core node in the cluster.
33+ CoreNodes []EMQXNode `json:"coreNodes,omitempty"`
34+ // Summary status of the set of core nodes.
3335 CoreNodesStatus EMQXNodesStatus `json:"coreNodesStatus,omitempty"`
3436
35- ReplicantNodes []EMQXNode `json:"replicantNodes,omitempty"`
37+ // Status of each replicant node in the cluster.
38+ ReplicantNodes []EMQXNode `json:"replicantNodes,omitempty"`
39+ // Summary status of the set of replicant nodes.
3640 ReplicantNodesStatus EMQXNodesStatus `json:"replicantNodesStatus,omitempty"`
3741
42+ // Status of active node evacuations in the cluster.
3843 NodeEvacuationsStatus []NodeEvacuationStatus `json:"nodeEvacuationsStatus,omitempty"`
39- DSReplication DSReplicationStatus `json:"dsReplication,omitempty"`
44+ // Status of EMQX Durable Storage replication.
45+ DSReplication DSReplicationStatus `json:"dsReplication,omitempty"`
4046}
4147
4248type NodeEvacuationStatus struct {
@@ -48,24 +54,31 @@ type NodeEvacuationStatus struct {
4854 State string `json:"state,omitempty"`
4955 // Session recipients
505651- SessionRecipients []string `json:"sessionRecipients,omitempty"`
52- SessionEvictionRate int32 `json:"sessionEvictionRate,omitempty"`
53- ConnectionEvictionRate int32 `json:"connectionEvictionRate,omitempty"`
57+ SessionRecipients []string `json:"sessionRecipients,omitempty"`
58+ // Session eviction rate, in sessions per second.
59+ SessionEvictionRate int32 `json:"sessionEvictionRate,omitempty"`
60+ // Connection eviction rate, in connections per second.
61+ ConnectionEvictionRate int32 `json:"connectionEvictionRate,omitempty"`
5462 // Initial number of sessions on this node
5563 InitialSessions int32 `json:"initialSessions,omitempty"`
5664 // Initial number of connections to this node
5765 InitialConnections int32 `json:"initialConnections,omitempty"`
5866}
5967
6068type EMQXNodesStatus struct {
61- Replicas int32 `json:"replicas,omitempty"`
69+ // Total number of replicas.
70+ Replicas int32 `json:"replicas,omitempty"`
71+ // Number of ready replicas.
6272 ReadyReplicas int32 `json:"readyReplicas,omitempty"`
63-
73+ // Current revision of the respective core or replicant set.
6474 CurrentRevision string `json:"currentRevision,omitempty"`
65- CurrentReplicas int32 `json:"currentReplicas,omitempty"`
66-
75+ // Number of replicas running current revision.
76+ CurrentReplicas int32 `json:"currentReplicas,omitempty"`
77+ // Update revision of the respective core or replicant set.
78+ // When different from the current revision, the set is being updated.
6779 UpdateRevision string `json:"updateRevision,omitempty"`
68- UpdateReplicas int32 `json:"updateReplicas,omitempty"`
80+ // Number of replicas running update revision.
81+ UpdateReplicas int32 `json:"updateReplicas,omitempty"`
6982
7083 CollisionCount * int32 `json:"collisionCount,omitempty"`
7184}
0 commit comments