helm icon indicating copy to clipboard operation
helm copied to clipboard

How to Roll Deployment on an external resource not managed by the chart.

Open lordigon opened this issue 4 years ago • 2 comments

I would like to know if it possible to apply Automatic Roll Deployment (https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments) on a Secret that is not created with a template inside the helm chart but with a secret installed by another application. Any idea how to solve it?

TIA

lordigon avatar Mar 11 '22 08:03 lordigon

The strategy relies on several template functions found in Helm. So to answer your question, no, it is not possible to apply the same strategy outside of Helm because the template functions only exist in Helm's template engine.

That being said, it is entirely possible for you to perform the exact same steps yourself.

The equivalent of

{{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}

In bash would be

cat configmap.yaml | sha256sum | awk '{ print $1 }'

Hope this helps.

bacongobbler avatar Mar 11 '22 15:03 bacongobbler

This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.

github-actions[bot] avatar Jun 10 '22 00:06 github-actions[bot]