cozystack/packages/apps
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
..
bucket [docs] Updated app go types 2026-03-25 15:57:25 +05:00
clickhouse [docs] Updated app go types 2026-03-25 15:57:25 +05:00
foundationdb [docs] Updated app go types 2026-03-25 15:57:25 +05:00
harbor [docs] Updated app go types 2026-03-25 15:57:25 +05:00
http-cache Prepare release v1.2.0 2026-03-27 14:00:46 +00:00
kafka [docs] Updated app go types 2026-03-25 15:57:25 +05:00
kubernetes Prepare release v1.2.0 2026-03-27 14:00:46 +00:00
mariadb fix(mariadb): use primary service for backups with single replica 2026-03-27 11:47:32 +05:00
mongodb [docs] Updated app go types 2026-03-25 15:57:25 +05:00
nats [docs] Updated app go types 2026-03-25 15:57:25 +05:00
openbao [docs] Updated app go types 2026-03-25 15:57:25 +05:00
opensearch [docs] Fixed controller-gen markers 2026-03-25 15:57:25 +05:00
postgres [postgres] Fix database deletion lifecycle management (#2247) 2026-03-27 17:49:15 +05:00
qdrant [docs] Updated app go types 2026-03-25 15:57:25 +05:00
rabbitmq [docs] Updated app go types 2026-03-25 15:57:25 +05:00
redis [docs] Updated app go types 2026-03-25 15:57:25 +05:00
tcp-balancer [docs] Updated app go types 2026-03-25 15:57:25 +05:00
tenant [docs] Updated app go types 2026-03-25 15:57:25 +05:00
vm-disk [docs] Updated app go types 2026-03-25 15:57:25 +05:00
vm-instance fix(vm-instance): remove fail on both networks and subnets set 2026-03-30 11:11:56 +05:00
vpc [docs] Update cozyvalues-gen 2026-03-25 15:59:22 +05:00
vpn [docs] Updated app go types 2026-03-25 15:57:25 +05:00
Makefile refactor: move scripts to hack directory 2026-01-15 16:06:56 +01:00
README.md [clickhouse] add clickhouse keeper 2025-08-07 14:07:05 +03:00

How to test packages local

cd packages/core/installer
make image-cozystack REGISTRY=YOUR_CUSTOM_REGISTRY
make apply
kubectl delete po -l app=source-controller -n cozy-fluxcd