sourcegraph / sourcegraph/deploy-sourcegraph-helm

Changing the name of codeintel-db causes PVC to misalign on name

Open
#612 3 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.