mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-02 21:30:46 +09:00
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>
54 lines
1.8 KiB
YAML
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
|