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

Commit 10662fa

Browse files
committed
Fix error output when temporary pod fails
Adds a `String` method to print the pod metadata and status when starting a temporary pod fails. Signed-off-by: Michael Smith <[email protected]>
1 parent 6738d98 commit 10662fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugin/kubernetes/tempContainer.go

+4
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,7 @@ func (c *tempContainer) delete(ctx context.Context) error {
110110
var deleteImmediately int64 = 0
111111
return c.podi.Delete(ctx, c.pod.Name, metav1.DeleteOptions{GracePeriodSeconds: &deleteImmediately})
112112
}
113+
114+
func (c *tempContainer) String() string {
115+
return c.pod.String()
116+
}

0 commit comments

Comments
 (0)