From 0b1a507b002dc3e566c836172ce9fe0d09d92bc1 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Sat, 9 Mar 2024 09:48:10 +0900 Subject: [PATCH] pkg/features: add RecursiveReadOnlyMounts For KEP-3857: Recursive Read-only (RRO) mounts Signed-off-by: Akihiro Suda --- pkg/features/kube_features.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkg/features/kube_features.go b/pkg/features/kube_features.go index a5092d25d22..ae1e4193cbd 100644 --- a/pkg/features/kube_features.go +++ b/pkg/features/kube_features.go @@ -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() { @@ -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}, }