diff --git a/changelogs/unreleased/541-akhilerm b/changelogs/unreleased/541-akhilerm new file mode 100644 index 000000000..5a69476cb --- /dev/null +++ b/changelogs/unreleased/541-akhilerm @@ -0,0 +1 @@ +fix typo for driveType in OpenAPI validation for blockdevice API \ No newline at end of file diff --git a/deploy/crds/openebs.io_blockdevices_crd.yaml b/deploy/crds/openebs.io_blockdevices_crd.yaml index 2bcc43c37..793b04bcb 100644 --- a/deploy/crds/openebs.io_blockdevices_crd.yaml +++ b/deploy/crds/openebs.io_blockdevices_crd.yaml @@ -143,7 +143,7 @@ spec: description: DriveType is the type of backing drive, HDD/SSD enum: - HDD - - SDD + - SSD - Unknown - "" type: string diff --git a/pkg/apis/openebs/v1alpha1/blockdevice_types.go b/pkg/apis/openebs/v1alpha1/blockdevice_types.go index be9d6a381..07f6f696a 100644 --- a/pkg/apis/openebs/v1alpha1/blockdevice_types.go +++ b/pkg/apis/openebs/v1alpha1/blockdevice_types.go @@ -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"`