Skip to content

Use NetworkResource for network management in API server. - #1421

Merged
jglogan merged 2 commits into
apple:mainfrom
jglogan:network-resource
Apr 30, 2026
Merged

Use NetworkResource for network management in API server.#1421
jglogan merged 2 commits into
apple:mainfrom
jglogan:network-resource

Conversation

@jglogan

@jglogan jglogan commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Evolve API to 1.0 shape.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

@jglogan
jglogan marked this pull request as draft April 15, 2026 15:51
@github-actions github-actions Bot added the cli label Apr 15, 2026
@jglogan
jglogan marked this pull request as ready for review April 17, 2026 18:45
@jglogan jglogan changed the title WIP: NetworkResource Use NetworkResource for network management in API server. Apr 17, 2026
Comment thread Sources/ContainerCommands/Builder/BuilderStart.swift
Comment thread Sources/ContainerResource/Network/NetworkResource.swift
Comment thread Sources/ContainerResource/Network/NetworkResource.swift
@jglogan
jglogan force-pushed the network-resource branch 2 times, most recently from ce02137 to 3906eb5 Compare April 19, 2026 18:52
jglogan added 2 commits April 23, 2026 14:18
- Evolves API to use a `NetworkResource` that conforms
  to `ManagedResource`.
- BREAKING CHANGE - compile time impact due to changes
  to Swift client API signatures. No change to
  persistent data or API server XPC protocols.
@jglogan jglogan mentioned this pull request Apr 29, 2026
7 tasks
@jglogan
jglogan merged commit b1f3c0d into apple:main Apr 30, 2026
3 checks passed
@jglogan
jglogan deleted the network-resource branch April 30, 2026 18:06
noah-thor pushed a commit to noah-thor/container that referenced this pull request May 6, 2026
- Part of apple#1404.
- Evolves API to use NetworkResource that conforms to ManagedResource.
- BREAKING CHANGE - compile time impact due to changes to Swift client
API signatures. No change to persistent data or API server XPC
protocols.
katiewasnothere added a commit that referenced this pull request May 28, 2026
## Type of Change
- [x] New feature  

## Motivation and Context
Related to #1404.

This PR adds the initial work to have volume resources conform to
ManagedResource, in alignment with other resources such as networks (see
[here](#1421)). Further work is
necessary to move the use of `VolumeResource` down to the APIServer (in
the VolumesService) and in the volume client. Volumes do not currently
have any plugin or runtime state, so that information is not included in
the `VolumeResource`, but could be added later if needed.

## Testing
- [x] Tested locally

Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants