Helm deployment using shell script


We are looking for a way to deploy some Kubernetes resources using shell script and helm as a pre, or post-step of a rollout deployment. We want to do this using shell script to avoid that harness will “manage” the pods that are rolled out. The reason for that is to avoid costs related to daemonsets.

The question is, how can we access the pulled repo files at a given delegate from a shell script after a rollout deployment or how can we access a git connector from a shell script. Is this possible, or do you have any suggestions on what we should do?

Welcome to the community, @rcet!

Hmm, I believe you could achieve something like that with a direct-apply annotation.

1 Like

Thanks @ravi.lachhman! That is exactly what I was looking for. harness.io/direct-apply: "true" did the trick.

1 Like