mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
ReadWriteOncePod PV access mode and feature gate
This commit is contained in:
parent
358d2e0bd1
commit
48ba5020a2
@ -511,6 +511,9 @@ const (
|
|||||||
ReadOnlyMany PersistentVolumeAccessMode = "ReadOnlyMany"
|
ReadOnlyMany PersistentVolumeAccessMode = "ReadOnlyMany"
|
||||||
// can be mounted in read/write mode to many hosts
|
// can be mounted in read/write mode to many hosts
|
||||||
ReadWriteMany PersistentVolumeAccessMode = "ReadWriteMany"
|
ReadWriteMany PersistentVolumeAccessMode = "ReadWriteMany"
|
||||||
|
// can be mounted read/write mode to exactly 1 pod
|
||||||
|
// cannot be used in combination with other access modes
|
||||||
|
ReadWriteOncePod PersistentVolumeAccessMode = "ReadWriteOncePod"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PersistentVolumePhase defines the phase in which a PV is
|
// PersistentVolumePhase defines the phase in which a PV is
|
||||||
|
@ -727,6 +727,12 @@ const (
|
|||||||
//
|
//
|
||||||
// Enables the PodSecurity admission plugin
|
// Enables the PodSecurity admission plugin
|
||||||
PodSecurity featuregate.Feature = "PodSecurity"
|
PodSecurity featuregate.Feature = "PodSecurity"
|
||||||
|
|
||||||
|
// owner: @chrishenzie
|
||||||
|
// alpha: v1.22
|
||||||
|
//
|
||||||
|
// Enables usage of the ReadWriteOncePod PersistentVolume access mode.
|
||||||
|
ReadWriteOncePod featuregate.Feature = "ReadWriteOncePod"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@ -836,6 +842,7 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
|
|||||||
ExpandedDNSConfig: {Default: false, PreRelease: featuregate.Alpha},
|
ExpandedDNSConfig: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
SeccompDefault: {Default: false, PreRelease: featuregate.Alpha},
|
SeccompDefault: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
PodSecurity: {Default: false, PreRelease: featuregate.Alpha},
|
PodSecurity: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
|
ReadWriteOncePod: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
|
|
||||||
// inherited features from generic apiserver, relisted here to get a conflict if it is changed
|
// inherited features from generic apiserver, relisted here to get a conflict if it is changed
|
||||||
// unintentionally on either side:
|
// unintentionally on either side:
|
||||||
|
@ -560,6 +560,9 @@ const (
|
|||||||
ReadOnlyMany PersistentVolumeAccessMode = "ReadOnlyMany"
|
ReadOnlyMany PersistentVolumeAccessMode = "ReadOnlyMany"
|
||||||
// can be mounted in read/write mode to many hosts
|
// can be mounted in read/write mode to many hosts
|
||||||
ReadWriteMany PersistentVolumeAccessMode = "ReadWriteMany"
|
ReadWriteMany PersistentVolumeAccessMode = "ReadWriteMany"
|
||||||
|
// can be mounted in read/write mode to exactly 1 pod
|
||||||
|
// cannot be used in combination with other access modes
|
||||||
|
ReadWriteOncePod PersistentVolumeAccessMode = "ReadWriteOncePod"
|
||||||
)
|
)
|
||||||
|
|
||||||
type PersistentVolumePhase string
|
type PersistentVolumePhase string
|
||||||
|
Loading…
Reference in New Issue
Block a user