Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NormalizeDataSources (0.32 sec)

  1. pkg/api/persistentvolumeclaim/util.go

    		return false
    	}
    	if oldPVCSpec.DataSourceRef != nil {
    		return true
    	}
    	return false
    }
    
    // NormalizeDataSources ensures that DataSource and DataSourceRef have the same contents
    // as long as both are not explicitly set.
    // This should be used by creates/gets of PVCs, but not updates
    func NormalizeDataSources(pvcSpec *core.PersistentVolumeClaimSpec) {
    	// Don't enable this behavior if the feature gate is not on
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:18:56 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  2. pkg/api/persistentvolumeclaim/util_test.go

    	featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.CrossNamespaceVolumeDataSource, true)
    
    	for testName, test := range tests {
    		t.Run(testName, func(t *testing.T) {
    			NormalizeDataSources(&test.spec)
    			if !reflect.DeepEqual(test.spec.DataSource, test.want) {
    				t.Errorf("expected condition was not met, test: %s, spec.datasource: %+v, want: %+v",
    					testName, test.spec.DataSource, test.want)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.9K bytes
    - Viewed (0)
Back to top