mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
kubectl: remove unnecessary TODO annotations
This commit is contained in:
parent
3f823c0daa
commit
2afc78bac8
@ -304,7 +304,6 @@ func (o *CopyOptions) copyToPod(src, dest fileSpec, options *exec.ExecOptions) e
|
|||||||
}(srcFile, destFile, writer)
|
}(srcFile, destFile, writer)
|
||||||
var cmdArr []string
|
var cmdArr []string
|
||||||
|
|
||||||
// TODO: Improve error messages by first testing if 'tar' is present in the container?
|
|
||||||
if o.NoPreserve {
|
if o.NoPreserve {
|
||||||
cmdArr = []string{"tar", "--no-same-permissions", "--no-same-owner", "-xmf", "-"}
|
cmdArr = []string{"tar", "--no-same-permissions", "--no-same-owner", "-xmf", "-"}
|
||||||
} else {
|
} else {
|
||||||
@ -373,7 +372,6 @@ func (t *TarPipe) initReadFrom(n uint64) {
|
|||||||
PodName: t.src.PodName,
|
PodName: t.src.PodName,
|
||||||
},
|
},
|
||||||
|
|
||||||
// TODO: Improve error messages by first testing if 'tar' is present in the container?
|
|
||||||
Command: []string{"tar", "cf", "-", t.src.File.String()},
|
Command: []string{"tar", "cf", "-", t.src.File.String()},
|
||||||
Executor: &exec.DefaultRemoteExecutor{},
|
Executor: &exec.DefaultRemoteExecutor{},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user