Skip to content

Commit

Permalink
Fix Instance.rds external-name configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Fatih Türken <[email protected]>
  • Loading branch information
turkenf authored and ulucinar committed Jan 12, 2024
1 parent 515489b commit 413c2a3
Show file tree
Hide file tree
Showing 9 changed files with 88 additions and 10 deletions.
30 changes: 30 additions & 0 deletions apis/rds/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions apis/rds/v1beta1/zz_generated.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions apis/rds/v1beta1/zz_instance_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions apis/rds/v1beta1/zz_instanceroleassociation_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions apis/rds/v1beta1/zz_proxytarget_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions apis/rds/v1beta1/zz_snapshot_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/externalname.go
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ var NoForkExternalNameConfigs = map[string]config.ExternalName{
// rds
//
"aws_rds_cluster": config.ParameterAsIdentifier("cluster_identifier"),
"aws_db_instance": config.ParameterAsIdentifier("identifier"),
"aws_db_instance": config.IdentifierFromProvider,
"aws_db_parameter_group": config.NameAsIdentifier,
"aws_db_subnet_group": config.NameAsIdentifier,
// aws_db_instance_role_association can be imported using the DB Instance Identifier and IAM Role ARN separated by a comma
Expand Down
1 change: 0 additions & 1 deletion internal/controller/rds/instance/zz_controller.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions package/crds/rds.aws.upbound.io_instances.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,13 @@ spec:
description: Specifies whether mappings of AWS Identity and Access
Management (IAM) accounts to database accounts is enabled.
type: boolean
identifier:
description: Required if restore_to_point_in_time is specified.
type: string
identifierPrefix:
description: Creates a unique identifier beginning with the specified
prefix. Conflicts with identifier.
type: string
instanceClass:
description: The instance type of the RDS instance.
type: string
Expand Down Expand Up @@ -1229,6 +1236,13 @@ spec:
description: Specifies whether mappings of AWS Identity and Access
Management (IAM) accounts to database accounts is enabled.
type: boolean
identifier:
description: Required if restore_to_point_in_time is specified.
type: string
identifierPrefix:
description: Creates a unique identifier beginning with the specified
prefix. Conflicts with identifier.
type: string
instanceClass:
description: The instance type of the RDS instance.
type: string
Expand Down Expand Up @@ -2237,6 +2251,13 @@ spec:
id:
description: RDS DBI resource ID.
type: string
identifier:
description: Required if restore_to_point_in_time is specified.
type: string
identifierPrefix:
description: Creates a unique identifier beginning with the specified
prefix. Conflicts with identifier.
type: string
instanceClass:
description: The instance type of the RDS instance.
type: string
Expand Down

0 comments on commit 413c2a3

Please sign in to comment.