Open paololazzari opened 3 months ago
tbh I think the cp hack is the way to go. It's the same thing we'd implement in go, and it's not something people should be doing long term.
@crenshaw-dev I could only do it because the plugin took some time to execute
Ah you exec'd in. I'd recommend including the cp at the end of your generate
command.
It's the same thing we'd implement in go, and it's not something people should be doing long term.
Ok, fair enough. Should there maybe be a note in the docs to mention how the sidecar concontainer plugin execution can be troubleshooted?
Probably, I'd happily review that docs PR!
Summary
Add option to persist git repository on filesystem on sidecar plugin execution.
Motivation
I am seeing diffs for a bunch of secrets in the argo UI, which I do not see locally when running kustomize locally and then diffing against the cluster. To debug this, it would be helpful if I could run the same commands the plugin is running in the plugin container itself.
Currently this is awkward to do because the plugin does not persist the git repository in
/tmp/_cmp_server
. I've been able tocp
the repository during the plugin execution from/tmp/_cmp_server
during the execution but this is not ideal.Proposal
Add option to plugin configuration, e.g.: