- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ValidateVolumeAttachmentUpdate (0.3 sec)
-
pkg/registry/storage/volumeattachment/strategy.go
oldVolumeAttachmentObj := old.(*storage.VolumeAttachment) errorList := validation.ValidateVolumeAttachment(newVolumeAttachmentObj) return append(errorList, validation.ValidateVolumeAttachmentUpdate(newVolumeAttachmentObj, oldVolumeAttachmentObj)...) } // WarningsOnUpdate returns warnings for the given update.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 06 21:19:19 UTC 2022 - 5.1K bytes - Viewed (0) -
pkg/apis/storage/validation/validation.go
allErrs = append(allErrs, field.TooLong(fldPath.Child("message"), e.Message, maxAttachedVolumeMetadataSize)) } return allErrs } // ValidateVolumeAttachmentUpdate validates a VolumeAttachment. func ValidateVolumeAttachmentUpdate(new, old *storage.VolumeAttachment) field.ErrorList { allErrs := ValidateVolumeAttachment(new) // Spec is read-only
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 00:47:13 UTC 2024 - 25.5K bytes - Viewed (0) -
pkg/apis/storage/validation/validation_test.go
// test scenarios with PersistentVolumeName set volumeAttachment.Spec.Source.PersistentVolumeName = &volumeName old.Spec.Source.PersistentVolumeName = &volumeName if errs := ValidateVolumeAttachmentUpdate(&volumeAttachment, &old); len(errs) != 0 { t.Errorf("expected success: %+v", errs) } volumeAttachment.Spec.Source = storage.VolumeAttachmentSource{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 69.7K bytes - Viewed (0)