Helm Deployment¶
Hooks¶
0.4.0Helm
During rendering the Helm deployment templates, adeploy will run hooks (i.e. executables scripts) from the hooks
directory after the Helm chart was downloaded and extracted.
The hooks directory is used as current working directory.
The path to the extracted Helm chart will be passed as argument to the executed hook:
This can be used i.e. to patch Helm charts without touching the upstream repos for quick and dirty fixes:
hooks/patch.sh
#!/bin/bash
set -e
for p in patches.d/*
do
echo "Patching $p ...";
patch -d "$1" -p0 < $p
done
Now patches added to hooks/patches.d will be automatically applied to the Helm chart on each adeploy -p helm render ..
Tip
The stdout of your hooks is supressed by default but printed out in error cases. If you want to see the stdout of
your hooks, run adeploy in verbose mode i.e. adeploy -d -p helm render ..