Skip to content

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

Open
philippemnoel wants to merge 1 commit intocloudnative-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 intocloudnative-pg:mainfrom
paradedb:phil/alert-templating-and-replica-secret

Conversation

@philippemnoel
Copy link
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
…181)

Signed-off-by: Philippe Noël <philippemnoel@gmail.com>
@philippemnoel philippemnoel force-pushed the phil/alert-templating-and-replica-secret branch from a848f49 to 06554f2 Compare March 5, 2026 20:52
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:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant