Skip to content

Commit 7a9e33e

Browse files
authored
Merge pull request #49880 from everpeace/KEP-3619-beta
[dev-1.33] KEP-3619: Promote Fine-grained SupplementalGroups control to Beta
2 parents 78a1eb4 + 1ade2e0 commit 7a9e33e

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

content/en/docs/reference/command-line-tools-reference/feature-gates/SupplementalGroupsPolicy.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ stages:
99
- stage: alpha
1010
defaultValue: false
1111
fromVersion: "1.31"
12+
toVersion: "1.32"
13+
- stage: beta
14+
defaultValue: true
15+
fromVersion: "1.33"
1216
---
1317
Enables support for fine-grained SupplementalGroups control.
1418
For more details, see [Configure fine-grained SupplementalGroups control for a Pod](/content/en/docs/tasks/configure-pod-container/security-context/#supplementalgroupspolicy).

content/en/docs/tasks/configure-pod-container/security-context.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,25 @@ status:
336336
features:
337337
supplementalGroupsPolicy: true
338338
```
339+
{{<note>}}
340+
At this alpha release(from v1.31 to v1.32), when a pod with `SupplementalGroupsPolicy=Strict` are scheduled to a node that does NOT support this feature(i.e. `.status.features.supplementalGroupsPolicy=false`), the pod's supplemental groups policy falls back to the `Merge` policy _silently_.
341+
342+
However, since the beta release (v1.33), to enforce the policy more strictly, __such pod creation will be rejected by kubelet because the node cannot ensure the specified policy__. When your pod is rejected, you will see warning events with `reason=SupplementalGroupsPolicyNotSupported` like below:
343+
344+
```yaml
345+
apiVersion: v1
346+
kind: Event
347+
...
348+
type: Warning
349+
reason: SupplementalGroupsPolicyNotSupported
350+
message: "SupplementalGroupsPolicy=Strict is not supported in this node"
351+
involvedObject:
352+
apiVersion: v1
353+
kind: Pod
354+
...
355+
```
356+
{{</note>}}
357+
339358

340359
## Configure volume permission and ownership change policy for Pods
341360

0 commit comments

Comments
 (0)