Skip to content

Collections of a provisioner: tables of pools, volumes and images with their items' actions - #64

Merged
helightdev merged 4 commits into
mainfrom
provisioner-collections
Nov 15, 2026
Merged

helightdev merged 4 commits into
mainfrom
provisioner-collections

Conversation

@helightdev

Copy link
Copy Markdown
Owner

The page of a provisioner listed every storage action as its own entry (twelve for Incus), and acting on a pool meant typing its name into a form. Things a provisioner holds are now collections: one row with a count on the page, a table of items, and a page per item with the actions on it, whose arguments the item's key fills.

  • Manifest: a provisioner declares collections (key, columns, within for nesting, kinds for resources it made, and new, item and list actions, remove, show). berth checks them when it loads the plugin; one that refers to a missing action, argument, kind or collection makes the provisioner unusable with the reason. Each action it names gets collection set.
  • Rows come from the provisioner's status as collections, beside values. No new route.
  • Incus: pools, volumes (on their own and within a pool), cached images; Grow root disk is offered on each machine's and instance's page. Docker: images (pull or build to make one, prune on the list) and volumes. Check the server, Networks and Check the engine stay loose.
  • Screens: Enter opens a table, then an item; n makes one (picks among several ways), x removes after a question that names the item, r refreshes, Esc goes back. Unavailable item actions are greyed with their reason. The table refreshes after the job.
  • berth provisioner show prints each collection as a table; berth provisioner actions has a collection column. Every action still runs with berth provisioner run.

Checked with cargo test, fmt, clippy, the Python tests with PyYAML, vale, and ci/run.sh e2e e2e_provisioners with the Docker engine.

@helightdev
helightdev merged commit f5b85f4 into main Nov 15, 2026
23 checks passed
@helightdev
helightdev deleted the provisioner-collections branch November 15, 2026 19:30
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.

1 participant