mirror of https://github.com/k3s-io/k3s
Remove VolumeSnapshotDataSource
parent
66ba0b006e
commit
b30f4d11ef
|
@ -28,7 +28,7 @@ func DropDisabledFields(pvcSpec, oldPVCSpec *core.PersistentVolumeClaimSpec) {
|
||||||
if !utilfeature.DefaultFeatureGate.Enabled(features.BlockVolume) && !volumeModeInUse(oldPVCSpec) {
|
if !utilfeature.DefaultFeatureGate.Enabled(features.BlockVolume) && !volumeModeInUse(oldPVCSpec) {
|
||||||
pvcSpec.VolumeMode = nil
|
pvcSpec.VolumeMode = nil
|
||||||
}
|
}
|
||||||
if !utilfeature.DefaultFeatureGate.Enabled(features.VolumeSnapshotDataSource) && !volumeSnapshotDataSourceInUse(oldPVCSpec) {
|
if !volumeSnapshotDataSourceInUse(oldPVCSpec) {
|
||||||
pvcSpec.DataSource = nil
|
pvcSpec.DataSource = nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -296,12 +296,6 @@ const (
|
||||||
// (Kube) Node Lifecycle Controller uses these heartbeats as a node health signal.
|
// (Kube) Node Lifecycle Controller uses these heartbeats as a node health signal.
|
||||||
NodeLease utilfeature.Feature = "NodeLease"
|
NodeLease utilfeature.Feature = "NodeLease"
|
||||||
|
|
||||||
// owner: @xing-yang
|
|
||||||
// alpha: v1.12
|
|
||||||
//
|
|
||||||
// Enable volume snapshot data source support.
|
|
||||||
VolumeSnapshotDataSource utilfeature.Feature = "VolumeSnapshotDataSource"
|
|
||||||
|
|
||||||
// owner: @jessfraz
|
// owner: @jessfraz
|
||||||
// alpha: v1.12
|
// alpha: v1.12
|
||||||
//
|
//
|
||||||
|
@ -412,7 +406,6 @@ var defaultKubernetesFeatureGates = map[utilfeature.Feature]utilfeature.FeatureS
|
||||||
CSIInlineVolume: {Default: false, PreRelease: utilfeature.Alpha},
|
CSIInlineVolume: {Default: false, PreRelease: utilfeature.Alpha},
|
||||||
RuntimeClass: {Default: true, PreRelease: utilfeature.Beta},
|
RuntimeClass: {Default: true, PreRelease: utilfeature.Beta},
|
||||||
NodeLease: {Default: true, PreRelease: utilfeature.Beta},
|
NodeLease: {Default: true, PreRelease: utilfeature.Beta},
|
||||||
VolumeSnapshotDataSource: {Default: false, PreRelease: utilfeature.Alpha},
|
|
||||||
ProcMountType: {Default: false, PreRelease: utilfeature.Alpha},
|
ProcMountType: {Default: false, PreRelease: utilfeature.Alpha},
|
||||||
TTLAfterFinished: {Default: false, PreRelease: utilfeature.Alpha},
|
TTLAfterFinished: {Default: false, PreRelease: utilfeature.Alpha},
|
||||||
KubeletPodResources: {Default: false, PreRelease: utilfeature.Alpha},
|
KubeletPodResources: {Default: false, PreRelease: utilfeature.Alpha},
|
||||||
|
|
Loading…
Reference in New Issue