Skip to content

Commit

Permalink
refactor: make meta/frontend/datanode component optional
Browse files Browse the repository at this point in the history
  • Loading branch information
zyy17 committed Oct 15, 2024
1 parent 9e8ed18 commit b48ba6c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
12 changes: 6 additions & 6 deletions apis/v1alpha1/greptimedbcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,16 +261,16 @@ type GreptimeDBClusterSpec struct {
Base *PodTemplateSpec `json:"base,omitempty"`

// Frontend is the specification of frontend node.
// +required
Frontend *FrontendSpec `json:"frontend"`
// +optional
Frontend *FrontendSpec `json:"frontend,omitempty"`

// Meta is the specification of meta node.
// +required
Meta *MetaSpec `json:"meta"`
// +optional
Meta *MetaSpec `json:"meta,omitempty"`

// Datanode is the specification of datanode node.
// +required
Datanode *DatanodeSpec `json:"datanode"`
// +optional
Datanode *DatanodeSpec `json:"datanode,omitempty"`

// Flownode is the specification of flownode node.
// +optional
Expand Down
4 changes: 0 additions & 4 deletions config/crd/resources/greptime.io_greptimedbclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17279,10 +17279,6 @@ spec:
type: object
type: object
type: object
required:
- datanode
- frontend
- meta
type: object
status:
properties:
Expand Down
4 changes: 0 additions & 4 deletions manifests/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17285,10 +17285,6 @@ spec:
type: object
type: object
type: object
required:
- datanode
- frontend
- meta
type: object
status:
properties:
Expand Down
4 changes: 0 additions & 4 deletions manifests/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17278,10 +17278,6 @@ spec:
type: object
type: object
type: object
required:
- datanode
- frontend
- meta
type: object
status:
properties:
Expand Down

0 comments on commit b48ba6c

Please sign in to comment.