From aaec564dd8a36183a146c42f85469e0c69eaf5a6 Mon Sep 17 00:00:00 2001 From: Maor Friedman Date: Mon, 3 Sep 2018 08:39:21 +0300 Subject: [PATCH] download from k8s from cat to cp --- pkg/skbn/kube.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/skbn/kube.go b/pkg/skbn/kube.go index 915244b..6439d51 100644 --- a/pkg/skbn/kube.go +++ b/pkg/skbn/kube.go @@ -111,7 +111,7 @@ func DownloadFromK8s(iClient interface{}, path string) ([]byte, error) { return nil, err } namespace, podName, containerName, pathToCopy := initK8sVariables(pSplit) - command := fmt.Sprintf("cat %s", pathToCopy) + command := fmt.Sprintf("cp %s /dev/stdout", pathToCopy) attempts := 3 attempt := 0