Repository navigation
feat: leave the pull-through default to the daemon - #177
Merged
Merged
Conversation
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
force-pushed
the
feat/pull-through-daemon-default
branch
from
October 30, 2026 00:55
cbe2284 to
bd5c381
Compare
thiras
marked this pull request as ready for review
October 30, 2026 01:18
There was a problem hiding this comment.
🟢 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
decdn/decdn#2674 makes the daemon derive
cache.node_to_node_pull_through_enabledfrom 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_noderole:decdn_node_to_node_pull_through_enableddefaulted to"{{ not decdn_cache_origin_kind and not decdn_cache_origins }}". It now defaults to"", which the template already omits._helpers.tplset the key when unset. That block is gone, so an unset key no longer renders.render-test.shnow asserts that an unset key renders nothing, for both the origin and the resolve-only CI values, and that an explicitfalsestill renders.decdn-compose init nodeinjectednode_to_node_pull_through_enabled = truefor a cache node.edit_node_tomlno longer takescache_nodeor writes the key. Its tests are updated, and the one that only covered the injection is removed.docs/node-operators.md, and the origin group_vars comment, whichexamples/collection-fleetmirrors byte for byte.With one source for the derivation, a fleet node and a hand-installed node can't disagree again. An explicit
true/falsebehaves exactly as before on every path.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_versionline, which is still0.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'sappVersionand the Compose image digests name the first decdn release line that contains decdn/decdn#2674. That is the bumpscripts/open-decdn-bump.shopens 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:33still describes the knob as role-derived, and that comment can be reworded then.Verification
python3 -m unittest compose/tests/test_decdn_compose.py: 146 passedcharts/decdn-node/tests/render-test.sh: every check up to and including the new pull-through check passes.kubeconformandpromtoolaren't installed on this machine: I stubbedkubeconform, and the run stops atpromtool check rules, which this PR doesn't touch. CI runs both.pre-commit runon the changedefaultandschemaboth set the knob explicitly (true), so their verify assertions don't change.🤖 Generated with Claude Code