Skip to content

Remove XPC compatibility code, simplify network model. - #1616

Merged
katiewasnothere merged 5 commits into
apple:mainfrom
jglogan:networktype-refactor
May 29, 2026
Merged

Remove XPC compatibility code, simplify network model.#1616
katiewasnothere merged 5 commits into
apple:mainfrom
jglogan:networktype-refactor

Conversation

@jglogan

@jglogan jglogan commented May 29, 2026

Copy link
Copy Markdown
Contributor
  • Part of [Request]: TECH DEBT: Refactor network resource management for 1.0. #1404.
  • Refactor network model types: replace NetworkState enum and phase-based NetworkStatus with a flat NetworkStatus struct.
  • Simplify API server ↔ plugin protocol: plugin status() returns runtime status only, API server owns configuration.
  • NetworksService list()/create() now return NetworkResource directly.
  • Remove lifecycle phase checks and state machine guards throughout CLI and API server.
  • variant is plugin-specific, it's not a required property. This PR replaces NetworkPluginInfo with a plugin name property on NetworkConfiguration and an options list similar to that for volumes.
  • Moved variant to the option list.

Type of Change

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

Motivation and Context

Lots of tech debt around redundant types, clearing out XPC compatibility code for 0.x releases.

Testing

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

jglogan added 2 commits May 28, 2026 17:52
- Refactor network model types: replace `NetworkState`
  enum and phase-based NetworkStatus with a flat
  `NetworkStatus` struct.
- Simplify API server ↔ plugin protocol: plugin
  `status()` returns runtime status only, API
  server owns configuration.
- `NetworksService` `list()`/`create()` now return
  `NetworkResource` directly.
- Remove lifecycle phase checks and state machine
  guards throughout CLI and API server.
jglogan added 3 commits May 29, 2026 00:37
- `variant` is plugin-specific, it's not a required
  property. This PR replaces `NetworkPluginInfo`
  with a `plugin` name property on `NetworkConfiguration`
  and an `options` list similar to that for volumes.
- Moved `variant` to the option list.
@github-actions

Copy link
Copy Markdown

Code Coverage

Tier Line Coverage
Unit 34.17%
Integration 19.75%
Combined 53.32%

@katiewasnothere
katiewasnothere merged commit 37595a7 into apple:main May 29, 2026
3 checks passed
@jglogan
jglogan deleted the networktype-refactor branch May 31, 2026 14:43
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.

2 participants