diff --git a/openshift/kustomize/overlays/openshift/olmv1-ns/patches/manager_deployment_certs.yaml b/openshift/kustomize/overlays/openshift/olmv1-ns/patches/manager_deployment_certs.yaml index f027c698c..23fc462ba 100644 --- a/openshift/kustomize/overlays/openshift/olmv1-ns/patches/manager_deployment_certs.yaml +++ b/openshift/kustomize/overlays/openshift/olmv1-ns/patches/manager_deployment_certs.yaml @@ -10,3 +10,6 @@ - op: add path: /spec/template/spec/containers/0/env value: [{"name":"SSL_CERT_DIR", "value":"/var/ca-certs"}] +- op: add + path: /spec/template/spec/securityContext/seLinuxOptions + value: {"type":"spc_t"} diff --git a/openshift/manifests/20-deployment-openshift-operator-controller-operator-controller-controller-manager.yml b/openshift/manifests/20-deployment-openshift-operator-controller-operator-controller-controller-manager.yml index 2b240af18..33fdf086d 100644 --- a/openshift/manifests/20-deployment-openshift-operator-controller-operator-controller-controller-manager.yml +++ b/openshift/manifests/20-deployment-openshift-operator-controller-operator-controller-controller-manager.yml @@ -115,6 +115,8 @@ spec: node-role.kubernetes.io/master: "" securityContext: runAsNonRoot: true + seLinuxOptions: + type: spc_t seccompProfile: type: RuntimeDefault serviceAccountName: operator-controller-controller-manager