Skip to content

Commit 8ba44ec

Browse files
lfinmauritiusclaude
andcommitted
fix(vpc): quote the subnet name label on the Cozyplane objects
subnets[*].name is an unconstrained string in the schema; unquoted, a name carrying a newline would open another YAML document. Quote it on the three Cozyplane objects that carry it as a label. The Kube-OVN block is left as is so its rendering stays byte-identical. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: lfneosequentia <[email protected]>
1 parent 5a54621 commit 8ba44ec

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/apps/vpc/templates/vpc.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ metadata:
5454
name: {{ $subnetId }}
5555
namespace: {{ $.Release.Namespace }}
5656
labels:
57-
cozystack.io/subnetName: {{ .name }}
57+
cozystack.io/subnetName: {{ .name | quote }}
5858
cozystack.io/vpcId: {{ $vpcId }}
5959
cozystack.io/vpcName: {{ $.Release.Name }}
6060
cozystack.io/tenantName: {{ $.Release.Namespace }}
@@ -68,7 +68,7 @@ metadata:
6868
name: {{ $subnetId }}
6969
namespace: {{ $.Release.Namespace }}
7070
labels:
71-
cozystack.io/subnetName: {{ .name }}
71+
cozystack.io/subnetName: {{ .name | quote }}
7272
cozystack.io/vpcId: {{ $vpcId }}
7373
cozystack.io/vpcName: {{ $.Release.Name }}
7474
cozystack.io/tenantName: {{ $.Release.Namespace }}
@@ -83,7 +83,7 @@ metadata:
8383
name: {{ $subnetId }}
8484
namespace: {{ $.Release.Namespace }}
8585
labels:
86-
cozystack.io/subnetName: {{ .name }}
86+
cozystack.io/subnetName: {{ .name | quote }}
8787
cozystack.io/vpcId: {{ $vpcId }}
8888
cozystack.io/vpcName: {{ $.Release.Name }}
8989
cozystack.io/tenantName: {{ $.Release.Namespace }}

0 commit comments

Comments
 (0)