From 46247d17ae8d51f474d92cfc1e90399a5dd2e488 Mon Sep 17 00:00:00 2001 From: Jean-Marc ANDRE Date: Sun, 26 Feb 2023 00:46:09 +0100 Subject: [PATCH] the sidecar needs privileges to run chroot commands --- controllers/backupconfiguration_controller_helpers.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controllers/backupconfiguration_controller_helpers.go b/controllers/backupconfiguration_controller_helpers.go index d6545bf..68eab52 100644 --- a/controllers/backupconfiguration_controller_helpers.go +++ b/controllers/backupconfiguration_controller_helpers.go @@ -265,6 +265,9 @@ func (r *BackupConfigurationReconciler) addSidecar(backupConf formolv1alpha1.Bac }, }), VolumeMounts: []corev1.VolumeMount{}, + SecurityContext: &corev1.SecurityContext{ + Privileged: func() *bool { b := true; return &b }(), + }, } var targetObject client.Object var targetPodSpec *corev1.PodSpec