Skip to content

Commit aaec564

Browse files
committed
download from k8s from cat to cp
1 parent 66c8356 commit aaec564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/skbn/kube.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func DownloadFromK8s(iClient interface{}, path string) ([]byte, error) {
111111
return nil, err
112112
}
113113
namespace, podName, containerName, pathToCopy := initK8sVariables(pSplit)
114-
command := fmt.Sprintf("cat %s", pathToCopy)
114+
command := fmt.Sprintf("cp %s /dev/stdout", pathToCopy)
115115

116116
attempts := 3
117117
attempt := 0

0 commit comments

Comments
 (0)