sourcegraph / sourcegraph/deploy-sourcegraph-helm
Changing the name of codeintel-db causes PVC to misalign on name
Nobody has claimed this yet.
- Dominant language
- Go Template
- Stars
- 18
- Forks
- 24
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 13
Description
if i use these values:
codeIntelDB:
name: my-release-codeintel-db
enabled: true
then the PVC is created with the same name, eg; my-release-codeintel-db
then, the statefulset is created with the same name, but will reference the default PVC name, creating a deployment failure:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 6m6s default-scheduler 0/751 nodes are available: 751 persistentvolumeclaim "codeintel-db" not found. preemption: not eligible due to preemptionPolicy=Never.
Warning FailedScheduling 6m3s default-scheduler 0/751 nodes are available: 751 persistentvolumeclaim "codeintel-db" not found. preemption: not eligible due to preemptionPolicy=Never.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Search the Helm templates for codeIntelDB.name, the StatefulSet, and the persistent volume claim reference. Reproduce the chart with the shown values and inspect the rendered manifests to identify the name mismatch. Done means a custom database name produces a StatefulSet that references the PVC created with that name, while the default behavior still works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- helm, kubernetes
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100