Skip to content

feat: leave the pull-through default to the daemon - #177

Merged
thiras merged 1 commit into
mainfrom
feat/pull-through-daemon-default
Oct 30, 2026
Merged

thiras merged 1 commit into
mainfrom
feat/pull-through-daemon-default

Conversation

@thiras

@thiras thiras commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

What

decdn/decdn#2674 makes the daemon derive cache.node_to_node_pull_through_enabled from the node's role when it is unset: on with no origin backend, off with one (decdn/decdn#2603). Until now the daemon's default was a flat off, so every deployment path derived the value itself:

  • decdn_node role: decdn_node_to_node_pull_through_enabled defaulted to "{{ not decdn_cache_origin_kind and not decdn_cache_origins }}". It now defaults to "", which the template already omits.
  • Helm chart: _helpers.tpl set the key when unset. That block is gone, so an unset key no longer renders. render-test.sh now asserts that an unset key renders nothing, for both the origin and the resolve-only CI values, and that an explicit false still renders.
  • Compose: decdn-compose init node injected node_to_node_pull_through_enabled = true for a cache node. edit_node_toml no longer takes cache_node or writes the key. Its tests are updated, and the one that only covered the injection is removed.
  • Docs: the role README, chart README and values comment, Compose README, docs/node-operators.md, and the origin group_vars comment, which examples/collection-fleet mirrors byte for byte.

With one source for the derivation, a fleet node and a hand-installed node can't disagree again. An explicit true/false behaves exactly as before on every path.

⚠️ Merge only after the pins move

The derivation lives in the daemon only from the release that contains decdn/decdn#2674. The role resolves the newest release in its decdn_node_version line, which is still 0.2, and a 0.2 daemon defaults the knob to off. Merging this first would turn pull-through off on every cache node that leaves it unset, including the fleet.

Merge it once decdn_node_version, the chart's appVersion and the Compose image digests name the first decdn release line that contains decdn/decdn#2674. That is the bump scripts/open-decdn-bump.sh opens for that release, so merge this with it or after it. The fleet then needs no change. fleet/inventory/group_vars/serving_only_nodes.yml:33 still describes the knob as role-derived, and that comment can be reworded then.

Verification

  • python3 -m unittest compose/tests/test_decdn_compose.py: 146 passed
  • charts/decdn-node/tests/render-test.sh: every check up to and including the new pull-through check passes. kubeconform and promtool aren't installed on this machine: I stubbed kubeconform, and the run stops at promtool check rules, which this PR doesn't touch. CI runs both.
  • pre-commit run on the change
  • Molecule not run locally. default and schema both set the knob explicitly (true), so their verify assertions don't change.

🤖 Generated with Claude Code

@thiras thiras self-assigned this Oct 28, 2026
The daemon now derives cache.node_to_node_pull_through_enabled from the
node's role (decdn/decdn#2674): on with no origin backend, off with one.
The decdn_node role, the chart and `decdn-compose init node` each derived
the same value themselves. They now leave the key unset, so the deployment
paths and a hand-installed node cannot drift apart again. An explicit value
still renders as given.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@thiras
thiras force-pushed the feat/pull-through-daemon-default branch from cbe2284 to bd5c381 Compare October 30, 2026 00:55
@thiras
thiras marked this pull request as ready for review October 30, 2026 01:18
Copilot AI balanced review requested due to automatic review settings October 30, 2026 01:18
@thiras
thiras merged commit 607314f into main Oct 30, 2026
55 checks passed
@thiras
thiras deleted the feat/pull-through-daemon-default branch October 30, 2026 01:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the changes delegating unset pull-through defaults to the daemon.

No open issues 🎉

What changed in this PR

Delegates unset node-to-node pull-through behavior to the daemon across Ansible, Helm, and Compose, removing deployment-specific derivation while preserving explicit overrides.

Changes:

  • Removes default pull-through injection from all three deployment paths.
  • Updates tests to check omission of unset values and preservation of explicit Helm overrides.
  • Aligns operator documentation and inventory comments with daemon-derived defaults.

As noted in the PR description, this depends on deployment pins moving to a release containing decdn/decdn#2674.

File Description
examples/​collection-fleet/​inventory/​group_vars/​decdn_origin_nodes.yml Mirrors the updated origin-default comment.
docs/​node-operators.md Describes daemon-derived pull-through behavior.
compose/​tests/​test_decdn_compose.py Updates tests for the simplified configuration editor.
compose/​README.md Updates initialization guidance and removes manual enablement instructions.
compose/​decdn-compose Stops injecting and checking the pull-through setting.
charts/​decdn-node/​values.yaml Documents omission of the unset setting.
charts/​decdn-node/​tests/​render-test.sh Checks unset-key omission and explicit false rendering.
charts/​decdn-node/​templates/​_helpers.tpl Removes chart-side default derivation.
charts/​decdn-node/​README.md Attributes pull-through defaults to the daemon.
ansible/​roles/​decdn_node/​README.md Documents daemon-derived role behavior.
ansible/​roles/​decdn_node/​defaults/​main.yml Defaults the setting to empty so the template omits it.
ansible/​inventory/​group_vars/​decdn_origin_nodes.yml Corrects the comment identifying who supplies the origin default.

Review effort: Balanced

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.

2 participants