core: add AllowHostDirVolumePlugin: true to SCC

Adds AllowHostDirVolumePlugin to the go representation of the rook-ceph
SCC for using the hostPath. Also making it consistent with the yaml
representation.

From Openshift docs

For backwards compatibility, the usage of allowHostDirVolumePlugin overrides
settings in the volumes field. For example, if allowHostDirVolumePlugin is
set to false but allowed in the volumes field, then the hostPath
value will be removed from volumes.

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
This commit is contained in:
Santosh Pillai
2021-11-08 19:55:54 +05:30
parent 6f4a68c81f
commit 584b3bd328
+1
View File
@@ -38,6 +38,7 @@ func NewSecurityContextConstraints(name, namespace string) *secv1.SecurityContex
Namespace: namespace,
},
AllowPrivilegedContainer: true,
AllowHostDirVolumePlugin: true,
ReadOnlyRootFilesystem: false,
AllowHostIPC: true,
AllowHostNetwork: false,