Skip to content

Commit b1dcb5e

Browse files
authored
Merge pull request #283 from jprovaznik/hostname
Add hostname constraint
2 parents a3f854d + c996c23 commit b1dcb5e

7 files changed

Lines changed: 21 additions & 0 deletions

File tree

bastion.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ parameters:
3939
description: >
4040
The Infrastructure hostname portion of the FQDN
4141
type: string
42+
constraints:
43+
- allowed_pattern: '[a-z0-9\-]*'
44+
description: Hostname must contain only characters [a-z0-9\-].
4245

4346
domain_name:
4447
description: >

infra.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ parameters:
9292
description: >
9393
A string to identify infra hostnames.
9494
type: string
95+
constraints:
96+
- allowed_pattern: '[a-z0-9\-]*'
97+
description: Hostname must contain only characters [a-z0-9\-].
9598

9699
domain_name:
97100
description: >

loadbalancer_dedicated.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ parameters:
3737
description: >
3838
The load balancer hostname portion of the FQDN
3939
type: string
40+
constraints:
41+
- allowed_pattern: '[a-z0-9\-]*'
42+
description: Hostname must contain only characters [a-z0-9\-].
4043

4144
domain_name:
4245
description: >

loadbalancer_external.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ parameters:
3535
description: >
3636
The load balancer hostname portion of the FQDN
3737
type: string
38+
constraints:
39+
- allowed_pattern: '[a-z0-9\-]*'
40+
description: Hostname must contain only characters [a-z0-9\-].
3841

3942
domain_name:
4043
description: >

loadbalancer_neutron.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ parameters:
3434
description: >
3535
The load balancer hostname portion of the FQDN
3636
type: string
37+
constraints:
38+
- allowed_pattern: '[a-z0-9\-]*'
39+
description: Hostname must contain only characters [a-z0-9\-].
3740

3841
domain_name:
3942
description: >

master.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ parameters:
9292
description: >
9393
A string to identify master hostnames.
9494
type: string
95+
constraints:
96+
- allowed_pattern: '[a-z0-9\-]*'
97+
description: Hostname must contain only characters [a-z0-9\-].
9598

9699
domain_name:
97100
description: >

node.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ parameters:
126126
A string to identify node hostnames. Each node will also have a
127127
unique random substring attached
128128
type: string
129+
constraints:
130+
- allowed_pattern: '[a-z0-9\-]*'
131+
description: Hostname must contain only characters [a-z0-9\-].
129132

130133
domain_name:
131134
description: >

0 commit comments

Comments
 (0)