From c904b28d6c5062956ebc461517ffce4817541015 Mon Sep 17 00:00:00 2001 From: Jian Zhang Date: Sun, 27 Apr 2025 17:54:11 +0800 Subject: [PATCH] UPSTREAM: : set the SElinux type Signed-off-by: Jian Zhang --- .../openshift/olmv1-ns/patches/manager_deployment_certs.yaml | 3 +++ ...rator-controller-operator-controller-controller-manager.yml | 2 ++ 2 files changed, 5 insertions(+) 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