apache / apache/couchdb-helm

Placement manager hard-codes resource name

Open
#138 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Mustache
Stars
55
Forks
68
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
The Placement Manager hard-codes the resource name to 'couchdb' in 'couchdb/ci/templates/placementmanager.yaml', line 37, of this chart and in '/app/src/couch/couch.py', line 166, of the placement manager code. This means that if you use Placement Manager and name your resource anything other than 'couchdb' deployment fails.

**Version of Helm and Kubernetes**:
Helm: version.BuildInfo{Version:"v3.14.3", GitCommit:"f03cc04caaa8f6d7c3e67cf918929150cf6f3f12", GitTreeState:"clean", GoVersion:"go1.22.1"}
Kubernetes: 1.28

**What happened**:
Deployment failed due to my naming the resource something other than 'couchdb'.

**What you expected to happen**:
I expected the chart to deploy Couch to k8s and spread the shards across availability zones.

**How to reproduce it** (as minimally and precisely as possible):
Call your resource anything other than 'couchdb' and try to deploy with the value 'placementConfig: enabled: true'.

**Anything else we need to know**:

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.