Skip to content

Commit 1343e0d

Browse files
committed
chore(api): use more desriptive labels for EvacuationStrategy
1 parent d2c035c commit 1343e0d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

api/v3alpha1/emqx_types_spec.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,12 @@ type EvacuationStrategy struct {
155155
// Same as `conn-evict-rate` in [EMQX Node Evacuation](https://docs.emqx.com/en/emqx/v5.10/deploy/cluster/rebalancing.html#node-evacuation).
156156
// +kubebuilder:validation:Minimum=1
157157
// +kubebuilder:default=1000
158-
ConnEvictRate int32 `json:"connEvictRate,omitempty"`
158+
ConnEvictRate int32 `json:"connectionEvictionRate,omitempty"`
159159
// Session evacuation rate (number per second).
160160
// Same as `sess-evict-rate` in [EMQX Node Evacuation](https://docs.emqx.com/en/emqx/v5.10/deploy/cluster/rebalancing.html#node-evacuation).
161161
// +kubebuilder:validation:Minimum=1
162162
// +kubebuilder:default=1000
163-
SessEvictRate int32 `json:"sessEvictRate,omitempty"`
163+
SessEvictRate int32 `json:"sessionEvictionRate,omitempty"`
164164
// Amount of time (in seconds) to wait before starting session evacuation.
165165
// Same as `wait-takeover` in [EMQX Node Evacuation](https://docs.emqx.com/en/emqx/v5.10/deploy/cluster/rebalancing.html#node-evacuation).
166166
// +kubebuilder:validation:Minimum=0

config/crd/bases/apps.emqx.io_emqxes.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15970,15 +15970,15 @@ spec:
1597015970
evacuationStrategy:
1597115971
description: Evacuation strategy settings.
1597215972
properties:
15973-
connEvictRate:
15973+
connectionEvictionRate:
1597415974
default: 1000
1597515975
description: |-
1597615976
Client disconnect rate (number per second).
1597715977
Same as `conn-evict-rate` in [EMQX Node Evacuation](https://docs.emqx.com/en/emqx/v5.10/deploy/cluster/rebalancing.html#node-evacuation).
1597815978
format: int32
1597915979
minimum: 1
1598015980
type: integer
15981-
sessEvictRate:
15981+
sessionEvictionRate:
1598215982
default: 1000
1598315983
description: |-
1598415984
Session evacuation rate (number per second).

0 commit comments

Comments
 (0)