Style: volumeId -> volumeID
This commit is contained in:
@@ -407,7 +407,7 @@ type ISCSIVolumeSource struct {
|
||||
// A AWS EBS disk can only be mounted as read/write once.
|
||||
type AWSElasticBlockStoreVolumeSource struct {
|
||||
// Unique id of the persistent disk resource. Used to identify the disk in AWS
|
||||
VolumeId string `json:"volumeId"`
|
||||
VolumeID string `json:"volumeID"`
|
||||
// Required: Filesystem type to mount.
|
||||
// Must be a filesystem type supported by the host operating system.
|
||||
// Ex. "ext4", "xfs", "ntfs"
|
||||
|
@@ -315,7 +315,7 @@ type ISCSIVolumeSource struct {
|
||||
// A AWS PD can only be mounted on a single machine.
|
||||
type AWSElasticBlockStoreVolumeSource struct {
|
||||
// Unique id of the PD resource. Used to identify the disk in AWS
|
||||
VolumeId string `json:"volumeId" description:"unique id of the PD resource in AWS"`
|
||||
VolumeID string `json:"volumeID" description:"unique id of the PD resource in AWS"`
|
||||
// Required: Filesystem type to mount.
|
||||
// Must be a filesystem type supported by the host operating system.
|
||||
// Ex. "ext4", "xfs", "ntfs"
|
||||
|
@@ -297,7 +297,7 @@ type GCEPersistentDiskVolumeSource struct {
|
||||
// A AWS PD can only be mounted on a single machine.
|
||||
type AWSElasticBlockStoreVolumeSource struct {
|
||||
// Unique id of the PD resource. Used to identify the disk in AWS
|
||||
VolumeId string `json:"volumeId" description:"unique id of the PD resource in AWS"`
|
||||
VolumeID string `json:"volumeID" description:"unique id of the PD resource in AWS"`
|
||||
// Required: Filesystem type to mount.
|
||||
// Must be a filesystem type supported by the host operating system.
|
||||
// Ex. "ext4", "xfs", "ntfs"
|
||||
|
@@ -413,7 +413,7 @@ type GCEPersistentDiskVolumeSource struct {
|
||||
// A AWS PD can only be mounted on a single machine.
|
||||
type AWSElasticBlockStoreVolumeSource struct {
|
||||
// Unique id of the PD resource. Used to identify the disk in AWS
|
||||
VolumeId string `json:"volumeId" description:"unique id of the PD resource in AWS"`
|
||||
VolumeID string `json:"volumeID" description:"unique id of the PD resource in AWS"`
|
||||
// Required: Filesystem type to mount.
|
||||
// Must be a filesystem type supported by the host operating system.
|
||||
// Ex. "ext4", "xfs", "ntfs"
|
||||
|
@@ -374,8 +374,8 @@ func validateGCEPersistentDiskVolumeSource(PD *api.GCEPersistentDiskVolumeSource
|
||||
|
||||
func validateAWSElasticBlockStoreVolumeSource(PD *api.AWSElasticBlockStoreVolumeSource) errs.ValidationErrorList {
|
||||
allErrs := errs.ValidationErrorList{}
|
||||
if PD.VolumeId == "" {
|
||||
allErrs = append(allErrs, errs.NewFieldRequired("volumeId"))
|
||||
if PD.VolumeID == "" {
|
||||
allErrs = append(allErrs, errs.NewFieldRequired("volumeID"))
|
||||
}
|
||||
if PD.FSType == "" {
|
||||
allErrs = append(allErrs, errs.NewFieldRequired("fsType"))
|
||||
|
Reference in New Issue
Block a user