Skip to content

Commit 26c7e13

Browse files
authored
Merge pull request #4436 from jsafrane/selinux-rwx
Start SELinuxMount alpha
2 parents b8eda4e + 7bfbfe6 commit 26c7e13

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

keps/sig-storage/1710-selinux-relabeling/README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Items marked with (R) are required *prior to targeting to a milestone / release*
6464
- [ ] (R) Minimum Two Week Window for GA e2e tests to prove flake free
6565
- [x] (R) Graduation criteria is in place
6666
- [ ] (R) [all GA Endpoints](https://github.com/kubernetes/community/pull/1806) must be hit by [Conformance Tests](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/conformance-tests.md)
67-
- [ ] (R) Production readiness review completed
67+
- [x] (R) Production readiness review completed
6868
- [ ] (R) Production readiness review approved
6969
- [x] "Implementation History" section is up-to-date for milestone
7070
- [x] User-facing documentation has been created in [kubernetes/website], for publication to [kubernetes.io]
@@ -483,7 +483,9 @@ _This section must be completed when targeting alpha to a release._
483483

484484
* **How can this feature be enabled / disabled in a live cluster?**
485485
- [X] Feature gate (also fill in values in `kep.yaml`)
486-
- Feature gate name: `SELinuxMountReadWriteOncePod`
486+
- Feature gate name: `SELinuxMountReadWriteOncePod` (beta in 1.27)
487+
- Feature gate name: `SELinuxMount` (alpha in 1.30)
488+
- To enable `SELinuxMount` feature gate, `SELinuxMountReadWriteOncePod` **must** be enabled too.
487489
- Components depending on the feature gate: apiserver (API validation only), kubelet
488490
- [ ] Other
489491
- Describe the mechanism:
@@ -543,7 +545,7 @@ _This section must be completed when targeting beta graduation to a release._
543545
Longer term, we may want to require automated upgrade/rollback tests, but we
544546
are missing a bunch of machinery and tooling and do that now.
545547
546-
This will be tested manually before releasing `SELinuxMountReadWriteOncePod`
548+
This was tested manually before releasing `SELinuxMountReadWriteOncePod`
547549
enabled by default.
548550
549551
* **Is the rollout accompanied by any deprecations and/or removals of features,
@@ -568,7 +570,7 @@ _This section must be completed when targeting beta graduation to a release._
568570
* **What are the SLIs (Service Level Indicators) an operator can use to
569571
determine the health of the service?**
570572
571-
- [ ] Metrics
573+
- [x] Metrics
572574
- All `errors_total` metrics below cover real errors when a Pod can't start.
573575
It applies to `ReadWriteOncePod` volumes.
574576
- All `warnings_total` metrics below cover **future** errors that would appear if this feature was extended to all volumes.
@@ -713,6 +715,11 @@ _This section must be completed when targeting beta graduation to a release._
713715
* 1.26: Alpha with everything implemented.
714716
* 1.27: Targeting beta.
715717
* Volume reconstruction separated into its own KEP + Feature [#3756](https://github.com/kubernetes/enhancements/issues/3756).
718+
* 1.30: `SELinuxMountReadWriteOncePod` still beta, SELinuxMount (early) alpha.
719+
* Implement bare minimum of `SELinuxMount` for experiments, including:
720+
* Extend SELinux mount to all volume access modes.
721+
* Implement aforementioned kubelet admission to reject Pods that use a volume that is already mounted with a different SELinux context.
722+
This admission was useless with RWOP volumes, because kubelet already rejects Pods that use a RWOP volume that's used by another Pod.
716723
717724
## Drawbacks [optional]
718725

keps/sig-storage/1710-selinux-relabeling/kep.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,21 @@ see-also:
2121
stage: alpha
2222
latest-milestone: "v1.27"
2323
milestone:
24-
alpha: "v1.24"
25-
beta: "v1.27"
26-
stable: "v1.29"
24+
alpha: "v1.24" # SELinuxMountReadWriteOncePod
25+
beta: "v1.27" # SELinuxMountReadWriteOncePod
26+
stable: "v1.31" # Very optimistic plan for SELinuxMountReadWriteOncePod GA
27+
28+
# alpha: "v1.30" # SELinuxMount
29+
2730
feature-gates:
2831
- name: SELinuxMountReadWriteOncePod
2932
components:
3033
- kube-apiserver
3134
- kubelet
35+
- name: SELinuxMount
36+
components:
37+
- kube-apiserver
38+
- kubelet
3239
disable-supported: true
3340
metrics:
3441
- volume_manager_selinux_container_errors_total

0 commit comments

Comments
 (0)