Skip to content

Commit

Permalink
Merge pull request #428 from steveb/OSPRH-3278
Browse files Browse the repository at this point in the history
Move -log sidecar container to dumb-init
  • Loading branch information
openshift-merge-bot[bot] authored Jun 17, 2024
2 parents dd4e276 + 5f3ffed commit d91e825
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pkg/ironicapi/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,16 @@ func Deployment(
{
Name: ironic.ServiceName + "-" + ironic.APIComponent + "-log",
Command: []string{
"/bin/bash",
"/usr/bin/dumb-init",
},
Args: []string{
"--single-child",
"--",
"/usr/bin/tail",
"-n+1",
"-F",
ironic.LogPath,
},
Args: []string{"-c", "tail -n+1 -F " + ironic.LogPath},
Image: instance.Spec.ContainerImage,
SecurityContext: &corev1.SecurityContext{
RunAsUser: &runAsUser,
Expand Down

0 comments on commit d91e825

Please sign in to comment.