diff --git a/apis/apps/v1/shardingdefinition_types.go b/apis/apps/v1/shardingdefinition_types.go index 6c1adf14cb2..58a27a432b9 100644 --- a/apis/apps/v1/shardingdefinition_types.go +++ b/apis/apps/v1/shardingdefinition_types.go @@ -186,19 +186,19 @@ type ShardingLifecycleActions struct { // +optional PreTerminate *Action `json:"preTerminate,omitempty"` - // Specifies the hook to be executed after a shard's creation. + // Specifies the hook to be executed after a shard added. // // Note: This field is immutable once it has been set. // // +optional - ShardProvision *Action `json:"shardProvision,omitempty"` + ShardAdd *Action `json:"shardAdd,omitempty"` - // Specifies the hook to be executed prior to terminating a shard. + // Specifies the hook to be executed prior to remove a shard. // // Note: This field is immutable once it has been set. // // +optional - ShardTerminate *Action `json:"shardTerminate,omitempty"` + ShardRemove *Action `json:"shardRemove,omitempty"` } type ShardingSystemAccount struct { diff --git a/apis/apps/v1/zz_generated.deepcopy.go b/apis/apps/v1/zz_generated.deepcopy.go index 49da4f05116..1e9b6d2c9df 100644 --- a/apis/apps/v1/zz_generated.deepcopy.go +++ b/apis/apps/v1/zz_generated.deepcopy.go @@ -2992,13 +2992,13 @@ func (in *ShardingLifecycleActions) DeepCopyInto(out *ShardingLifecycleActions) *out = new(Action) (*in).DeepCopyInto(*out) } - if in.ShardProvision != nil { - in, out := &in.ShardProvision, &out.ShardProvision + if in.ShardAdd != nil { + in, out := &in.ShardAdd, &out.ShardAdd *out = new(Action) (*in).DeepCopyInto(*out) } - if in.ShardTerminate != nil { - in, out := &in.ShardTerminate, &out.ShardTerminate + if in.ShardRemove != nil { + in, out := &in.ShardRemove, &out.ShardRemove *out = new(Action) (*in).DeepCopyInto(*out) } diff --git a/config/crd/bases/apps.kubeblocks.io_shardingdefinitions.yaml b/config/crd/bases/apps.kubeblocks.io_shardingdefinitions.yaml index e0be6e1e00f..a5ad8a526dd 100644 --- a/config/crd/bases/apps.kubeblocks.io_shardingdefinitions.yaml +++ b/config/crd/bases/apps.kubeblocks.io_shardingdefinitions.yaml @@ -627,9 +627,9 @@ spec: format: int32 type: integer type: object - shardProvision: + shardAdd: description: |- - Specifies the hook to be executed after a shard's creation. + Specifies the hook to be executed after a shard added. Note: This field is immutable once it has been set. @@ -899,9 +899,9 @@ spec: format: int32 type: integer type: object - shardTerminate: + shardRemove: description: |- - Specifies the hook to be executed prior to terminating a shard. + Specifies the hook to be executed prior to remove a shard. Note: This field is immutable once it has been set. diff --git a/deploy/helm/crds/apps.kubeblocks.io_shardingdefinitions.yaml b/deploy/helm/crds/apps.kubeblocks.io_shardingdefinitions.yaml index e0be6e1e00f..a5ad8a526dd 100644 --- a/deploy/helm/crds/apps.kubeblocks.io_shardingdefinitions.yaml +++ b/deploy/helm/crds/apps.kubeblocks.io_shardingdefinitions.yaml @@ -627,9 +627,9 @@ spec: format: int32 type: integer type: object - shardProvision: + shardAdd: description: |- - Specifies the hook to be executed after a shard's creation. + Specifies the hook to be executed after a shard added. Note: This field is immutable once it has been set. @@ -899,9 +899,9 @@ spec: format: int32 type: integer type: object - shardTerminate: + shardRemove: description: |- - Specifies the hook to be executed prior to terminating a shard. + Specifies the hook to be executed prior to remove a shard. Note: This field is immutable once it has been set. diff --git a/docs/developer_docs/api-reference/cluster.md b/docs/developer_docs/api-reference/cluster.md index 3d607f2d4c8..f8de1cf1c26 100644 --- a/docs/developer_docs/api-reference/cluster.md +++ b/docs/developer_docs/api-reference/cluster.md @@ -10617,7 +10617,7 @@ until the PreTerminate action has completed successfully.
shardProvision
shardAdd
Specifies the hook to be executed after a shard’s creation.
+Specifies the hook to be executed after a shard added.
Note: This field is immutable once it has been set.
shardTerminate
shardRemove
Specifies the hook to be executed prior to terminating a shard.
+Specifies the hook to be executed prior to remove a shard.
Note: This field is immutable once it has been set.