cozystack/packages/core/platform
Andrei Kvapil d6b2b412f4
[vm-instance] Rename subnets to networks and add dropdown selector (#2263)
## What this PR does

Renames the misleading `subnets` field to `networks` in VMInstance. The
old field
name implied the VM was creating subnets, when in reality it attaches
the VM to
existing VPC network attachments (NetworkAttachmentDefinitions). This
change:

- Adds a new `networks` field as the primary way to attach VMs to VPC
networks
- Keeps `subnets` as deprecated with backward-compatible fallback via
Helm `default`
- Fails with a clear error if both `networks` and `subnets` are set
simultaneously
- Adds an API-backed dropdown selector for `networks[].name` listing
available
  NetworkAttachmentDefinitions in the namespace
- Hides the deprecated `subnets` field from the dashboard UI

### Release note

```release-note
[vm-instance] Rename `subnets` field to `networks` in VMInstance for clarity.
The old `subnets` field is deprecated but still supported for backward compatibility.
A dropdown selector for available networks has been added to the dashboard.
```

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added native networks field for VM attachments and a UI dropdown to
select network attachments; UI hides deprecated subnet fields for VM
instances.

* **Deprecations**
* subnets is deprecated; use networks moving forward (subnets retained
for backward compatibility).

* **Chores / Migration**
* Added a migration to copy existing subnets into networks and bumped
platform migration target version.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-03-30 20:07:44 +02:00
..
images/migrations fix(vm-instance): remove fail on both networks and subnets set 2026-03-30 11:11:56 +05:00
sources [apps] Add managed OpenSearch service (#1953) 2026-03-18 11:22:00 +01:00
templates [platform] Added resource-policy to keep installed packages 2026-03-26 19:06:04 +05:00
Chart.yaml Calculate tags and version automatically (#100) 2024-04-24 11:31:22 +02:00
Makefile [platform] Fix Makefile targets 2026-02-12 15:28:44 +01:00
values-isp-full-generic.yaml fix(platform): use correct package names in enabledPackages 2026-01-30 23:12:23 +03:00
values-isp-full.yaml refactor(platform): restructure bundles and add PackageSources 2026-01-15 14:15:00 +01:00
values-isp-hosted.yaml refactor(platform): restructure bundles and add PackageSources 2026-01-15 14:15:00 +01:00
values.yaml feat(platform): add migration 36 to copy subnets to networks in VMInstance 2026-03-30 10:59:03 +05:00