Skip to content

Commit 180aa92

Browse files
Merge pull request #139 from jianzhangbjz/bug-62872
[release-4.18] OCPBUGS-62872: set the SElinux type
2 parents 9f981b3 + 788f8d6 commit 180aa92

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

config/base/manager/manager.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ spec:
4747
- linux
4848
securityContext:
4949
runAsNonRoot: true
50+
seLinuxOptions:
51+
type: spc_t
5052
seccompProfile:
5153
type: RuntimeDefault
5254
containers:

openshift/kustomize/overlays/openshift/olmv1-ns/patches/manager_deployment_certs.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@
1919
- op: add
2020
path: /spec/template/spec/containers/1/env
2121
value: [{"name":"SSL_CERT_DIR", "value":"/var/ca-certs"}]
22+
- op: add
23+
path: /spec/template/spec/securityContext/seLinuxOptions
24+
value: {"type":"spc_t"}

openshift/manifests/14-deployment-openshift-catalogd-catalogd-controller-manager.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ spec:
119119
node-role.kubernetes.io/master: ""
120120
securityContext:
121121
runAsNonRoot: true
122+
seLinuxOptions:
123+
type: spc_t
122124
seccompProfile:
123125
type: RuntimeDefault
124126
serviceAccountName: catalogd-controller-manager

0 commit comments

Comments
 (0)