Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Read the stderr into termination reason when container exists with no…
Browse files Browse the repository at this point in the history
…n-zero code (#87)
  • Loading branch information
EngHabu authored May 13, 2020
1 parent 7f1ba3c commit dc1ce43
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions go/tasks/pluginmachinery/flytek8s/container_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,12 @@ func ToK8sContainer(ctx context.Context, taskExecutionMetadata pluginsCore.TaskE
containerName = rand.String(4)
}
c := &v1.Container{
Name: containerName,
Image: taskContainer.GetImage(),
Args: modifiedArgs,
Command: modifiedCommand,
Env: envVars,
Name: containerName,
Image: taskContainer.GetImage(),
Args: modifiedArgs,
Command: modifiedCommand,
Env: envVars,
TerminationMessagePolicy: v1.TerminationMessageFallbackToLogsOnError,
}

if res != nil {
Expand Down

0 comments on commit dc1ce43

Please sign in to comment.