feat(orchestration): adopt existing infrastructure #6

Merged
crapougnax merged 1 commit from feat/orchestration-adopt into develop 2026-11-07 23:01:11 +00:00
Member

Lets a target take over an installation already in place, with a plan of 0 changes.

  • spec.state.keys (publicIps, cluster): exact keys of existing states.
  • spec.tags replaces the default base tags; spec.network.ipTags; per-frontend tags (fixes a duplicate frontend= tag: the module adds it).
  • spec.network.vpcName, privateNetworkName, egressGatewayName.
  • Built-in ${VARIABLES} substituted in the inputs of spec.infra.modules (e.g. ${INGRESS_<FRONTEND>_IP_ADDRESS} for a DNS module); Terraform interpolations (${module.x}) untouched.
  • SCW_PROFILE accepted for the provider, with AWS_* for the state bucket.
  • plan reads the IPs of an existing public-ips state to plan the cluster.

Checks

  • 19 tests (2 new), typecheck OK.
  • Real adoption: the platform target eu1-paris (its own private target repository) plans with 0 to create, 0 to change, 0 to destroy on both states (public IPs; network, egress gateway, Kapsule cluster and 2 pools, 11 DNS records).

🤖 Generated with Claude Code

Lets a target take over an installation already in place, with a plan of **0 changes**. - `spec.state.keys` (`publicIps`, `cluster`): exact keys of existing states. - `spec.tags` replaces the default base tags; `spec.network.ipTags`; per-frontend `tags` (fixes a duplicate `frontend=` tag: the module adds it). - `spec.network.vpcName`, `privateNetworkName`, `egressGatewayName`. - Built-in `${VARIABLES}` substituted in the inputs of `spec.infra.modules` (e.g. `${INGRESS_<FRONTEND>_IP_ADDRESS}` for a DNS module); Terraform interpolations (`${module.x}`) untouched. - `SCW_PROFILE` accepted for the provider, with `AWS_*` for the state bucket. - `plan` reads the IPs of an existing `public-ips` state to plan the cluster. ## Checks - 19 tests (2 new), typecheck OK. - **Real adoption**: the platform target eu1-paris (its own private target repository) plans with `0 to create, 0 to change, 0 to destroy` on both states (public IPs; network, egress gateway, Kapsule cluster and 2 pools, 11 DNS records). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(orchestration): adopt existing infrastructure
All checks were successful
CI / check (push) Successful in 32s
CI / check (pull_request) Successful in 32s
b7dbfb096d
Settings to describe resources already in place, so that a target can take
over an existing installation with a plan of 0 changes:
- spec.state.keys: exact state keys (publicIps, cluster);
- spec.tags (replaces the default base tags), spec.network.ipTags,
  per-frontend tags (the module adds role and frontend itself: no more
  duplicate frontend tag);
- spec.network.vpcName, privateNetworkName, egressGatewayName;
- built-in ${VARIABLES} in the inputs of extra modules
  (e.g. ${INGRESS_<FRONTEND>_IP_ADDRESS} for a DNS module);
- SCW_PROFILE accepted for the provider, with AWS_* for the state bucket;
- plan reads the IPs of an existing public-ips state to plan the cluster.

Checked on a real platform target: both states plan with 0 changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
crapougnax merged commit 2fce4e5307 into develop 2026-11-07 23:01:11 +00:00
crapougnax deleted branch feat/orchestration-adopt 2026-11-07 23:01:11 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tycho/modules!6
No description provided.