Skip to content

Commit

Permalink
Fix stdout of worker container show nothing (#819)
Browse files Browse the repository at this point in the history
  • Loading branch information
hougangliu authored and k8s-ci-robot committed Sep 26, 2019
1 parent d39865b commit e26c442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webhook/v1alpha3/pod/inject_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func wrapWorkerContainer(pod *v1.Pod, jobKind, metricsFile string, mc common.Met
if c.Args != nil {
args = append(args, c.Args...)
}
redirectStr := fmt.Sprintf("1>%s 2>&1", metricsFile)
redirectStr := fmt.Sprintf(" 2>&1 | tee %s", metricsFile)
args = append(args, redirectStr)
argsStr := strings.Join(args, " ")
c.Command = command
Expand Down

0 comments on commit e26c442

Please sign in to comment.