From 0a210bf5d3befc80e591bc1a1b86a04a7cf5b755 Mon Sep 17 00:00:00 2001 From: Timofei Larkin Date: Wed, 5 Nov 2025 12:48:03 +0300 Subject: [PATCH] [vpc] Entry per subnet in the subnets configmap ### Release note ```release-note [vpc] Change the subnets configmap structure from .data.subnets==[]Subnet to .data==map[SubnetName]Subnet for simpler representation in the dashboard. ``` Signed-off-by: Timofei Larkin --- packages/apps/vpc/templates/vpc.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/apps/vpc/templates/vpc.yaml b/packages/apps/vpc/templates/vpc.yaml index 3625aa1d..e8834dc5 100644 --- a/packages/apps/vpc/templates/vpc.yaml +++ b/packages/apps/vpc/templates/vpc.yaml @@ -63,10 +63,10 @@ metadata: cozystack.io/vpcId: {{ $vpcId }} cozystack.io/tenantName: {{ $.Release.Namespace }} data: - subnets: | - {{- range $subnetName, $subnetConfig := .Values.subnets }} - - subnetName: {{ $subnetName }} - subnetId: {{ print "subnet-" (print $.Release.Namespace "/" $vpcId "/" $subnetName | sha256sum | trunc 8) }} - subnetCIDR: {{ $subnetConfig.cidr }} - {{- end }} + {{- range $subnetName, $subnetConfig := .Values.subnets }} + {{ $subnetName }}: |- + subnetName: {{ $subnetName }} + subnetId: {{ print "subnet-" (print $.Release.Namespace "/" $vpcId "/" $subnetName | sha256sum | trunc 8) }} + subnetCIDR: {{ $subnetConfig.cidr }} + {{- end }}