Skip to content

Commit

Permalink
Merge pull request #9236 from leseb/fix-9234
Browse files Browse the repository at this point in the history
core: fix openshift security context
  • Loading branch information
leseb committed Nov 24, 2021
2 parents 68f8d5c + b38f430 commit 3e299fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cluster/examples/kubernetes/ceph/operator-openshift.yaml
Expand Up @@ -18,7 +18,7 @@ allowHostNetwork: false
# set to true if running rook with the provider as host
allowHostPorts: false
priority:
allowedCapabilities: []
allowedCapabilities: ["MKNOD"]
allowHostIPC: true
readOnlyRootFilesystem: false
requiredDropCapabilities: []
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/ceph.rook.io/v1/scc.go
Expand Up @@ -42,6 +42,7 @@ func NewSecurityContextConstraints(name, namespace string) *secv1.SecurityContex
AllowHostIPC: true,
AllowHostNetwork: false,
AllowHostPorts: false,
AllowedCapabilities: []corev1.Capability{"MKNOD"},
RequiredDropCapabilities: []corev1.Capability{},
DefaultAddCapabilities: []corev1.Capability{},
RunAsUser: secv1.RunAsUserStrategyOptions{
Expand Down

0 comments on commit 3e299fb

Please sign in to comment.