Skip to content

Commit 244900a

Browse files
committed
Generate CRDS: for aws tag prefix validation
PROTO_OPTIONAL=true make update
1 parent 62ef419 commit 244900a

50 files changed

Lines changed: 602 additions & 2 deletions

File tree

Some content is hidden

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

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,6 +1387,7 @@ spec:
13871387
key sets the key of the AWS resource tag key-value pair. Key is required when defining an AWS resource tag.
13881388
Key should consist of between 1 and 128 characters, and may
13891389
contain only the set of alphanumeric characters, space (' '), '_', '.', '/', '=', '+', '-', ':', and '@'.
1390+
Key must not start with 'aws:'.
13901391
maxLength: 128
13911392
minLength: 1
13921393
type: string
@@ -1396,6 +1397,9 @@ spec:
13961397
space (' '), '_', '.', '/', '=', '+', '-', ':',
13971398
'@'
13981399
rule: self.matches('^[0-9A-Za-z_.:/=+-@ ]+$')
1400+
- message: the prefix 'aws:' is reserved for AWS system
1401+
usage and cannot be used at the beginning of a key
1402+
rule: '!self.startsWith(''aws:'')'
13991403
value:
14001404
description: |-
14011405
value sets the value of the AWS resource tag key-value pair. Value is required when defining an AWS resource tag.
@@ -1419,6 +1423,10 @@ spec:
14191423
maxItems: 25
14201424
type: array
14211425
x-kubernetes-list-type: atomic
1426+
x-kubernetes-validations:
1427+
- message: resourceTags are immutable and may only be configured
1428+
during installation
1429+
rule: self.all(x, x in oldSelf) && oldSelf.all(x, x in self)
14221430
serviceEndpoints:
14231431
description: |-
14241432
serviceEndpoints list contains custom endpoints which will override default
@@ -1447,6 +1455,9 @@ spec:
14471455
type: array
14481456
x-kubernetes-list-type: atomic
14491457
type: object
1458+
x-kubernetes-validations:
1459+
- message: resourceTags may only be configured during installation
1460+
rule: has(oldSelf.resourceTags) == has(self.resourceTags)
14501461
azure:
14511462
description: azure contains settings specific to the Azure infrastructure
14521463
provider.

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

Lines changed: 11 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 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,9 @@ 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)
12531264
azure:
12541265
description: azure contains settings specific to the Azure infrastructure
12551266
provider.

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,6 +1387,7 @@ spec:
13871387
key sets the key of the AWS resource tag key-value pair. Key is required when defining an AWS resource tag.
13881388
Key should consist of between 1 and 128 characters, and may
13891389
contain only the set of alphanumeric characters, space (' '), '_', '.', '/', '=', '+', '-', ':', and '@'.
1390+
Key must not start with 'aws:'.
13901391
maxLength: 128
13911392
minLength: 1
13921393
type: string
@@ -1396,6 +1397,9 @@ spec:
13961397
space (' '), '_', '.', '/', '=', '+', '-', ':',
13971398
'@'
13981399
rule: self.matches('^[0-9A-Za-z_.:/=+-@ ]+$')
1400+
- message: the prefix 'aws:' is reserved for AWS system
1401+
usage and cannot be used at the beginning of a key
1402+
rule: '!self.startsWith(''aws:'')'
13991403
value:
14001404
description: |-
14011405
value sets the value of the AWS resource tag key-value pair. Value is required when defining an AWS resource tag.
@@ -1419,6 +1423,10 @@ spec:
14191423
maxItems: 25
14201424
type: array
14211425
x-kubernetes-list-type: atomic
1426+
x-kubernetes-validations:
1427+
- message: resourceTags are immutable and may only be configured
1428+
during installation
1429+
rule: self.all(x, x in oldSelf) && oldSelf.all(x, x in self)
14221430
serviceEndpoints:
14231431
description: |-
14241432
serviceEndpoints list contains custom endpoints which will override default
@@ -1447,6 +1455,9 @@ spec:
14471455
type: array
14481456
x-kubernetes-list-type: atomic
14491457
type: object
1458+
x-kubernetes-validations:
1459+
- message: resourceTags may only be configured during installation
1460+
rule: has(oldSelf.resourceTags) == has(self.resourceTags)
14501461
azure:
14511462
description: azure contains settings specific to the Azure infrastructure
14521463
provider.

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

Lines changed: 11 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 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,9 @@ 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)
12531264
azure:
12541265
description: azure contains settings specific to the Azure infrastructure
12551266
provider.

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,6 +1387,7 @@ spec:
13871387
key sets the key of the AWS resource tag key-value pair. Key is required when defining an AWS resource tag.
13881388
Key should consist of between 1 and 128 characters, and may
13891389
contain only the set of alphanumeric characters, space (' '), '_', '.', '/', '=', '+', '-', ':', and '@'.
1390+
Key must not start with 'aws:'.
13901391
maxLength: 128
13911392
minLength: 1
13921393
type: string
@@ -1396,6 +1397,9 @@ spec:
13961397
space (' '), '_', '.', '/', '=', '+', '-', ':',
13971398
'@'
13981399
rule: self.matches('^[0-9A-Za-z_.:/=+-@ ]+$')
1400+
- message: the prefix 'aws:' is reserved for AWS system
1401+
usage and cannot be used at the beginning of a key
1402+
rule: '!self.startsWith(''aws:'')'
13991403
value:
14001404
description: |-
14011405
value sets the value of the AWS resource tag key-value pair. Value is required when defining an AWS resource tag.
@@ -1419,6 +1423,10 @@ spec:
14191423
maxItems: 25
14201424
type: array
14211425
x-kubernetes-list-type: atomic
1426+
x-kubernetes-validations:
1427+
- message: resourceTags are immutable and may only be configured
1428+
during installation
1429+
rule: self.all(x, x in oldSelf) && oldSelf.all(x, x in self)
14221430
serviceEndpoints:
14231431
description: |-
14241432
serviceEndpoints list contains custom endpoints which will override default
@@ -1447,6 +1455,9 @@ spec:
14471455
type: array
14481456
x-kubernetes-list-type: atomic
14491457
type: object
1458+
x-kubernetes-validations:
1459+
- message: resourceTags may only be configured during installation
1460+
rule: has(oldSelf.resourceTags) == has(self.resourceTags)
14501461
azure:
14511462
description: azure contains settings specific to the Azure infrastructure
14521463
provider.

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

Lines changed: 11 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 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,9 @@ 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)
12401251
azure:
12411252
description: azure contains settings specific to the Azure infrastructure
12421253
provider.

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

Lines changed: 11 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 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,9 @@ 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)
13381349
azure:
13391350
description: azure contains settings specific to the Azure infrastructure
13401351
provider.

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,6 +1186,7 @@ spec:
11861186
key sets the key of the AWS resource tag key-value pair. Key is required when defining an AWS resource tag.
11871187
Key should consist of between 1 and 128 characters, and may
11881188
contain only the set of alphanumeric characters, space (' '), '_', '.', '/', '=', '+', '-', ':', and '@'.
1189+
Key must not start with 'aws:'.
11891190
maxLength: 128
11901191
minLength: 1
11911192
type: string
@@ -1195,6 +1196,9 @@ spec:
11951196
space (' '), '_', '.', '/', '=', '+', '-', ':',
11961197
'@'
11971198
rule: self.matches('^[0-9A-Za-z_.:/=+-@ ]+$')
1199+
- message: the prefix 'aws:' is reserved for AWS system
1200+
usage and cannot be used at the beginning of a key
1201+
rule: '!self.startsWith(''aws:'')'
11981202
value:
11991203
description: |-
12001204
value sets the value of the AWS resource tag key-value pair. Value is required when defining an AWS resource tag.
@@ -1218,6 +1222,10 @@ spec:
12181222
maxItems: 25
12191223
type: array
12201224
x-kubernetes-list-type: atomic
1225+
x-kubernetes-validations:
1226+
- message: resourceTags are immutable and may only be configured
1227+
during installation
1228+
rule: self.all(x, x in oldSelf) && oldSelf.all(x, x in self)
12211229
serviceEndpoints:
12221230
description: |-
12231231
serviceEndpoints list contains custom endpoints which will override default
@@ -1246,6 +1254,9 @@ spec:
12461254
type: array
12471255
x-kubernetes-list-type: atomic
12481256
type: object
1257+
x-kubernetes-validations:
1258+
- message: resourceTags may only be configured during installation
1259+
rule: has(oldSelf.resourceTags) == has(self.resourceTags)
12491260
azure:
12501261
description: azure contains settings specific to the Azure infrastructure
12511262
provider.

0 commit comments

Comments
 (0)