goss-org / goss

Quick and Easy server testing/validation
https://goss.rocks
Apache License 2.0
5.53k stars 470 forks source link

Fixed kgoss kubectl cp issue #773

Closed gaganyaan2 closed 2 years ago

gaganyaan2 commented 2 years ago

Fixed https://github.com/aelsabbahy/goss/issues/770 issue

kubectl cp <file-spec-src> <file-spec-dest> file-spec-dest should be filename with path(optional) but It cannot be directory.

Reference for kubectl cp

aelsabbahy commented 2 years ago

Tagging @joshgav , if this looks good to you, I'll merge.

joshgav commented 2 years ago

LGTM, the get_pod_file function only copies one file at a time anyway, and this makes that more resilient.

Thanks @koolwithk.

aelsabbahy commented 2 years ago

Thank you both for your contributions, greatly appreciate it!