Move Snapshot to GA

This commit is contained in:
xing-yang
2020-09-26 16:23:05 +00:00
parent 17376e6aef
commit c0eaee3494
8 changed files with 58 additions and 132 deletions

View File

@@ -61,9 +61,7 @@ func dataSourceIsEnabled(pvcSpec *core.PersistentVolumeClaimSpec) bool {
}
if utilfeature.DefaultFeatureGate.Enabled(features.VolumeSnapshotDataSource) &&
pvcSpec.DataSource.Kind == volumeSnapshot &&
apiGroup == "snapshot.storage.k8s.io" {
if pvcSpec.DataSource.Kind == volumeSnapshot && apiGroup == "snapshot.storage.k8s.io" {
return true
}
}