mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
generic ephemeral volumes: promote to beta
This commit is contained in:
parent
40a411a61a
commit
dcce753eda
@ -157,7 +157,7 @@ type VolumeSource struct {
|
|||||||
// CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
|
// CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
|
||||||
// +optional
|
// +optional
|
||||||
CSI *CSIVolumeSource
|
CSI *CSIVolumeSource
|
||||||
// Ephemeral represents a volume that is handled by a cluster storage driver (Alpha feature).
|
// Ephemeral represents a volume that is handled by a cluster storage driver.
|
||||||
// The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
|
// The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
|
||||||
// and deleted when the pod is removed.
|
// and deleted when the pod is removed.
|
||||||
//
|
//
|
||||||
@ -182,6 +182,9 @@ type VolumeSource struct {
|
|||||||
// A pod can use both types of ephemeral volumes and
|
// A pod can use both types of ephemeral volumes and
|
||||||
// persistent volumes at the same time.
|
// persistent volumes at the same time.
|
||||||
//
|
//
|
||||||
|
// This is a beta feature and only available when the GenericEphemeralVolume
|
||||||
|
// feature gate is enabled.
|
||||||
|
//
|
||||||
// +optional
|
// +optional
|
||||||
Ephemeral *EphemeralVolumeSource
|
Ephemeral *EphemeralVolumeSource
|
||||||
}
|
}
|
||||||
|
@ -248,6 +248,7 @@ const (
|
|||||||
|
|
||||||
// owner: @pohly
|
// owner: @pohly
|
||||||
// alpha: v1.19
|
// alpha: v1.19
|
||||||
|
// beta: v1.21
|
||||||
//
|
//
|
||||||
// Enables generic ephemeral inline volume support for pods
|
// Enables generic ephemeral inline volume support for pods
|
||||||
GenericEphemeralVolume featuregate.Feature = "GenericEphemeralVolume"
|
GenericEphemeralVolume featuregate.Feature = "GenericEphemeralVolume"
|
||||||
@ -783,7 +784,7 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
|
|||||||
CSIInlineVolume: {Default: true, PreRelease: featuregate.Beta},
|
CSIInlineVolume: {Default: true, PreRelease: featuregate.Beta},
|
||||||
CSIStorageCapacity: {Default: true, PreRelease: featuregate.Beta},
|
CSIStorageCapacity: {Default: true, PreRelease: featuregate.Beta},
|
||||||
CSIServiceAccountToken: {Default: false, PreRelease: featuregate.Alpha},
|
CSIServiceAccountToken: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
GenericEphemeralVolume: {Default: false, PreRelease: featuregate.Alpha},
|
GenericEphemeralVolume: {Default: true, PreRelease: featuregate.Beta},
|
||||||
CSIVolumeFSGroupPolicy: {Default: true, PreRelease: featuregate.Beta},
|
CSIVolumeFSGroupPolicy: {Default: true, PreRelease: featuregate.Beta},
|
||||||
RuntimeClass: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.23
|
RuntimeClass: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.23
|
||||||
NodeLease: {Default: true, PreRelease: featuregate.GA, LockToDefault: true},
|
NodeLease: {Default: true, PreRelease: featuregate.GA, LockToDefault: true},
|
||||||
|
@ -156,7 +156,7 @@ type VolumeSource struct {
|
|||||||
// CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
|
// CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
|
||||||
// +optional
|
// +optional
|
||||||
CSI *CSIVolumeSource `json:"csi,omitempty" protobuf:"bytes,28,opt,name=csi"`
|
CSI *CSIVolumeSource `json:"csi,omitempty" protobuf:"bytes,28,opt,name=csi"`
|
||||||
// Ephemeral represents a volume that is handled by a cluster storage driver (Alpha feature).
|
// Ephemeral represents a volume that is handled by a cluster storage driver.
|
||||||
// The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
|
// The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
|
||||||
// and deleted when the pod is removed.
|
// and deleted when the pod is removed.
|
||||||
//
|
//
|
||||||
@ -181,6 +181,9 @@ type VolumeSource struct {
|
|||||||
// A pod can use both types of ephemeral volumes and
|
// A pod can use both types of ephemeral volumes and
|
||||||
// persistent volumes at the same time.
|
// persistent volumes at the same time.
|
||||||
//
|
//
|
||||||
|
// This is a beta feature and only available when the GenericEphemeralVolume
|
||||||
|
// feature gate is enabled.
|
||||||
|
//
|
||||||
// +optional
|
// +optional
|
||||||
Ephemeral *EphemeralVolumeSource `json:"ephemeral,omitempty" protobuf:"bytes,29,opt,name=ephemeral"`
|
Ephemeral *EphemeralVolumeSource `json:"ephemeral,omitempty" protobuf:"bytes,29,opt,name=ephemeral"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user