You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When installing this chart via ArgoCD, it always tries to create job-db-migreate.yaml first, but it can't run the job without the configmap-env.yaml being applied, but the config map can't be applied because the job is set to run before everything else via a helm hook:
pre-install - Executes after templates are rendered, but before any resources are created in Kubernetes post-install - Executes after all resources are loaded into Kubernetes
Helm defines two hooks for the install lifecycle: pre-install and post-install. If the developer of the foo chart implements both hooks, the lifecycle is altered like this:
...
4. After some verification, the library renders the foo templates
5. The library prepares to execute the pre-install hooks (loading hook resources into Kubernetes)
6. The library sorts hooks by weight (assigning a weight of 0 by default), by resource kind and finally by name in ascending order.
7. The library then loads the hook with the lowest weight first (negative to positive)
8. The library waits until the hook is "Ready" (except for CRDs)
9. The library loads the resulting resources into Kubernetes. Note that if the --wait flag is set, the library will wait until all resources are in a ready state and will not run the post-install hook until they are ready.
10. The library executes the post-install hook (loading hook resources)
11. The library waits until the hook is "Ready"
When installing this chart via ArgoCD, it always tries to create
job-db-migreate.yaml
first, but it can't run the job without theconfigmap-env.yaml
being applied, but the config map can't be applied because the job is set to run before everything else via a helm hook:chart/templates/job-db-migrate.yaml
Lines 7 to 10 in 4b6fd9f
According to the helm docs:
and the same docs further down:
But the config map doesn't have anything similar:
chart/templates/configmap-env.yaml
Lines 3 to 7 in 4b6fd9f
I can submit a PR to add the following to the
configmap-env.yaml
:I believe this might also affect #18 because the job has highest priority and is executed before the configMap would be available.
The text was updated successfully, but these errors were encountered: