Skip to content

Commit

Permalink
Init job for updater DaemonSet needs to run privileged (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-helmich authored Oct 20, 2020
1 parent dde321c commit 7fb4750
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/controller/updater/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ func (u *UpdaterController) reconcile(ctx context.Context) (reconcile.Result, er
return reconcile.Result{}, err
}

t := true

i := corev1.Container{
Name: "chown",
Image: "busybox",
Expand All @@ -115,6 +117,9 @@ func (u *UpdaterController) reconcile(ctx context.Context) (reconcile.Result, er
Name: "clamdb",
MountPath: "/var/lib/clamav",
}},
SecurityContext: &corev1.SecurityContext{
Privileged: &t,
},
}

c := corev1.Container{}
Expand Down

0 comments on commit 7fb4750

Please sign in to comment.