Skip to content

fix(helm): derive Patroni discovery labels from chart values - #39

Open
youngkermit8-coder wants to merge 1 commit into
IvorySQL:mainfrom
youngkermit8-coder:codex/helm-patroni-labels
Open

youngkermit8-coder wants to merge 1 commit into
IvorySQL:mainfrom
youngkermit8-coder:codex/helm-patroni-labels

Conversation

@youngkermit8-coder

Copy link
Copy Markdown

Changing applicationName or clusterName updates the Pod and Service labels, but PATRONI_KUBERNETES_LABELS still selects the default cluster. Render the discovery labels from the same values as the workload, serialized as quoted JSON, so Patroni and the Kubernetes objects agree.

Validation: python tests/test_helm_labels.py with Helm 3.19.0 and PyYAML verifies default and custom cluster/application names against Pod labels, Patroni scope and Service selectors. Custom names fail on the base revision and pass with the fix.

git diff --check passes. These are render-time regression tests; no live Kubernetes cluster deployment was run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant