cozystack/packages/apps/vpc/values.yaml
Andrei Kvapil 8e8bea039f
feat(vpc): migrate subnets definition from map to array format
Change VPC subnets from map[string]Subnet to []Subnet with explicit
name field, aligning with the vm-instance subnet format.

Map format:  subnets: {mysubnet: {cidr: "x"}}
Array format: subnets: [{name: mysubnet, cidr: "x"}]

Subnet ID generation (sha256 of namespace/vpcId/subnetName) remains
unchanged — subnetName now comes from .name field instead of map key.
ConfigMap output format stays the same.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2026-02-15 21:34:19 +01:00

16 lines
355 B
YAML

##
## @section Common parameters
##
## @typedef {struct} Subnet - Subnet of a VPC
## @field {string} name - Subnet name
## @field {string} [cidr] - IP address range
## @param {[]Subnet} subnets - Subnets of a VPC
subnets: []
## Example:
## subnets:
## - name: mysubnet0
## cidr: "172.16.0.0/24"
## - name: mysubnet1
## cidr: "172.16.1.0/24"