Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
Fix error output when temporary pod fails
Browse files Browse the repository at this point in the history
Adds a `String` method to print the pod metadata and status when
starting a temporary pod fails.

Signed-off-by: Michael Smith <[email protected]>
  • Loading branch information
MikaelSmith committed Nov 4, 2020
1 parent 6738d98 commit 10662fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/kubernetes/tempContainer.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,7 @@ func (c *tempContainer) delete(ctx context.Context) error {
var deleteImmediately int64 = 0
return c.podi.Delete(ctx, c.pod.Name, metav1.DeleteOptions{GracePeriodSeconds: &deleteImmediately})
}

func (c *tempContainer) String() string {
return c.pod.String()
}

0 comments on commit 10662fa

Please sign in to comment.