I am trying to create a Helm Chart with the following resources:
- Secret
- ConfigMap
- Service
- Job
- Deployment
These are also in the order that I would like them to be deployed. I have put a hook in the Deployment so that it is post-install, but then Helm does not see it as a resource and I have to manually manage it.
The Job needs the information in the Secret and ConfigMap, otherwise I would make that a pre-install hook. But I can't make everything a hook or nothing will be managed in my release.
Does anyone have a solution or idea to be able to manage all of the resources within the Helm release AND make sure the Job finishes before the Deployment begins?
My only thought right now is two make two Charts: One with 1-4 and the second with 5 which would depend on the first.