Files
cozystack/packages/core/platform/sources/virtualprivatecloud-application.yaml
T
Timofei Larkin e4ac5dbb9c feat(vpc): cozyplane variant of the VPC application
The kubevirt flavor of virtualprivatecloud is kube-ovn/multus-backed,
so the cozyplane networking variant skipped it and the
VirtualPrivateCloud catalog kind was simply absent there. This adds an
alternative flavor serving the same kind from sdn.cozystack.io: the
chart creates a namespaced VPC, the owner-namespace VPCBinding
(attachment is default-deny even for the owner), one VPCPeering half
per declared peer, and an optional VPCGateway as the north-south
boundary.

Delivery follows the networking variant: the PackageSource gains a
cozyplane variant whose ordering edge is the aggregated sdn apiserver
instead of multus, the iaas bundle selects the flavor by
networkingVariant, and virtualprivatecloud-rd installs the matching
ApplicationDefinition. Each flavor's definition must point at its own
variant's ExternalArtifact, which is why hack/update-crd.sh now honors
VARIANT from the environment instead of always reading variants[0].

Assisted-by: LLM
Signed-off-by: Timofei Larkin <lllamnyp@gmail.com>
2026-11-25 12:00:48 +01:00

54 lines
1.8 KiB
YAML

---
apiVersion: cozystack.io/v1alpha1
kind: PackageSource
metadata:
name: cozystack.virtualprivatecloud-application
spec:
sourceRef:
kind: OCIRepository
name: cozystack-packages
namespace: cozy-system
path: /
variants:
- name: kubevirt
dependsOn:
- cozystack.networking
- cozystack.multus
# cozystack-engine ships the ApplicationDefinition CRD rendered by the *-rd component below.
- cozystack.cozystack-engine
libraries:
- name: cozy-lib
path: library/cozy-lib
components:
- name: virtualprivatecloud
path: apps/vpc
libraries: [cozy-lib]
- name: virtualprivatecloud-rd
path: system/virtualprivatecloud-rd
install:
namespace: cozy-system
releaseName: virtualprivatecloud-rd
# The cozyplane networking variant's VPC: the same VirtualPrivateCloud
# catalog kind, backed by sdn.cozystack.io resources instead of
# kube-ovn/multus. No multus edge — this variant creates no
# NetworkAttachmentDefinitions.
- name: cozyplane
dependsOn:
- cozystack.networking
# cozystack-engine ships the ApplicationDefinition CRD rendered by the *-rd component below.
- cozystack.cozystack-engine
# The aggregated apiserver serves sdn.cozystack.io; until it lands the
# group is not served and a tenant VPC release cannot apply.
- cozystack.cozyplane-apiserver
components:
- name: virtualprivatecloud
path: apps/vpc-cozyplane
- name: virtualprivatecloud-rd
path: system/virtualprivatecloud-rd
valuesFiles:
- values.yaml
- values-cozyplane.yaml
install:
namespace: cozy-system
releaseName: virtualprivatecloud-rd