Skip to content

Commit 0eddb96

Browse files
committed
Generate CRDs: for AWS prefix validation
Generated with PROTO_OPTIONAL=true make update
1 parent e5aa2b8 commit 0eddb96

File tree

42 files changed

+528
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+528
-3
lines changed

config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_infrastructures-CustomNoUpgrade.crd.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,6 +1372,7 @@ spec:
13721372
key sets the key of the AWS resource tag key-value pair. Key is required when defining an AWS resource tag.
13731373
Key should consist of between 1 and 128 characters, and may
13741374
contain only the set of alphanumeric characters, space (' '), '_', '.', '/', '=', '+', '-', ':', and '@'.
1375+
Key must not be start with 'aws:'.
13751376
maxLength: 128
13761377
minLength: 1
13771378
type: string
@@ -1381,6 +1382,9 @@ spec:
13811382
space (' '), '_', '.', '/', '=', '+', '-', ':',
13821383
'@'
13831384
rule: self.matches('^[0-9A-Za-z_.:/=+-@ ]+$')
1385+
- message: the prefix 'aws:' is reserved for AWS system
1386+
usage and cannot be used at the beginning of a key
1387+
rule: '!self.startsWith(''aws:'')'
13841388
value:
13851389
description: |-
13861390
value sets the value of the AWS resource tag key-value pair. Value is required when defining an AWS resource tag.
@@ -1404,6 +1408,10 @@ spec:
14041408
maxItems: 25
14051409
type: array
14061410
x-kubernetes-list-type: atomic
1411+
x-kubernetes-validations:
1412+
- message: resourceTags are immutable and may only be configured
1413+
during installation
1414+
rule: self.all(x, x in oldSelf) && oldSelf.all(x, x in self)
14071415
serviceEndpoints:
14081416
description: |-
14091417
serviceEndpoints list contains custom endpoints which will override default
@@ -1432,6 +1440,10 @@ spec:
14321440
type: array
14331441
x-kubernetes-list-type: atomic
14341442
type: object
1443+
x-kubernetes-validations:
1444+
- message: resourceTags may only be configured during installation
1445+
rule: '!has(oldSelf.resourceTags) && !has(self.resourceTags)
1446+
|| has(oldSelf.resourceTags) && has(self.resourceTags)'
14351447
azure:
14361448
description: azure contains settings specific to the Azure infrastructure
14371449
provider.

config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_infrastructures-Default.crd.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,6 +1190,7 @@ spec:
11901190
key sets the key of the AWS resource tag key-value pair. Key is required when defining an AWS resource tag.
11911191
Key should consist of between 1 and 128 characters, and may
11921192
contain only the set of alphanumeric characters, space (' '), '_', '.', '/', '=', '+', '-', ':', and '@'.
1193+
Key must not be start with 'aws:'.
11931194
maxLength: 128
11941195
minLength: 1
11951196
type: string
@@ -1199,6 +1200,9 @@ spec:
11991200
space (' '), '_', '.', '/', '=', '+', '-', ':',
12001201
'@'
12011202
rule: self.matches('^[0-9A-Za-z_.:/=+-@ ]+$')
1203+
- message: the prefix 'aws:' is reserved for AWS system
1204+
usage and cannot be used at the beginning of a key
1205+
rule: '!self.startsWith(''aws:'')'
12021206
value:
12031207
description: |-
12041208
value sets the value of the AWS resource tag key-value pair. Value is required when defining an AWS resource tag.
@@ -1222,6 +1226,10 @@ spec:
12221226
maxItems: 25
12231227
type: array
12241228
x-kubernetes-list-type: atomic
1229+
x-kubernetes-validations:
1230+
- message: resourceTags are immutable and may only be configured
1231+
during installation
1232+
rule: self.all(x, x in oldSelf) && oldSelf.all(x, x in self)
12251233
serviceEndpoints:
12261234
description: |-
12271235
serviceEndpoints list contains custom endpoints which will override default
@@ -1250,6 +1258,10 @@ spec:
12501258
type: array
12511259
x-kubernetes-list-type: atomic
12521260
type: object
1261+
x-kubernetes-validations:
1262+
- message: resourceTags may only be configured during installation
1263+
rule: '!has(oldSelf.resourceTags) && !has(self.resourceTags)
1264+
|| has(oldSelf.resourceTags) && has(self.resourceTags)'
12531265
azure:
12541266
description: azure contains settings specific to the Azure infrastructure
12551267
provider.

config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_infrastructures-DevPreviewNoUpgrade.crd.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,6 +1372,7 @@ spec:
13721372
key sets the key of the AWS resource tag key-value pair. Key is required when defining an AWS resource tag.
13731373
Key should consist of between 1 and 128 characters, and may
13741374
contain only the set of alphanumeric characters, space (' '), '_', '.', '/', '=', '+', '-', ':', and '@'.
1375+
Key must not be start with 'aws:'.
13751376
maxLength: 128
13761377
minLength: 1
13771378
type: string
@@ -1381,6 +1382,9 @@ spec:
13811382
space (' '), '_', '.', '/', '=', '+', '-', ':',
13821383
'@'
13831384
rule: self.matches('^[0-9A-Za-z_.:/=+-@ ]+$')
1385+
- message: the prefix 'aws:' is reserved for AWS system
1386+
usage and cannot be used at the beginning of a key
1387+
rule: '!self.startsWith(''aws:'')'
13841388
value:
13851389
description: |-
13861390
value sets the value of the AWS resource tag key-value pair. Value is required when defining an AWS resource tag.
@@ -1404,6 +1408,10 @@ spec:
14041408
maxItems: 25
14051409
type: array
14061410
x-kubernetes-list-type: atomic
1411+
x-kubernetes-validations:
1412+
- message: resourceTags are immutable and may only be configured
1413+
during installation
1414+
rule: self.all(x, x in oldSelf) && oldSelf.all(x, x in self)
14071415
serviceEndpoints:
14081416
description: |-
14091417
serviceEndpoints list contains custom endpoints which will override default
@@ -1432,6 +1440,10 @@ spec:
14321440
type: array
14331441
x-kubernetes-list-type: atomic
14341442
type: object
1443+
x-kubernetes-validations:
1444+
- message: resourceTags may only be configured during installation
1445+
rule: '!has(oldSelf.resourceTags) && !has(self.resourceTags)
1446+
|| has(oldSelf.resourceTags) && has(self.resourceTags)'
14351447
azure:
14361448
description: azure contains settings specific to the Azure infrastructure
14371449
provider.

config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_infrastructures-TechPreviewNoUpgrade.crd.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,6 +1372,7 @@ spec:
13721372
key sets the key of the AWS resource tag key-value pair. Key is required when defining an AWS resource tag.
13731373
Key should consist of between 1 and 128 characters, and may
13741374
contain only the set of alphanumeric characters, space (' '), '_', '.', '/', '=', '+', '-', ':', and '@'.
1375+
Key must not be start with 'aws:'.
13751376
maxLength: 128
13761377
minLength: 1
13771378
type: string
@@ -1381,6 +1382,9 @@ spec:
13811382
space (' '), '_', '.', '/', '=', '+', '-', ':',
13821383
'@'
13831384
rule: self.matches('^[0-9A-Za-z_.:/=+-@ ]+$')
1385+
- message: the prefix 'aws:' is reserved for AWS system
1386+
usage and cannot be used at the beginning of a key
1387+
rule: '!self.startsWith(''aws:'')'
13841388
value:
13851389
description: |-
13861390
value sets the value of the AWS resource tag key-value pair. Value is required when defining an AWS resource tag.
@@ -1404,6 +1408,10 @@ spec:
14041408
maxItems: 25
14051409
type: array
14061410
x-kubernetes-list-type: atomic
1411+
x-kubernetes-validations:
1412+
- message: resourceTags are immutable and may only be configured
1413+
during installation
1414+
rule: self.all(x, x in oldSelf) && oldSelf.all(x, x in self)
14071415
serviceEndpoints:
14081416
description: |-
14091417
serviceEndpoints list contains custom endpoints which will override default
@@ -1432,6 +1440,10 @@ spec:
14321440
type: array
14331441
x-kubernetes-list-type: atomic
14341442
type: object
1443+
x-kubernetes-validations:
1444+
- message: resourceTags may only be configured during installation
1445+
rule: '!has(oldSelf.resourceTags) && !has(self.resourceTags)
1446+
|| has(oldSelf.resourceTags) && has(self.resourceTags)'
14351447
azure:
14361448
description: azure contains settings specific to the Azure infrastructure
14371449
provider.

config/v1/zz_generated.featuregated-crd-manifests/infrastructures.config.openshift.io/AAA_ungated.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,6 +1177,7 @@ spec:
11771177
key sets the key of the AWS resource tag key-value pair. Key is required when defining an AWS resource tag.
11781178
Key should consist of between 1 and 128 characters, and may
11791179
contain only the set of alphanumeric characters, space (' '), '_', '.', '/', '=', '+', '-', ':', and '@'.
1180+
Key must not be start with 'aws:'.
11801181
maxLength: 128
11811182
minLength: 1
11821183
type: string
@@ -1186,6 +1187,9 @@ spec:
11861187
space (' '), '_', '.', '/', '=', '+', '-', ':',
11871188
'@'
11881189
rule: self.matches('^[0-9A-Za-z_.:/=+-@ ]+$')
1190+
- message: the prefix 'aws:' is reserved for AWS system
1191+
usage and cannot be used at the beginning of a key
1192+
rule: '!self.startsWith(''aws:'')'
11891193
value:
11901194
description: |-
11911195
value sets the value of the AWS resource tag key-value pair. Value is required when defining an AWS resource tag.
@@ -1209,6 +1213,10 @@ spec:
12091213
maxItems: 25
12101214
type: array
12111215
x-kubernetes-list-type: atomic
1216+
x-kubernetes-validations:
1217+
- message: resourceTags are immutable and may only be configured
1218+
during installation
1219+
rule: self.all(x, x in oldSelf) && oldSelf.all(x, x in self)
12121220
serviceEndpoints:
12131221
description: |-
12141222
serviceEndpoints list contains custom endpoints which will override default
@@ -1237,6 +1245,10 @@ spec:
12371245
type: array
12381246
x-kubernetes-list-type: atomic
12391247
type: object
1248+
x-kubernetes-validations:
1249+
- message: resourceTags may only be configured during installation
1250+
rule: '!has(oldSelf.resourceTags) && !has(self.resourceTags)
1251+
|| has(oldSelf.resourceTags) && has(self.resourceTags)'
12401252
azure:
12411253
description: azure contains settings specific to the Azure infrastructure
12421254
provider.

config/v1/zz_generated.featuregated-crd-manifests/infrastructures.config.openshift.io/AWSClusterHostedDNSInstall.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,6 +1275,7 @@ spec:
12751275
key sets the key of the AWS resource tag key-value pair. Key is required when defining an AWS resource tag.
12761276
Key should consist of between 1 and 128 characters, and may
12771277
contain only the set of alphanumeric characters, space (' '), '_', '.', '/', '=', '+', '-', ':', and '@'.
1278+
Key must not be start with 'aws:'.
12781279
maxLength: 128
12791280
minLength: 1
12801281
type: string
@@ -1284,6 +1285,9 @@ spec:
12841285
space (' '), '_', '.', '/', '=', '+', '-', ':',
12851286
'@'
12861287
rule: self.matches('^[0-9A-Za-z_.:/=+-@ ]+$')
1288+
- message: the prefix 'aws:' is reserved for AWS system
1289+
usage and cannot be used at the beginning of a key
1290+
rule: '!self.startsWith(''aws:'')'
12871291
value:
12881292
description: |-
12891293
value sets the value of the AWS resource tag key-value pair. Value is required when defining an AWS resource tag.
@@ -1307,6 +1311,10 @@ spec:
13071311
maxItems: 25
13081312
type: array
13091313
x-kubernetes-list-type: atomic
1314+
x-kubernetes-validations:
1315+
- message: resourceTags are immutable and may only be configured
1316+
during installation
1317+
rule: self.all(x, x in oldSelf) && oldSelf.all(x, x in self)
13101318
serviceEndpoints:
13111319
description: |-
13121320
serviceEndpoints list contains custom endpoints which will override default
@@ -1335,6 +1343,10 @@ spec:
13351343
type: array
13361344
x-kubernetes-list-type: atomic
13371345
type: object
1346+
x-kubernetes-validations:
1347+
- message: resourceTags may only be configured during installation
1348+
rule: '!has(oldSelf.resourceTags) && !has(self.resourceTags)
1349+
|| has(oldSelf.resourceTags) && has(self.resourceTags)'
13381350
azure:
13391351
description: azure contains settings specific to the Azure infrastructure
13401352
provider.

config/v1/zz_generated.featuregated-crd-manifests/infrastructures.config.openshift.io/AzureClusterHostedDNSInstall.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,6 +1171,7 @@ spec:
11711171
key sets the key of the AWS resource tag key-value pair. Key is required when defining an AWS resource tag.
11721172
Key should consist of between 1 and 128 characters, and may
11731173
contain only the set of alphanumeric characters, space (' '), '_', '.', '/', '=', '+', '-', ':', and '@'.
1174+
Key must not be start with 'aws:'.
11741175
maxLength: 128
11751176
minLength: 1
11761177
type: string
@@ -1180,6 +1181,9 @@ spec:
11801181
space (' '), '_', '.', '/', '=', '+', '-', ':',
11811182
'@'
11821183
rule: self.matches('^[0-9A-Za-z_.:/=+-@ ]+$')
1184+
- message: the prefix 'aws:' is reserved for AWS system
1185+
usage and cannot be used at the beginning of a key
1186+
rule: '!self.startsWith(''aws:'')'
11831187
value:
11841188
description: |-
11851189
value sets the value of the AWS resource tag key-value pair. Value is required when defining an AWS resource tag.
@@ -1203,6 +1207,10 @@ spec:
12031207
maxItems: 25
12041208
type: array
12051209
x-kubernetes-list-type: atomic
1210+
x-kubernetes-validations:
1211+
- message: resourceTags are immutable and may only be configured
1212+
during installation
1213+
rule: self.all(x, x in oldSelf) && oldSelf.all(x, x in self)
12061214
serviceEndpoints:
12071215
description: |-
12081216
serviceEndpoints list contains custom endpoints which will override default
@@ -1231,6 +1239,10 @@ spec:
12311239
type: array
12321240
x-kubernetes-list-type: atomic
12331241
type: object
1242+
x-kubernetes-validations:
1243+
- message: resourceTags may only be configured during installation
1244+
rule: '!has(oldSelf.resourceTags) && !has(self.resourceTags)
1245+
|| has(oldSelf.resourceTags) && has(self.resourceTags)'
12341246
azure:
12351247
description: azure contains settings specific to the Azure infrastructure
12361248
provider.

config/v1/zz_generated.featuregated-crd-manifests/infrastructures.config.openshift.io/DualReplica.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,7 @@ spec:
11761176
key sets the key of the AWS resource tag key-value pair. Key is required when defining an AWS resource tag.
11771177
Key should consist of between 1 and 128 characters, and may
11781178
contain only the set of alphanumeric characters, space (' '), '_', '.', '/', '=', '+', '-', ':', and '@'.
1179+
Key must not be start with 'aws:'.
11791180
maxLength: 128
11801181
minLength: 1
11811182
type: string
@@ -1185,6 +1186,9 @@ spec:
11851186
space (' '), '_', '.', '/', '=', '+', '-', ':',
11861187
'@'
11871188
rule: self.matches('^[0-9A-Za-z_.:/=+-@ ]+$')
1189+
- message: the prefix 'aws:' is reserved for AWS system
1190+
usage and cannot be used at the beginning of a key
1191+
rule: '!self.startsWith(''aws:'')'
11881192
value:
11891193
description: |-
11901194
value sets the value of the AWS resource tag key-value pair. Value is required when defining an AWS resource tag.
@@ -1208,6 +1212,10 @@ spec:
12081212
maxItems: 25
12091213
type: array
12101214
x-kubernetes-list-type: atomic
1215+
x-kubernetes-validations:
1216+
- message: resourceTags are immutable and may only be configured
1217+
during installation
1218+
rule: self.all(x, x in oldSelf) && oldSelf.all(x, x in self)
12111219
serviceEndpoints:
12121220
description: |-
12131221
serviceEndpoints list contains custom endpoints which will override default
@@ -1236,6 +1244,10 @@ spec:
12361244
type: array
12371245
x-kubernetes-list-type: atomic
12381246
type: object
1247+
x-kubernetes-validations:
1248+
- message: resourceTags may only be configured during installation
1249+
rule: '!has(oldSelf.resourceTags) && !has(self.resourceTags)
1250+
|| has(oldSelf.resourceTags) && has(self.resourceTags)'
12391251
azure:
12401252
description: azure contains settings specific to the Azure infrastructure
12411253
provider.

0 commit comments

Comments
 (0)