Skip to content

Commit

Permalink
pkg/features: add RecursiveReadOnlyMounts
Browse files Browse the repository at this point in the history
For KEP-3857: Recursive Read-only (RRO) mounts

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
  • Loading branch information
AkihiroSuda committed Mar 9, 2024
1 parent 76081a1 commit 0b1a507
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/features/kube_features.go
Expand Up @@ -975,6 +975,13 @@ const (
// Speed up container startup by mounting volumes with the correct SELinux label
// instead of changing each file on the volumes recursively.
SELinuxMount featuregate.Feature = "SELinuxMount"

// owner: @AkihiroSuda
// kep: https://kep.k8s.io/3857
// alpha: v1.30
//
// Allows recursive read-only mounts.
RecursiveReadOnlyMounts featuregate.Feature = "RecursiveReadOnlyMounts"
)

func init() {
Expand Down Expand Up @@ -1316,4 +1323,6 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
HPAScaleToZero: {Default: false, PreRelease: featuregate.Alpha},

StorageNamespaceIndex: {Default: true, PreRelease: featuregate.Beta},

RecursiveReadOnlyMounts: {Default: false, PreRelease: featuregate.Alpha},
}

0 comments on commit 0b1a507

Please sign in to comment.