From f254dde5dfb42fd84cb38c9eaf28250d1bbfceaa Mon Sep 17 00:00:00 2001 From: Utkarsh Mani Tripathi Date: Wed, 5 Feb 2020 15:33:27 +0530 Subject: [PATCH] fix(jiva-cleanup): allow cleanup jobs to run as previleged mode (#1600) This commit fix the issue where scrub jobs were failing on openshift platform or where non privileged pods are not allowed to access/modify hostpath. Signed-off-by: Utkarsh Mani Tripathi --- pkg/install/v1alpha1/jiva_volume.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/install/v1alpha1/jiva_volume.go b/pkg/install/v1alpha1/jiva_volume.go index 41a0a73475..0322f02b66 100644 --- a/pkg/install/v1alpha1/jiva_volume.go +++ b/pkg/install/v1alpha1/jiva_volume.go @@ -1388,6 +1388,8 @@ spec: type: "" containers: - name: sjr + securityContext: + privileged: true image: {{ .Config.ScrubImage.value }} command: - sh