Skip to content

docs: add a CLI user guide and fix the stale API reference#68

Open
scotwells wants to merge 5 commits into
mainfrom
docs/ipam-cli-user-guide
Open

docs: add a CLI user guide and fix the stale API reference#68
scotwells wants to merge 5 commits into
mainfrom
docs/ipam-cli-user-guide

Conversation

@scotwells

@scotwells scotwells commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Gives users a task-oriented guide for managing IP space from the command line, and corrects a reference that described resources the service never shipped.

What this delivers

  • New CLI guide (docs/guides/): install the plugin, understand pools/claims/allocations, and run the common workflows — create pools, claim/inspect/release prefixes, scripting, and troubleshooting.
  • Corrected reference: docs/api.md (and the CLAUDE.md layout) now describe the shipped IPPool/IPClaim/IPAllocation model instead of the old IPPrefix/ASN kinds.

Docs only.

scotwells added 4 commits July 1, 2026 19:05
Adds a task-oriented guide for people using the IPAM service from the
command line, and corrects reference docs that described an old resource
model the service never shipped.

- docs/guides/ — new home for user-facing guides, with an index that
  lists the CLI guide and the topics we plan to add next.
- docs/guides/managing-ip-address-space.md — install the datumctl ipam
  plugin, understand pools/claims/allocations, and run the common
  workflows (create pools, claim/inspect/release prefixes, scripting and
  exit codes, troubleshooting).
- docs/api.md — rewritten to the shipped API: IPPool, IPClaim, and
  IPAllocation. The previous version documented IPPrefix/IPPrefixClaim/
  IPAddress/ASN* kinds that the service does not serve.
- CLAUDE.md — corrected the registry layout line to the actual
  ippool/ipclaim/ipallocation directories.
The install step jumped straight to installing the plugin, but the IPAM
plugin lives in the milo-os catalog, not datumctl's built-in datum
catalog. Add the 'datumctl plugin index add milo-os milo-os/cli-plugins'
step (with the trust prompt) and install by name, and note the direct
install-from-release alternative and its trade-offs.
The guides index and CLI guide linked to sibling docs by their file
path (e.g. `../api.md`). Use human-readable link text that says where
the link goes.
Convert the two plain blockquote callouts in the CLI guide to GitHub
alert syntax ([!NOTE], [!TIP]) so they render as styled callouts.
@scotwells scotwells requested review from aflor024 and slindseysr July 2, 2026 00:13
slindseysr
slindseysr previously approved these changes Jul 2, 2026
The registry-layout line was already corrected; this finishes the pass.
Remove references to resources and fields the service doesn't implement
(ASN allocation, IPAddress/IPPrefix kinds, childPrefixTemplate) and align
the naming with what ships: IPPool, IPClaim, IPAllocation.

- Service summary, sync-status bullet, and repo layout no longer claim ASN.
- Allocation transaction sequence and AllocatingREST point at IPClaim
  (internal/registry/ipam/ipclaim) and drop the childPrefixTemplate branch.
- ExtraConfig matches the code: PrefixAllocator + AllocatorPool + optional
  PoolChecker (no ASNAllocator).
- Drop the 'atomic child prefix creation' design decision (renumbered).
- Acceptance criteria reference IPClaim; drop the childPrefixTemplate item.
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