Skip to content

Commit c337fbc

Browse files
authored
Add reference for MasterUserSecretKMSKeyID (#146)
For DBCluster and DBInstance resources, the MasterUserSecretKMSKeyID field can refer to a KMS Key resource. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent a531fd6 commit c337fbc

14 files changed

+163
-7
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2023-03-30T14:52:36Z"
2+
build_date: "2023-03-30T18:50:28Z"
33
build_hash: fa24753ea8b657d8815ae3eac7accd0958f5f9fb
44
go_version: go1.19.4
55
version: v0.25.0
6-
api_directory_checksum: c260842c2919b6d1d7ddc4b1dc40cacea82dc551
6+
api_directory_checksum: 54ea7e387b74b590907eb5136a9a802b0e97a738
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.44.232
99
generator_config_info:
10-
file_checksum: c3a80c129c39b07e24dd80a830d5254626362121
10+
file_checksum: 1c65701c9ae781dcda0fb8c04fed4de60e25a9ef
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/db_cluster.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/db_instance.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/generator.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ resources:
114114
resource: Key
115115
service_name: kms
116116
path: Status.ACKResourceMetadata.ARN
117+
MasterUserSecretKmsKeyId:
118+
references:
119+
resource: Key
120+
service_name: kms
121+
path: Status.ACKResourceMetadata.ARN
117122
DBClusterParameterGroupName:
118123
references:
119124
resource: DBClusterParameterGroup
@@ -241,6 +246,11 @@ resources:
241246
resource: Key
242247
service_name: kms
243248
path: Status.ACKResourceMetadata.ARN
249+
MasterUserSecretKmsKeyId:
250+
references:
251+
resource: Key
252+
service_name: kms
253+
path: Status.ACKResourceMetadata.ARN
244254
DBParameterGroupName:
245255
references:
246256
resource: DBParameterGroup

apis/v1alpha1/zz_generated.deepcopy.go

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/rds.services.k8s.aws_dbclusters.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,19 @@ spec:
391391
account has a different default KMS key for each Amazon Web Services
392392
Region. \n Valid for: Aurora DB clusters and Multi-AZ DB clusters"
393393
type: string
394+
masterUserSecretKMSKeyRef:
395+
description: "AWSResourceReferenceWrapper provides a wrapper around
396+
*AWSResourceReference type to provide more user friendly syntax
397+
for references using 'from' field Ex: APIIDRef: \n from: name: my-api"
398+
properties:
399+
from:
400+
description: AWSResourceReference provides all the values necessary
401+
to reference another k8s resource for finding the identifier(Id/ARN/Name)
402+
properties:
403+
name:
404+
type: string
405+
type: object
406+
type: object
394407
masterUsername:
395408
description: "The name of the master user for the DB cluster. \n Constraints:
396409
\n * Must be 1 to 16 letters or numbers. \n * First character must

config/crd/bases/rds.services.k8s.aws_dbinstances.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,19 @@ spec:
500500
account has a different default KMS key for each Amazon Web Services
501501
Region."
502502
type: string
503+
masterUserSecretKMSKeyRef:
504+
description: "AWSResourceReferenceWrapper provides a wrapper around
505+
*AWSResourceReference type to provide more user friendly syntax
506+
for references using 'from' field Ex: APIIDRef: \n from: name: my-api"
507+
properties:
508+
from:
509+
description: AWSResourceReference provides all the values necessary
510+
to reference another k8s resource for finding the identifier(Id/ARN/Name)
511+
properties:
512+
name:
513+
type: string
514+
type: object
515+
type: object
503516
masterUsername:
504517
description: "The name for the master user. \n Amazon Aurora \n Not
505518
applicable. The name for the master user is managed by the DB cluster.

generator.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ resources:
114114
resource: Key
115115
service_name: kms
116116
path: Status.ACKResourceMetadata.ARN
117+
MasterUserSecretKmsKeyId:
118+
references:
119+
resource: Key
120+
service_name: kms
121+
path: Status.ACKResourceMetadata.ARN
117122
DBClusterParameterGroupName:
118123
references:
119124
resource: DBClusterParameterGroup
@@ -241,6 +246,11 @@ resources:
241246
resource: Key
242247
service_name: kms
243248
path: Status.ACKResourceMetadata.ARN
249+
MasterUserSecretKmsKeyId:
250+
references:
251+
resource: Key
252+
service_name: kms
253+
path: Status.ACKResourceMetadata.ARN
244254
DBParameterGroupName:
245255
references:
246256
resource: DBParameterGroup

helm/crds/rds.services.k8s.aws_dbclusters.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,19 @@ spec:
391391
account has a different default KMS key for each Amazon Web Services
392392
Region. \n Valid for: Aurora DB clusters and Multi-AZ DB clusters"
393393
type: string
394+
masterUserSecretKMSKeyRef:
395+
description: "AWSResourceReferenceWrapper provides a wrapper around
396+
*AWSResourceReference type to provide more user friendly syntax
397+
for references using 'from' field Ex: APIIDRef: \n from: name: my-api"
398+
properties:
399+
from:
400+
description: AWSResourceReference provides all the values necessary
401+
to reference another k8s resource for finding the identifier(Id/ARN/Name)
402+
properties:
403+
name:
404+
type: string
405+
type: object
406+
type: object
394407
masterUsername:
395408
description: "The name of the master user for the DB cluster. \n Constraints:
396409
\n - Must be 1 to 16 letters or numbers. \n - First character must

helm/crds/rds.services.k8s.aws_dbinstances.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,19 @@ spec:
502502
account has a different default KMS key for each Amazon Web Services
503503
Region."
504504
type: string
505+
masterUserSecretKMSKeyRef:
506+
description: "AWSResourceReferenceWrapper provides a wrapper around
507+
*AWSResourceReference type to provide more user friendly syntax
508+
for references using 'from' field Ex: APIIDRef: \n from: name: my-api"
509+
properties:
510+
from:
511+
description: AWSResourceReference provides all the values necessary
512+
to reference another k8s resource for finding the identifier(Id/ARN/Name)
513+
properties:
514+
name:
515+
type: string
516+
type: object
517+
type: object
505518
masterUsername:
506519
description: "The name for the master user. \n # Amazon Aurora \n
507520
Not applicable. The name for the master user is managed by the DB

0 commit comments

Comments
 (0)