config: drop primary/prefer and treat all backends equally #9

Merged
benvin merged 2 commits from benvin/drop-primary into main 2026-09-05 16:07:37 +10:00
Member

Why

pdbmux should not need to be told which PuppetDB to favour.

How

  • Delete primary/prefer config fields, their env vars, defaults, validation and PrimaryBackend().
  • Serve unmerged /pdb/query/v4/* paths from the first backend that answers; replay the first upstream error if none does.
  • Use configured order as a tie-break only, in static merge, node/facts dedupe and report sub-resource lookups.
  • Strip primary/prefer/old/new from tests, README, help text and config init.
## Why pdbmux should not need to be told which PuppetDB to favour. ## How - Delete `primary`/`prefer` config fields, their env vars, defaults, validation and `PrimaryBackend()`. - Serve unmerged `/pdb/query/v4/*` paths from the first backend that answers; replay the first upstream error if none does. - Use configured order as a tie-break only, in `static` merge, node/facts dedupe and report sub-resource lookups. - Strip primary/prefer/old/new from tests, README, help text and `config init`.
unkin-agent force-pushed benvin/drop-primary from c20c6fa836 to 1179d4567e 2026-09-05 12:33:41 +10:00 Compare
unkin-agent force-pushed benvin/drop-primary from 1179d4567e to 90295f5f2a 2026-09-05 13:15:17 +10:00 Compare
unkin-agent added 2 commits 2026-09-05 13:49:29 +10:00
- unmerged /pdb/query/v4/* paths now go to the first backend that answers, not a designated primary
docs: reword reports/events union without old/new framing
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
8ad6205200
unkin-agent force-pushed benvin/drop-primary from 90295f5f2a to 8ad6205200 2026-09-05 13:49:29 +10:00 Compare
benvin merged commit 1ee7a2c07c into main 2026-09-05 16:07:37 +10:00
benvin deleted branch benvin/drop-primary 2026-09-05 16:07:37 +10:00
Sign in to join this conversation.