Skip to content

Commit dc4be76

Browse files
committed
Merge branch 'main' into support/hscale-in-its
2 parents eaeb14f + cce5f38 commit dc4be76

21 files changed

+153
-3888
lines changed

apis/workloads/v1/instance_types.go

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -197,40 +197,3 @@ type InstanceAssistantObject struct {
197197
Role *rbacv1.Role `json:"role,omitempty"`
198198
RoleBinding *rbacv1.RoleBinding `json:"roleBinding,omitempty"`
199199
}
200-
201-
type LifecycleActions struct {
202-
// Provides variables which are used to call Actions.
203-
//
204-
// +optional
205-
TemplateVars map[string]string `json:"templateVars,omitempty"`
206-
207-
// Defines the procedure for a controlled transition of a role to a new replica.
208-
//
209-
// +optional
210-
Switchover *kbappsv1.Action `json:"switchover,omitempty"`
211-
212-
// Defines the procedure to add a new replica.
213-
//
214-
// +optional
215-
MemberJoin *kbappsv1.Action `json:"memberJoin,omitempty"`
216-
217-
// Defines the procedure to remove a replica.
218-
//
219-
// +optional
220-
MemberLeave *kbappsv1.Action `json:"memberLeave,omitempty"`
221-
222-
// Defines the procedure for exporting the data from a replica.
223-
//
224-
// +optional
225-
DataDump *kbappsv1.Action `json:"dataDump,omitempty"`
226-
227-
// Defines the procedure for importing data into a replica.
228-
//
229-
// +optional
230-
DataLoad *kbappsv1.Action `json:"dataLoad,omitempty"`
231-
232-
// Defines the procedure that update a replica with new configuration.
233-
//
234-
// +optional
235-
Reconfigure *kbappsv1.Action `json:"reconfigure,omitempty"`
236-
}

apis/workloads/v1/instanceset_types.go

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,13 +487,37 @@ const (
487487
// +kubebuilder:object:generate=false
488488
type ReplicaRole = kbappsv1.ReplicaRole
489489

490-
type MembershipReconfiguration struct {
490+
// Action defines a customizable hook or procedure tailored for different database engines,
491+
// designed to be invoked at predetermined points within the lifecycle of a Component instance.
492+
//
493+
// +kubebuilder:object:generate=false
494+
type Action = kbappsv1.Action
495+
496+
type LifecycleActions struct {
497+
// Provides variables which are used to call Actions.
498+
//
499+
// +optional
500+
TemplateVars map[string]string `json:"templateVars,omitempty"`
501+
491502
// Defines the procedure for a controlled transition of a role to a new replica.
492503
//
493504
// +optional
494-
Switchover *kbappsv1.Action `json:"switchover,omitempty"`
505+
Switchover *Action `json:"switchover,omitempty"`
506+
507+
// Defines the procedure to add a new replica.
508+
//
509+
// +optional
510+
MemberJoin *Action `json:"memberJoin,omitempty"`
495511

496-
// TODO: member join/leave
512+
// Defines the procedure to remove a replica.
513+
//
514+
// +optional
515+
MemberLeave *Action `json:"memberLeave,omitempty"`
516+
517+
// Defines the procedure that update a replica with new configuration.
518+
//
519+
// +optional
520+
Reconfigure *Action `json:"reconfigure,omitempty"`
497521
}
498522

499523
type ConfigTemplate struct {

apis/workloads/v1/zz_generated.deepcopy.go

Lines changed: 0 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)