feat: make AZ suffixes configurable for regions with non-standard AZs

This commit is contained in:
2026-04-22 12:19:38 -03:00
parent 92b1041342
commit 10b3c1907e
3 changed files with 12 additions and 4 deletions
+6 -4
View File
@@ -12,6 +12,8 @@ spec:
spec:
name: string
region: string
az1Suffix: string | default="a"
az2Suffix: string | default="b"
cidr:
vpcCidr: string | default="10.0.0.0/16"
publicSubnet1Cidr: string | default="10.0.1.0/24"
@@ -173,7 +175,7 @@ spec:
annotations:
services.k8s.aws/region: ${schema.spec.region}
spec:
availabilityZone: ${schema.spec.region}a
availabilityZone: ${schema.spec.region}${schema.spec.az1Suffix}
cidrBlock: ${schema.spec.cidr.publicSubnet1Cidr}
mapPublicIPOnLaunch: true
vpcID: ${vpc.status.vpcID}
@@ -194,7 +196,7 @@ spec:
annotations:
services.k8s.aws/region: ${schema.spec.region}
spec:
availabilityZone: ${schema.spec.region}b
availabilityZone: ${schema.spec.region}${schema.spec.az2Suffix}
cidrBlock: ${schema.spec.cidr.publicSubnet2Cidr}
mapPublicIPOnLaunch: true
vpcID: ${vpc.status.vpcID}
@@ -215,7 +217,7 @@ spec:
annotations:
services.k8s.aws/region: ${schema.spec.region}
spec:
availabilityZone: ${schema.spec.region}a
availabilityZone: ${schema.spec.region}${schema.spec.az1Suffix}
cidrBlock: ${schema.spec.cidr.privateSubnet1Cidr}
vpcID: ${vpc.status.vpcID}
routeTables:
@@ -235,7 +237,7 @@ spec:
annotations:
services.k8s.aws/region: ${schema.spec.region}
spec:
availabilityZone: ${schema.spec.region}b
availabilityZone: ${schema.spec.region}${schema.spec.az2Suffix}
cidrBlock: ${schema.spec.cidr.privateSubnet2Cidr}
vpcID: ${vpc.status.vpcID}
routeTables: