cockroachdb / cockroachdb/helm-charts
Job is not run on first install when helm wait
- Dominant language
- Go
- Stars
- 105
- Forks
- 152
- Avg merge
- 4d 23h
- Merged PRs (30d)
- 5
Description
Hi cockroachDB.
I try to install a new cluster.
I'm using --wait as a helm options.
My pod are all stuck waiting for an init job.
I think it come from the job being a post install helm hook.
As the pod are not ready (waiting for the job), the install will never be done and thus the job never run.
https://github.com/cockroachdb/helm-charts/blob/a20ee1eb40168fd5125f691fff9f762e43a3cf8e/cockroachdb/templates/job.init.yaml#L19
According to Helm documentation
https://helm.sh/docs/topics/charts_hooks/
> 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.
Jira issue: HELM-35
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with cockroachdb/templates/job.init.yaml at line 19 and review the linked Helm chart hooks documentation. Reproduce a new cluster install with Helm's --wait option; the work is done when the init job runs and the pods are no longer blocked waiting for it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- helm, kubernetes
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100