Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for defaultOnReadPvc (0.42 sec)

  1. pkg/registry/core/persistentvolumeclaim/storage/storage.go

    	if pvcList == nil {
    		return
    	}
    
    	for i := range pvcList.Items {
    		r.defaultOnReadPvc(&pvcList.Items[i])
    	}
    }
    
    // defaultOnReadPvc defaults a single PersistentVolumeClaim.
    func (r *REST) defaultOnReadPvc(pvc *api.PersistentVolumeClaim) {
    	if pvc == nil {
    		return
    	}
    
    	// We set dataSourceRef to the same value as dataSource at creation time now,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:19 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  2. pkg/registry/core/persistentvolumeclaim/storage/storage_test.go

    				expectDataSource = &dataSource
    			}
    			var expectDataSourceRef *api.TypedObjectReference
    			if test.wantRef {
    				expectDataSourceRef = &dataSourceRef
    			}
    
    			// Method under test
    			storage.defaultOnReadPvc(pvc)
    
    			if !reflect.DeepEqual(pvc.Spec.DataSource, expectDataSource) {
    				t.Errorf("data source does not match, test: %s, anyEnabled: %v, dataSource: %v, expected: %v",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top