Skip to content

Commit

Permalink
[test] set fsgroup
Browse files Browse the repository at this point in the history
  • Loading branch information
stuggi committed Dec 12, 2023
1 parent 76a5944 commit 421a0dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/placement/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func Deployment(

args := []string{"-c"}
if instance.Spec.Debug.Service {
args = append(args, common.DebugCommand)
args = append(args, "/bin/sleep infinity")
livenessProbe.Exec = &corev1.ExecAction{
Command: []string{
"/bin/true",
Expand Down Expand Up @@ -139,6 +139,9 @@ func Deployment(
Spec: corev1.PodSpec{
ServiceAccountName: instance.RbacResourceName(),
Volumes: volumes,
SecurityContext: &corev1.PodSecurityContext{
FSGroup: ptr.To(PlacementUserID),
},
Containers: []corev1.Container{
{
Name: ServiceName + "-api",
Expand Down

0 comments on commit 421a0dc

Please sign in to comment.