diff --git a/workflow/signal/signal.go b/workflow/signal/signal.go index a9a368a4c6c4..9171114b52bf 100644 --- a/workflow/signal/signal.go +++ b/workflow/signal/signal.go @@ -7,6 +7,7 @@ import ( "path/filepath" "strings" "syscall" + "time" log "github.com/sirupsen/logrus" corev1 "k8s.io/api/core/v1" @@ -49,6 +50,9 @@ func ExecPodContainerAndGetOutput(ctx context.Context, restConfig *rest.Config, if err != nil { return err } + // workaround for when exec does not properly return: https://github.com/kubernetes/kubernetes/pull/103177 + ctx, cancel := context.WithTimeout(ctx, 2*time.Minute) + defer cancel() stdout, stderr, err := common.GetExecutorOutput(ctx, x) log. WithField("namespace", namespace).