mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-05 22:53:43 +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>
78 lines
2.3 KiB
JSON
78 lines
2.3 KiB
JSON
{
|
|
"title": "Chart Values",
|
|
"type": "object",
|
|
"properties": {
|
|
"cidrs": {
|
|
"description": "Address ranges (IPv4 and/or IPv6) of the VPC. May overlap with other VPCs: isolation is by overlay, not address space.",
|
|
"type": "array",
|
|
"default": [],
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"mtu": {
|
|
"description": "MTU advertised to workloads in this VPC. 0 selects the platform default.",
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"peers": {
|
|
"description": "VPC peering connections (bidirectional declaration required)",
|
|
"type": "array",
|
|
"default": [],
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"tenantNamespace",
|
|
"vpcName"
|
|
],
|
|
"properties": {
|
|
"tenantNamespace": {
|
|
"description": "Namespace of the remote tenant",
|
|
"type": "string",
|
|
"maxLength": 63,
|
|
"pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
|
|
},
|
|
"vpcName": {
|
|
"description": "Name of the remote VPC (without \"virtualprivatecloud-\" prefix)",
|
|
"type": "string",
|
|
"maxLength": 63,
|
|
"pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"gateway": {
|
|
"description": "North-south boundary of the VPC",
|
|
"type": "object",
|
|
"default": {},
|
|
"required": [
|
|
"enabled",
|
|
"ingressLoadBalancer",
|
|
"nat"
|
|
],
|
|
"properties": {
|
|
"enabled": {
|
|
"description": "Open a path to the outside. Without a gateway the VPC is a closed island: no way out, no way in.",
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"ingressLoadBalancer": {
|
|
"description": "Admit Service type=LoadBalancer traffic onto this VPC's workloads.",
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"loadBalancerClass": {
|
|
"description": "The LoadBalancer implementation that allocates the egress identity. Empty selects the cluster default.",
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"nat": {
|
|
"description": "Many-to-one egress for workloads with no external address of their own.",
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|