kubectl: remove unnecessary TODO annotations

Kubernetes-commit: 2afc78bac870286aa4f39069fb5ab3fa13a134ed
This commit is contained in:
wujunwei 2022-11-17 09:39:30 +08:00 committed by Kubernetes Publisher
parent 2ef5d7b1b7
commit be20835e90
1 changed files with 0 additions and 2 deletions

View File

@ -304,7 +304,6 @@ func (o *CopyOptions) copyToPod(src, dest fileSpec, options *exec.ExecOptions) e
}(srcFile, destFile, writer)
var cmdArr []string
// TODO: Improve error messages by first testing if 'tar' is present in the container?
if o.NoPreserve {
cmdArr = []string{"tar", "--no-same-permissions", "--no-same-owner", "-xmf", "-"}
} else {
@ -373,7 +372,6 @@ func (t *TarPipe) initReadFrom(n uint64) {
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()},
Executor: &exec.DefaultRemoteExecutor{},
}