Skip to content

Commit 7fb4750

Browse files
Init job for updater DaemonSet needs to run privileged (#6)
1 parent dde321c commit 7fb4750

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/controller/updater/controller.go

+5
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ func (u *UpdaterController) reconcile(ctx context.Context) (reconcile.Result, er
107107
return reconcile.Result{}, err
108108
}
109109

110+
t := true
111+
110112
i := corev1.Container{
111113
Name: "chown",
112114
Image: "busybox",
@@ -115,6 +117,9 @@ func (u *UpdaterController) reconcile(ctx context.Context) (reconcile.Result, er
115117
Name: "clamdb",
116118
MountPath: "/var/lib/clamav",
117119
}},
120+
SecurityContext: &corev1.SecurityContext{
121+
Privileged: &t,
122+
},
118123
}
119124

120125
c := corev1.Container{}

0 commit comments

Comments
 (0)