Skip to content

Commit

Permalink
allow containers.privileged
Browse files Browse the repository at this point in the history
  • Loading branch information
dprotaso committed Dec 30, 2024
1 parent 58923e7 commit a8e7a70
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
4 changes: 4 additions & 0 deletions cmd/schema-tweak/overrides.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,16 @@ func revSpecOverrides(prefixPath string) []entry {
allowedFields: sets.New(
"allowPrivilegeEscalation",
"capabilities",
"privileged",
"readOnlyRootFilesystem",
"runAsGroup",
"runAsNonRoot",
"runAsUser",
"seccompProfile",
),
}, {
path: "containers.securityContext.privileged",
description: "Run container in privileged mode. This can only be set to explicitly to 'false'",
}, {
path: "containers.securityContext.capabilities",
allowedFields: sets.New(
Expand Down
5 changes: 1 addition & 4 deletions config/core/300-resources/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -695,10 +695,7 @@ spec:
x-kubernetes-list-type: atomic
privileged:
description: |-
Run container in privileged mode.
Processes in privileged containers are essentially equivalent to root on the host.
Defaults to false.
Note that this field cannot be set when spec.os.name is windows.
Run container in privileged mode. This can only be set to explicitly to 'false'
type: boolean
readOnlyRootFilesystem:
description: |-
Expand Down
5 changes: 1 addition & 4 deletions config/core/300-resources/revision.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -671,10 +671,7 @@ spec:
x-kubernetes-list-type: atomic
privileged:
description: |-
Run container in privileged mode.
Processes in privileged containers are essentially equivalent to root on the host.
Defaults to false.
Note that this field cannot be set when spec.os.name is windows.
Run container in privileged mode. This can only be set to explicitly to 'false'
type: boolean
readOnlyRootFilesystem:
description: |-
Expand Down
5 changes: 1 addition & 4 deletions config/core/300-resources/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -713,10 +713,7 @@ spec:
x-kubernetes-list-type: atomic
privileged:
description: |-
Run container in privileged mode.
Processes in privileged containers are essentially equivalent to root on the host.
Defaults to false.
Note that this field cannot be set when spec.os.name is windows.
Run container in privileged mode. This can only be set to explicitly to 'false'
type: boolean
readOnlyRootFilesystem:
description: |-
Expand Down

0 comments on commit a8e7a70

Please sign in to comment.