mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-21 01:50:55 +00:00
Enable PVC as DataSource for PVC creation
This enables the ability to specify and existing PVC as a DataSource in a new PVC Spec (eg "clone" and existing volume).
This commit is contained in:
@@ -65,7 +65,6 @@ func dataSourceIsEnabled(pvcSpec *core.PersistentVolumeClaimSpec) bool {
|
||||
*pvcSpec.DataSource.APIGroup == "snapshot.storage.k8s.io" &&
|
||||
utilfeature.DefaultFeatureGate.Enabled(features.VolumeSnapshotDataSource) {
|
||||
return true
|
||||
|
||||
}
|
||||
}
|
||||
return false
|
||||
|
Reference in New Issue
Block a user