From c3370ef3c69bf99864aea200015384b8d8014c74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Tue, 19 Nov 2019 07:18:02 -0800 Subject: [PATCH] ceph: add missing pod sec context for crash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When running on OCP we must use priv containers so that we can chown the hostpath dir properly. Signed-off-by: Sébastien Han --- pkg/operator/ceph/cluster/crash/crash.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/operator/ceph/cluster/crash/crash.go b/pkg/operator/ceph/cluster/crash/crash.go index 3cc1254f7..52cc07a11 100644 --- a/pkg/operator/ceph/cluster/crash/crash.go +++ b/pkg/operator/ceph/cluster/crash/crash.go @@ -140,7 +140,7 @@ func getCrashChownInitContainer(cephCluster cephv1.CephCluster) corev1.Container cephCluster.Spec.CephVersion.Image, opspec.DaemonVolumeMounts(dataPathMap, ""), cephv1.GetCrashCollectorResources(cephCluster.Spec.Resources), - &corev1.SecurityContext{}, + mon.PodSecurityContext(), ) }