From 10662fa943bfb532722191b9f60c364a40cad273 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Wed, 4 Nov 2020 11:33:10 -0800 Subject: [PATCH] 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 --- plugin/kubernetes/tempContainer.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/kubernetes/tempContainer.go b/plugin/kubernetes/tempContainer.go index b82c5a7f1..7b5b0a776 100644 --- a/plugin/kubernetes/tempContainer.go +++ b/plugin/kubernetes/tempContainer.go @@ -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() +}