Skip to content

fix(cluster): fix alert templating and replica secret config#828

Open
philippemnoel wants to merge 1 commit into
cloudnative-pg:mainfrom
paradedb:phil/alert-templating-and-replica-secret
Open

fix(cluster): fix alert templating and replica secret config#828
philippemnoel wants to merge 1 commit into
cloudnative-pg:mainfrom
paradedb:phil/alert-templating-and-replica-secret

Conversation

@philippemnoel

Copy link
Copy Markdown
Contributor

I caught these while working on the @paradedb fork. Figured these changes would benefit upstream and reduce our diff:

  • Fix broken subname templating in all 6 logical replication alert descriptions: {{ "{{ .subname }}" }} renders as a literal {{ .subname }} string instead of the actual subscription name. Changed to {{ .labels.subname }} which correctly references the label value from the dict
  • Add missing subname, lag_type, and stop_reason labels to the prometheus-rule template dict so alert descriptions can actually reference them
  • Add missing create and value fields to the replica passwordSecret config in values.yaml and schema, matching the pattern already used by the other externalClusters password secrets

Enjoy!

@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. bug Something isn't working chart( cluster ) Related to the cluster chart labels Mar 5, 2026
@philippemnoel philippemnoel force-pushed the phil/alert-templating-and-replica-secret branch from a848f49 to 06554f2 Compare March 5, 2026 20:52
@philippemnoel philippemnoel force-pushed the phil/alert-templating-and-replica-secret branch from 06554f2 to a8bd427 Compare May 18, 2026 04:36
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels May 18, 2026
@philippemnoel philippemnoel force-pushed the phil/alert-templating-and-replica-secret branch from a8bd427 to 4f4d190 Compare June 18, 2026 19:53
@philippemnoel philippemnoel requested a review from phisco as a code owner June 18, 2026 19:53
@philippemnoel philippemnoel force-pushed the phil/alert-templating-and-replica-secret branch 2 times, most recently from 07d9a2c to bb8f536 Compare June 18, 2026 21:10
…181)

Signed-off-by: Philippe Noël <21990816+philippemnoel@users.noreply.github.com>
@philippemnoel philippemnoel force-pushed the phil/alert-templating-and-replica-secret branch from bb8f536 to e94cdee Compare June 18, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working chart( cluster ) Related to the cluster chart size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant