Ordering of execution
To perform things in certain order in Helm, we need to use hooks.
Recently I had a situation where I had free sub-charts and I needed them to be available before issuing my CRD’s to Kubernetes.
To establish this order, I had to do the following:
* In my templates I used the post-install hook:
"helm.sh/hook": post-install "helm.sh/hook-weight": "-4"
* Then I used helm –wait flag to instruct Helm to wait for all containers to be ready, before installing post-install marked resources.