Skip to content

Commit 24f510e

Browse files
committed
Remove unnecessary capabilities from backup Job
It turns out the capabilities from the prototype are not needed. Signed-off-by: Ales Raszka <[email protected]>
1 parent e5fc07f commit 24f510e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

controllers/backupcronjob/backupcronjob_controller.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,10 +420,7 @@ func (r *BackupCronJobReconciler) createBackupJob(
420420
},
421421
},
422422
SecurityContext: &corev1.SecurityContext{
423-
RunAsUser: ptrInt64(0),
424-
Capabilities: &corev1.Capabilities{
425-
Add: []corev1.Capability{"SYS_ADMIN", "SYS_CHROOT"},
426-
},
423+
RunAsUser: ptrInt64(0),
427424
AllowPrivilegeEscalation: ptrBool(false),
428425
},
429426
},

0 commit comments

Comments
 (0)