- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for NormalizeDataSources (0.26 sec)
-
pkg/registry/core/persistentvolumeclaim/strategy.go
// in again here. pvcutil.EnforceDataSourceBackwardsCompatibility(&newPvc.Spec, &oldPvc.Spec) pvcutil.NormalizeDataSources(&newPvc.Spec) // We also normalize the data source fields of the old PVC, so that objects saved // from an earlier version will pass validation. pvcutil.NormalizeDataSources(&oldPvc.Spec) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 09 20:58:25 UTC 2022 - 7.8K bytes - Viewed (0) -
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) -
pkg/registry/core/persistentvolumeclaim/storage/storage.go
// We set dataSourceRef to the same value as dataSource at creation time now, // but for pre-existing PVCs with data sources, the dataSourceRef field will // be blank, so we fill it in here at read time. pvcutil.NormalizeDataSources(&pvc.Spec) } // StatusREST implements the REST endpoint for changing the status of a persistentvolumeclaim. type StatusREST struct { store *genericregistry.Store }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 18 09:21:19 UTC 2022 - 5.8K bytes - Viewed (0) -
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)