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 7462109
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/placement/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ func Deployment(
Spec: corev1.PodSpec{
ServiceAccountName: instance.RbacResourceName(),
Volumes: volumes,
SecurityContext: &corev1.PodSecurityContext{
// since we run as PlacementUserID, e.g. certs need to be
// readable by the placement user, instead of root
FSGroup: ptr.To(PlacementUserID),
},
Containers: []corev1.Container{
{
Name: ServiceName + "-api",
Expand Down

0 comments on commit 7462109

Please sign in to comment.