Skip to content

Commit

Permalink
bugfix: Set Dataset.Spec.Mounts as a required property (#3240)
Browse files Browse the repository at this point in the history
* Set Dataset.Spec.Mounts as a required property

Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>

* Generate openapi

Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>

---------

Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
  • Loading branch information
TrafalgarZZZ authored May 19, 2023
1 parent 8322397 commit 3ef8adc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1alpha1/dataset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ type DatasetSpec struct {
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:UniqueItems=false
// +required
Mounts []Mount `json:"mounts,omitempty"`
Mounts []Mount `json:"mounts"`

// The owner of the dataset
// +optional
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/openapi_generated.go

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

2 changes: 2 additions & 0 deletions charts/fluid/fluid/crds/data.fluid.io_datasets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ spec:
type: string
type: object
type: array
required:
- mounts
type: object
status:
description: DatasetStatus defines the observed state of Dataset
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/data.fluid.io_datasets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ spec:
type: string
type: object
type: array
required:
- mounts
type: object
status:
description: DatasetStatus defines the observed state of Dataset
Expand Down

0 comments on commit 3ef8adc

Please sign in to comment.