Skip to content

Commit

Permalink
Mark .spec.components.standalone.replicas as required. This fixes pro…
Browse files Browse the repository at this point in the history
…gramatic patching on the field. (#566)

Signed-off-by: arkbriar <[email protected]>
  • Loading branch information
arkbriar authored Dec 21, 2023
1 parent f1018ac commit 700b6ca
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apis/risingwave/v1alpha1/risingwave_standalone_mode.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type RisingWaveStandaloneComponent struct {
// +kubebuilder:default=1
// +kubebuilder:validation:Minimum=0
// +kubebuilder:validation:Maximum=1
Replicas int32 `json:"replicas,omitempty"`
Replicas int32 `json:"replicas"`

// Upgrade strategy for the components. By default, it is the same as the
// workload's default strategy that the component is deployed with.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42678,6 +42678,8 @@ spec:
type: object
type: object
type: array
required:
- replicas
type: object
type: object
configuration:
Expand Down
2 changes: 2 additions & 0 deletions config/risingwave-operator-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42695,6 +42695,8 @@ spec:
type: object
type: object
type: array
required:
- replicas
type: object
type: object
configuration:
Expand Down
2 changes: 2 additions & 0 deletions config/risingwave-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42695,6 +42695,8 @@ spec:
type: object
type: object
type: array
required:
- replicas
type: object
type: object
configuration:
Expand Down

0 comments on commit 700b6ca

Please sign in to comment.