Skip to content

Commit

Permalink
fix(api): fix typo in blockdevice API (#541)
Browse files Browse the repository at this point in the history
fix typo in blockdevice api validation

Signed-off-by: Akhil Mohan <[email protected]>
  • Loading branch information
akhilerm authored Feb 10, 2021
1 parent 8afeabd commit 5360424
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/541-akhilerm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix typo for driveType in OpenAPI validation for blockdevice API
2 changes: 1 addition & 1 deletion deploy/crds/openebs.io_blockdevices_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ spec:
description: DriveType is the type of backing drive, HDD/SSD
enum:
- HDD
- SDD
- SSD
- Unknown
- ""
type: string
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/openebs/v1alpha1/blockdevice_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ type DeviceDetails struct {
DeviceType string `json:"deviceType"`

// DriveType is the type of backing drive, HDD/SSD
// +kubebuilder:validation:Enum:=HDD;SDD;Unknown;""
// +kubebuilder:validation:Enum:=HDD;SSD;Unknown;""
// +optional
DriveType string `json:"driveType"`

Expand Down

0 comments on commit 5360424

Please sign in to comment.