Skip to content

Commit

Permalink
chore: delete uptime in status (#1054)
Browse files Browse the repository at this point in the history
Fix #1052

Signed-off-by: Rory Z <[email protected]>
  • Loading branch information
Rory-Z authored May 24, 2024
1 parent a49f6f1 commit f41c0c2
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 18 deletions.
4 changes: 2 additions & 2 deletions apis/apps/v2beta1/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ type EMQXNode struct {
Role string `json:"role,omitempty"`
// EMQX cluster node edition, enum: "Opensource" "Enterprise"
Edition string `json:"edition,omitempty"`
// EMQX node uptime, milliseconds
Uptime int64 `json:"uptime,omitempty"`
// In EMQX's API of `/api/v5/nodes`, the `connections` field means the number of MQTT session count,
Session int64 `json:"connections,omitempty"`
// In EMQX's API of `/api/v5/nodes`, the `live_connections` field means the number of connected MQTT clients.
// THe `live_connections` just work in EMQX 5.1 or later.
Connections int64 `json:"live_connections,omitempty"`
// EMQX node uptime, milliseconds
Uptime int64 `json:"-"`
}

const (
Expand Down
6 changes: 0 additions & 6 deletions config/crd/bases/apps.emqx.io_emqxes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13804,9 +13804,6 @@ spec:
type: string
role:
type: string
uptime:
format: int64
type: integer
version:
type: string
type: object
Expand Down Expand Up @@ -13896,9 +13893,6 @@ spec:
type: string
role:
type: string
uptime:
format: int64
type: integer
version:
type: string
type: object
Expand Down
4 changes: 2 additions & 2 deletions deploy/charts/emqx-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.2.22
version: 2.2.23

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 2.2.22
appVersion: 2.2.23

sources:
- https://github.com/emqx/emqx-operator/tree/main/deploy/charts/emqx-operator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13816,9 +13816,6 @@ spec:
type: string
role:
type: string
uptime:
format: int64
type: integer
version:
type: string
type: object
Expand Down Expand Up @@ -13908,9 +13905,6 @@ spec:
type: string
role:
type: string
uptime:
format: int64
type: integer
version:
type: string
type: object
Expand Down
1 change: 0 additions & 1 deletion docs/en_US/reference/v2beta1-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ _Appears in:_
| `version` _string_ | EMQX version | | |
| `role` _string_ | EMQX cluster node role, enum: "core" "replicant" | | |
| `edition` _string_ | EMQX cluster node edition, enum: "Opensource" "Enterprise" | | |
| `uptime` _integer_ | EMQX node uptime, milliseconds | | |
| `connections` _integer_ | In EMQX's API of `/api/v5/nodes`, the `connections` field means the number of MQTT session count, | | |
| `live_connections` _integer_ | In EMQX's API of `/api/v5/nodes`, the `live_connections` field means the number of connected MQTT clients.<br />THe `live_connections` just work in EMQX 5.1 or later. | | |

Expand Down
1 change: 0 additions & 1 deletion docs/zh_CN/reference/v2beta1-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ _Appears in:_
| `version` _string_ | EMQX version | | |
| `role` _string_ | EMQX cluster node role, enum: "core" "replicant" | | |
| `edition` _string_ | EMQX cluster node edition, enum: "Opensource" "Enterprise" | | |
| `uptime` _integer_ | EMQX node uptime, milliseconds | | |
| `connections` _integer_ | In EMQX's API of `/api/v5/nodes`, the `connections` field means the number of MQTT session count, | | |
| `live_connections` _integer_ | In EMQX's API of `/api/v5/nodes`, the `live_connections` field means the number of connected MQTT clients.<br />THe `live_connections` just work in EMQX 5.1 or later. | | |

Expand Down

0 comments on commit f41c0c2

Please sign in to comment.