Documentation ¶
Index ¶
- Variables
- func ValidateCSIDriver(csiDriver *storage.CSIDriver) field.ErrorList
- func ValidateCSIDriverUpdate(new, old *storage.CSIDriver) field.ErrorList
- func ValidateCSINode(csiNode *storage.CSINode, validationOpts CSINodeValidationOptions) field.ErrorList
- func ValidateCSINodeUpdate(new, old *storage.CSINode, validationOpts CSINodeValidationOptions) field.ErrorList
- func ValidateCSIStorageCapacity(capacity *storage.CSIStorageCapacity, opts CSIStorageCapacityValidateOptions) field.ErrorList
- func ValidateCSIStorageCapacityUpdate(capacity, oldCapacity *storage.CSIStorageCapacity) field.ErrorList
- func ValidateStorageClass(storageClass *storage.StorageClass) field.ErrorList
- func ValidateStorageClassUpdate(storageClass, oldStorageClass *storage.StorageClass) field.ErrorList
- func ValidateVolumeAttachment(volumeAttachment *storage.VolumeAttachment) field.ErrorList
- func ValidateVolumeAttachmentUpdate(new, old *storage.VolumeAttachment) field.ErrorList
- func ValidateVolumeAttachmentV1(volumeAttachment *storage.VolumeAttachment) field.ErrorList
- type CSINodeValidationOptions
- type CSIStorageCapacityValidateOptions
Constants ¶
This section is empty.
Variables ¶
var ValidateCSIDriverName = apimachineryvalidation.NameIsDNSSubdomain
ValidateCSIDriverName checks that a name is appropriate for a CSIDriver object.
var ValidateStorageCapacityName = apimachineryvalidation.NameIsDNSSubdomain
ValidateStorageCapacityName checks that a name is appropriate for a CSIStorageCapacity object.
Functions ¶
func ValidateCSIDriver ¶ added in v1.14.0
ValidateCSIDriver validates a CSIDriver.
func ValidateCSIDriverUpdate ¶ added in v1.14.0
ValidateCSIDriverUpdate validates a CSIDriver.
func ValidateCSINode ¶ added in v1.14.0
func ValidateCSINode(csiNode *storage.CSINode, validationOpts CSINodeValidationOptions) field.ErrorList
ValidateCSINode validates a CSINode.
func ValidateCSINodeUpdate ¶ added in v1.14.0
func ValidateCSINodeUpdate(new, old *storage.CSINode, validationOpts CSINodeValidationOptions) field.ErrorList
ValidateCSINodeUpdate validates a CSINode.
func ValidateCSIStorageCapacity ¶ added in v1.19.0
func ValidateCSIStorageCapacity(capacity *storage.CSIStorageCapacity, opts CSIStorageCapacityValidateOptions) field.ErrorList
ValidateCSIStorageCapacity validates a CSIStorageCapacity.
func ValidateCSIStorageCapacityUpdate ¶ added in v1.19.0
func ValidateCSIStorageCapacityUpdate(capacity, oldCapacity *storage.CSIStorageCapacity) field.ErrorList
ValidateCSIStorageCapacityUpdate tests if an update to CSIStorageCapacity is valid.
func ValidateStorageClass ¶
func ValidateStorageClass(storageClass *storage.StorageClass) field.ErrorList
ValidateStorageClass validates a StorageClass.
func ValidateStorageClassUpdate ¶
func ValidateStorageClassUpdate(storageClass, oldStorageClass *storage.StorageClass) field.ErrorList
ValidateStorageClassUpdate tests if an update to StorageClass is valid.
func ValidateVolumeAttachment ¶ added in v1.9.0
func ValidateVolumeAttachment(volumeAttachment *storage.VolumeAttachment) field.ErrorList
ValidateVolumeAttachment validates a VolumeAttachment. This function is common for v1 and v1beta1 objects,
func ValidateVolumeAttachmentUpdate ¶ added in v1.9.0
func ValidateVolumeAttachmentUpdate(new, old *storage.VolumeAttachment) field.ErrorList
ValidateVolumeAttachmentUpdate validates a VolumeAttachment.
func ValidateVolumeAttachmentV1 ¶ added in v1.13.0
func ValidateVolumeAttachmentV1(volumeAttachment *storage.VolumeAttachment) field.ErrorList
ValidateVolumeAttachmentV1 validates a v1/VolumeAttachment. It contains only extra checks missing in ValidateVolumeAttachment.
Types ¶
type CSINodeValidationOptions ¶ added in v1.21.0
type CSINodeValidationOptions struct {
AllowLongNodeID bool
}
CSINodeValidationOptions contains the validation options for validating CSINode
type CSIStorageCapacityValidateOptions ¶ added in v1.26.0
type CSIStorageCapacityValidateOptions struct {
AllowInvalidLabelValueInSelector bool
}