Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnleelhl committed Feb 20, 2023
1 parent 73a86bd commit 3f7e69a
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 7 deletions.
4 changes: 4 additions & 0 deletions apis/dbaas/v1alpha1/clusterdefinition_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ type ClusterDefinitionComponent struct {
// +kubebuilder:validation:Pattern:=`^[a-z0-9]([a-z0-9\.\-]*[a-z0-9])?$`
TypeName string `json:"typeName"`

// migratableComponentDefs defines componentDefs that are migratable.
// +optional
MigratableComponentDefs []string `json:"migratableComponentDefs"`

// componentType defines type of the component.
// Stateless is a stateless component type used to describe stateless applications.
// Stateful is a stateful component type used to describe common stateful applications.
Expand Down
6 changes: 6 additions & 0 deletions config/crd/bases/dbaas.kubeblocks.io_clusterdefinitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,12 @@ spec:
format: int32
minimum: 0
type: integer
migratableComponentDefs:
description: migratableComponentDefs defines componentDefs that
are migratable.
items:
type: string
type: array
minReplicas:
default: 0
description: minReplicas minimum replicas for component pod
Expand Down
6 changes: 6 additions & 0 deletions deploy/helm/crds/dbaas.kubeblocks.io_clusterdefinitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,12 @@ spec:
format: int32
minimum: 0
type: integer
migratableComponentDefs:
description: migratableComponentDefs defines componentDefs that
are migratable.
items:
type: string
type: array
minReplicas:
default: 0
description: minReplicas minimum replicas for component pod
Expand Down
4 changes: 2 additions & 2 deletions internal/configuration/proto/reconfigure.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/configuration/proto/reconfigure_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion internal/controller/component/component_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ import (

ctrl "sigs.k8s.io/controller-runtime"

corev1 "k8s.io/api/core/v1"

dbaasv1alpha1 "github.com/apecloud/kubeblocks/apis/dbaas/v1alpha1"
intctrlutil "github.com/apecloud/kubeblocks/internal/controllerutil"
testdbaas "github.com/apecloud/kubeblocks/internal/testutil/dbaas"
corev1 "k8s.io/api/core/v1"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions internal/loadbalancer/protocol/node.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/loadbalancer/protocol/node_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3f7e69a

Please sign in to comment.