Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ValidateVolumeAttachmentV1 (0.17 sec)

  1. pkg/registry/storage/volumeattachment/strategy.go

    	volumeAttachment := obj.(*storage.VolumeAttachment)
    
    	errs := validation.ValidateVolumeAttachment(volumeAttachment)
    
    	// tighten up validation of newly created v1 attachments
    	errs = append(errs, validation.ValidateVolumeAttachmentV1(volumeAttachment)...)
    	return errs
    }
    
    // WarningsOnCreate returns warnings for the creation of the given object.
    func (volumeAttachmentStrategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 06 21:19:19 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  2. pkg/apis/storage/validation/validation.go

    	allErrs = append(allErrs, validateVolumeAttachmentStatus(&volumeAttachment.Status, field.NewPath("status"))...)
    	return allErrs
    }
    
    // ValidateVolumeAttachmentV1 validates a v1/VolumeAttachment. It contains only extra checks missing in
    // ValidateVolumeAttachment.
    func ValidateVolumeAttachmentV1(volumeAttachment *storage.VolumeAttachment) field.ErrorList {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 00:47:13 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  3. pkg/apis/storage/validation/validation_test.go

    			Source: storage.VolumeAttachmentSource{
    				PersistentVolumeName: &volumeName,
    			},
    			NodeName: "mynode",
    		},
    	}}
    
    	for _, volumeAttachment := range successCases {
    		if errs := ValidateVolumeAttachmentV1(&volumeAttachment); len(errs) != 0 {
    			t.Errorf("expected success: %+v", errs)
    		}
    	}
    
    	errorCases := []storage.VolumeAttachment{{
    		// Invalid attacher name
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 69.7K bytes
    - Viewed (0)
Back to top