mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
Merge pull request #167 from replicatedhq/laverya/include-container-in-copy-path-if-provided
include the container name in the file copy path destination if provided
This commit is contained in:
@@ -34,7 +34,7 @@ func Copy(ctx *Context, copyCollector *troubleshootv1beta1.Copy) ([]byte, error)
|
||||
|
||||
if len(pods) > 0 {
|
||||
for _, pod := range pods {
|
||||
bundlePath := filepath.Join(copyCollector.Name, pod.Namespace, pod.Name)
|
||||
bundlePath := filepath.Join(copyCollector.Name, pod.Namespace, pod.Name, copyCollector.ContainerName)
|
||||
|
||||
files, copyErrors := copyFiles(ctx, client, pod, copyCollector)
|
||||
if len(copyErrors) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user