feat(resource): add container infrastructure resource types #1045

Merged
hamza.khyari merged 1 commits from feature/container-resource-types into master 2026-03-30 14:06:25 +00:00
Member

Summary

Adds 7 container infrastructure resource types per ADR-039.

Types

  • container-runtime (none, user-addable) -- Container engine
  • container-image (none, user-addable) -- Container image
  • container-mount (snapshot) -- Bind/volume mount
  • container-exec-env (snapshot) -- Exec environment
  • container-port (snapshot) -- Port mapping
  • container-volume (snapshot, user-addable) -- Named volume
  • container-network (none) -- Container network

Changes

  • 7 YAML configs, _resource_registry_container.py, updated container-instance hierarchy
  • 33 Behave scenarios + 4 Robot tests
  • Updated BUILTIN_NAMES, service docstring, CHANGELOG

ISSUES CLOSED: #831

## Summary Adds 7 container infrastructure resource types per ADR-039. ## Types - `container-runtime` (none, user-addable) -- Container engine - `container-image` (none, user-addable) -- Container image - `container-mount` (snapshot) -- Bind/volume mount - `container-exec-env` (snapshot) -- Exec environment - `container-port` (snapshot) -- Port mapping - `container-volume` (snapshot, user-addable) -- Named volume - `container-network` (none) -- Container network ## Changes - 7 YAML configs, `_resource_registry_container.py`, updated container-instance hierarchy - 33 Behave scenarios + 4 Robot tests - Updated BUILTIN_NAMES, service docstring, CHANGELOG ISSUES CLOSED: #831
hamza.khyari added the
State
In Review
Type
Feature
labels 2026-03-18 11:42:06 +00:00
hamza.khyari added this to the v3.6.0 milestone 2026-03-18 11:42:15 +00:00
hamza.khyari self-assigned this 2026-03-18 11:42:16 +00:00
freemo approved these changes 2026-03-19 04:55:46 +00:00
Dismissed
freemo left a comment
Owner

Code Review — PR #1045 feat(resource): add container infrastructure resource types

Well-structured data-driven PR. Each of the 7 resource types is defined both as a Python dict (for bootstrap) and a YAML config (for documentation/schema validation). The hierarchy (container-runtimecontainer-image / container-volume / container-network / container-instancecontainer-mount / container-exec-env / container-port) is logically sound.

33 Behave scenarios + 4 Robot tests provide thorough coverage including YAML loading, domain model, parent/child relationships, user_addable, BUILTIN_NAMES, and bootstrap.

Approved. Note: this PR and #1046 both modify _resource_registry_data.py and resource_type.py in non-overlapping sections — merging one will require a rebase of the other. Consider merging #1045 first since #1046's lsp-server type references container-instance/container-exec-env as parents.

## Code Review — PR #1045 `feat(resource): add container infrastructure resource types` Well-structured data-driven PR. Each of the 7 resource types is defined both as a Python dict (for bootstrap) and a YAML config (for documentation/schema validation). The hierarchy (`container-runtime` → `container-image` / `container-volume` / `container-network` / `container-instance` → `container-mount` / `container-exec-env` / `container-port`) is logically sound. 33 Behave scenarios + 4 Robot tests provide thorough coverage including YAML loading, domain model, parent/child relationships, user_addable, BUILTIN_NAMES, and bootstrap. **Approved.** Note: this PR and #1046 both modify `_resource_registry_data.py` and `resource_type.py` in non-overlapping sections — merging one will require a rebase of the other. Consider merging #1045 first since #1046's `lsp-server` type references `container-instance`/`container-exec-env` as parents.
freemo requested review from freemo 2026-03-19 05:20:08 +00:00
freemo requested review from brent.edwards 2026-03-19 05:20:08 +00:00
Owner

Day 43 Review — Rebase Required

This PR has merge conflicts with master and cannot be merged in its current state. This is one of 9 Hamza PRs in the resource/LSP domain (v3.5.0-v3.6.0) that all have conflicts. These PRs likely share a common dependency chain and should be rebased sequentially.

@hamza.khyari: Please rebase onto current master. If multiple PRs depend on each other, start with the base PR in the chain and work upward.

Rebase priority: HIGH — these PRs represent significant feature work that is blocked by merge conflicts. Every day they remain conflicted is a day they cannot be reviewed or merged.

**Day 43 Review — Rebase Required** This PR has merge conflicts with `master` and cannot be merged in its current state. This is one of 9 Hamza PRs in the resource/LSP domain (v3.5.0-v3.6.0) that all have conflicts. These PRs likely share a common dependency chain and should be rebased sequentially. @hamza.khyari: Please rebase onto current `master`. If multiple PRs depend on each other, start with the base PR in the chain and work upward. **Rebase priority**: HIGH — these PRs represent significant feature work that is blocked by merge conflicts. Every day they remain conflicted is a day they cannot be reviewed or merged.
hamza.khyari force-pushed feature/container-resource-types from 3c61c8b59c to 2de702c4f0 2026-03-30 10:37:45 +00:00 Compare
hamza.khyari dismissed freemo's review 2026-03-30 10:37:45 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

hamza.khyari force-pushed feature/container-resource-types from 2de702c4f0 to f78fa48fc0 2026-03-30 10:46:00 +00:00 Compare
hamza.khyari force-pushed feature/container-resource-types from f78fa48fc0 to 6498fec16e 2026-03-30 11:15:59 +00:00 Compare
hamza.khyari force-pushed feature/container-resource-types from 6498fec16e to e989088437 2026-03-30 12:13:32 +00:00 Compare
hamza.khyari force-pushed feature/container-resource-types from e989088437 to 1707a43adf 2026-03-30 12:13:34 +00:00 Compare
hamza.khyari force-pushed feature/container-resource-types from 1707a43adf to 7a6dcfc791 2026-03-30 12:13:45 +00:00 Compare
hamza.khyari force-pushed feature/container-resource-types from 7a6dcfc791 to 77782deff4 2026-03-30 13:24:35 +00:00 Compare
hamza.khyari scheduled this pull request to auto merge when all checks succeed 2026-03-30 13:28:31 +00:00
hamza.khyari force-pushed feature/container-resource-types from 77782deff4 to 8be4508cd7 2026-03-30 13:36:31 +00:00 Compare
hamza.khyari force-pushed feature/container-resource-types from 8be4508cd7 to f6a7faa4ce 2026-03-30 13:39:21 +00:00 Compare
hamza.khyari force-pushed feature/container-resource-types from f6a7faa4ce to 2370e19da8 2026-03-30 13:44:55 +00:00 Compare
hamza.khyari merged commit 40e0cb9860 into master 2026-03-30 14:06:25 +00:00
hamza.khyari deleted branch feature/container-resource-types 2026-03-30 14:06:57 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cleveragents/cleveragents-core#1045