## What this PR does Stacked on #3149. The cozyplane networking variant skips the kube-ovn/multus-backed `virtualprivatecloud` application, which left the VirtualPrivateCloud catalog kind absent on cozyplane clusters. This PR adds an **alternative flavor of the same catalog kind**, backed by cozyplane's `sdn.cozystack.io` API, and wires it in as a second variant of the existing delivery: - **`packages/apps/vpc-cozyplane`** — a chart that creates a namespaced `VPC` (address ranges may overlap between VPCs; isolation is by overlay), the owner-namespace `VPCBinding` (attachment is default-deny even for the owner), one `VPCPeering` half per declared peer (bidirectional declaration, same UX as the kubevirt flavor's `peers`), and an optional `VPCGateway` (`gateway.enabled` / `nat` / `ingressLoadBalancer` / `loadBalancerClass`). - **`virtualprivatecloud-rd`** now selects which ApplicationDefinition it installs by a `variant` value: both flavors register the same kind with the same release prefix, but each definition must point at its own variant's ExternalArtifact. The cozyplane definition is generated by the same `hack/update-crd.sh` flow; the script now honors `VARIANT`/`OUT` from the environment instead of always reading `variants[0]` of the PackageSource. - **`cozystack.virtualprivatecloud-application`** gains a `cozyplane` variant whose ordering edge is `cozystack.cozyplane-apiserver` (the group is aggregated-only) instead of `cozystack.multus`, and the iaas bundle selects the flavor by `bundles.system.networkingVariant`, replacing the previous skip. Covered by helm-unittest suites in all three places: chart rendering (binding always present, gateway/peering shapes, `loadBalancerClass` absent when empty), rd variant selection (exactly one definition, correct chartRef, unknown variant fails the render), and platform wiring (bundle flavor selection, dependency edges with no multus edge on cozyplane). Not in scope, deliberately: cross-namespace VPCBindings (sharing a VPC with another tenant's namespace), reserved NAT identities (`addressClaimName` waits on the address substrate), and e2e — real-cluster validation of the whole cozyplane stack is tracked on #3149. **VM attachment (added 2026-10-08).** `vm-instance` now joins a VM to a cozyplane VPC: when the cluster serves `sdn.cozystack.io` (API discovery, the same gate as the Kube-OVN IP pinning), the chart stamps `sdn.cozystack.io/vpc: virtualprivatecloud-<networks[0].name>` on the virt-launcher pod and renders no multus networks and no secondary interfaces — the VM keeps its single pod interface. The values contract is unchanged for consumers: `networks: [{name: <VPC catalog name>}]`, the name without the `virtualprivatecloud-` prefix, same convention as `peers[].vpcName`; at most one entry (more fails the render by name, since a cozyplane pod joins exactly one VPC). The Cilium-variant multus path is untouched and both branches are unit-tested. **Route table (added 2026-11-20).** `vm-instance` takes `routeTable`, the name of a cozyplane RouteTable in the VM's namespace (a DNS-1123 name, empty by default). When it is set and the VM joins a VPC through `networks`, the chart renders `sdn.cozystack.io/route-table: <routeTable>` on the virt-launcher pod next to `sdn.cozystack.io/vpc`; empty renders nothing and leaves the VPC's default table in effect. Setting it without a VPC network, or on a cluster that does not serve `sdn.cozystack.io`, fails the render by name. Still to verify on a live stand, not by rendering: which KubeVirt interface binding the default interface needs on cozyplane (the template uses `bridge: {}`; masquerade may be required), whether the guest acquires the VPC address over DHCP, and whether `kubevirt.io/allow-pod-bridge-network-live-migration` still applies — the CNI stamps `sdn.cozystack.io/vpc-ip`/`-mac` on the launcher pod to check against. ### Compatibility Existing installations are unchanged. `bundles.system.networkingVariant` defaults to `kubeovn-cilium`, which keeps the `kubevirt` flavor of `cozystack.virtualprivatecloud-application` and its ApplicationDefinition exactly as before; the `cozyplane` flavor is selected only together with `networkingVariant: cozyplane`. On a running cluster that switch changes the `cozystack.networking` variant, which the platform render refuses unless `networking.acknowledgeVariantChange` names the new variant (#3149). No migration moves kube-ovn-backed VPCs onto the cozyplane flavor. ### Screenshots Not a UI change. ### Downstream repositories The trigger map fires for cozystack/website (a new package under `packages/apps/` needs an entry in the website Makefile's app lists, and the variant recomposition touches the variants page) and arguably for terraform-provider-cozystack (the VirtualPrivateCloud spec differs per flavor, so the hand-maintained schema will not match cozyplane clusters). Both follow-ups are deferred while this stack is draft — filing them against an unmerged experimental variant would be noise; they should be opened when #3149 leaves draft. Boxes left unticked so a human decides. - [ ] No downstream repository is affected by this change - [ ] [cozystack/website](https://github.com/cozystack/website) - follow-up: - [ ] [cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack) - follow-up: - [ ] [cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack) - follow-up: - [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up: - [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up: - [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) - follow-up: - [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) - follow-up: - [ ] [cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server) - follow-up: - [ ] [cozystack/external-apps-example](https://github.com/cozystack/external-apps-example) - follow-up: - [ ] [cozystack/examples](https://github.com/cozystack/examples) - follow-up: - [ ] [cozystack/community](https://github.com/cozystack/community) - follow-up: ### Release note ```release-note feat(vpc): the cozyplane networking variant now serves the VirtualPrivateCloud application, backed by sdn.cozystack.io — namespaced VPCs with peering and an optional north-south gateway ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Added a Cozyplane-backed VirtualPrivateCloud option with configurable network ranges, peer connections, and optional gateway, NAT, and ingress settings. * The platform now selects the VPC option based on the configured networking variant. * VMs using Cozyplane networking can join one VirtualPrivateCloud while retaining a single pod interface; multiple network entries are rejected. * **Documentation** * Updated VPC and VM networking guidance, including configuration options and Cozyplane-specific behavior. * **Tests** * Added coverage for VPC configuration, networking variant selection, and VM attachment behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Cozystack
Cozystack is a free and open-source platform and framework for building clouds.
Cozystack is a CNCF Sandbox project that was originally built and sponsored by Ænix.
With Cozystack, you can transform a bunch of servers into an intelligent system with a simple REST API for spawning Kubernetes clusters, Database-as-a-Service, virtual machines, load balancers, HTTP caching services, and other services with ease.
Use Cozystack to build your own cloud or provide a cost-effective development environment.
Use-Cases
-
Using Cozystack to build a public cloud
You can use Cozystack as a backend for a public cloud -
Using Cozystack to build a private cloud
You can use Cozystack as a platform to build a private cloud powered by Infrastructure-as-Code approach -
Using Cozystack to build your own platform
You can install only the Cozystack components you need on an existing Kubernetes cluster
Documentation
The documentation is located on the cozystack.io website.
Read the Getting Started section for a quick start.
If you encounter any difficulties, start with the troubleshooting guide and work your way through the process that we've outlined.
Versioning
Versioning adheres to the Semantic Versioning principles.
A full list of the available releases is available in the GitHub repository's Release section.
Contributions
Contributions are highly appreciated and very welcomed!
In case of bugs, please check if the issue has already been opened by checking the GitHub Issues section. If it isn't, you can open a new one. A detailed report will help us replicate it, assess it, and work on a fix.
You are welcome to take on the fix yourself. Commits are used to generate the changelog, and their author will be referenced in it.
If you have a concrete feature request, open an issue. For a cross-cutting or architectural change, open a design proposal in the community repo. For questions or early ideas, use GitHub Discussions. See CONTRIBUTING.md for the full routing.
Community
You are welcome to join us in #cozystack, on either CNCF Slack (get an invite) or Kubernetes Slack (get an invite), in our Telegram group, and at our community meetings. Add them to your Google Calendar or iCal for convenience.
Project documents
| Document | What it covers |
|---|---|
| Governance | How decisions are made and who makes them |
| Contributor Ladder | How to grow from contributor to maintainer |
| Maintainers | Who maintains the project |
| Code of Conduct | What we expect of each other |
| Security Policy | Reporting a vulnerability, and which releases get fixes |
| Adopters | Who runs Cozystack in production |
| Roadmap | Where the project is going |
License
Cozystack is licensed under Apache 2.0.
The code is provided as-is with no warranties.
Commercial Support
A list of companies providing commercial support for this project can be found on official site.
