Repository navigation
Land #89 on main: pin services to hosts (it merged into its stack base) - #93
Merged
Merged
Conversation
A service names its host (`host:`, else fleet.yml's `default_host`; with one
host that host is the default). `serve --host-name` tells a daemon which host
it is. Its plan holds only that host's services, lists the others as skipped
("on host X") without reading them, and leaves dns_records to the default
host's daemon. The plan hash covers only what the daemon would apply plus the
host name, so each host approves its own share. A daemon with no host name
refuses to plan a fleet of two or more hosts, and apply re-checks that every
service it changes is its host's.
A single-host fleet plans byte for byte as before (text, JSON and hash),
checked against a golden plan from the previous release.
Also: --host-name on the unit survives daemon.flags (serveflags.Merge), and
fleet.yml refuses it in daemon.flags with several hosts; reconcile puts it on
the hosts it creates and refuses --deploy-services for several hosts; the
CLI plan and apply take --host-name. Docs: docs/daemon.md "Several hosts",
README, and a CI matrix example (docs/ci-examples/deploy-hosts.yml).
Remote fan-out is later.
Stacked on the per-host bridge subnet: with the host known (--host-name, or
the single-host default), planBridge checks and apply ensures this host's
network (HostNetwork of the daemon's own host), so the "not checked" note
no longer appears when the host is known. LocalNetwork takes the host name.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pin services to hosts: each daemon plans and applies its own share (#43)
…ackups Resolves the conflicts with #90, #91 and #92: - serve: start the backup scheduler (#91) and log the host name (#89). - config: DefaultHost (#89) beside Backup and Snapshots (#91). - The daemon had two HostName fields: #91's for backup object keys and #89's --host-name. They are one now: --host-name (env NATIVE_OPS_HOST_NAME, as #91 already read) names the host's plans and its backup keys; empty still falls back to the OS host name for backups. - One writeFleet test helper in pkg/config (both PRs added it). - The single-host golden plan is regenerated from main without #89: the only difference is #92's environment.* line for an OCI image, so #89 still changes nothing for a single host. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Merged
Drafted by William's agent (Claude). |
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.
Lands #89 on
main. Part of #43.#89 was stacked on #88. #88 merged into
mainat 03:17:16, and #89 merged 47 seconds later into its stack base,feat/per-host-bridge-subnet, which had not been retargeted tomainyet. So #89's commit (e9d9b88, "Pin services to hosts: each daemon plans and applies its own share") is not onmain.This PR brings exactly that in: the same reviewed commit, with no new changes. The diff against
mainis #89's diff (21 files).Checked by test-merging it onto current
main: clean. #92 (OCI environment and external routes) merges cleanly on top of it as well.No self-merge.
🤖 Generated with Claude Code