Skip to content

Commit

Permalink
Change externalname conf for Instance.rds
Browse files Browse the repository at this point in the history
  • Loading branch information
turkenf committed Oct 5, 2023
1 parent d12f733 commit d6c919a
Show file tree
Hide file tree
Showing 11 changed files with 82 additions and 7 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.

8 changes: 4 additions & 4 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.

1 change: 1 addition & 0 deletions apis/rds/v1beta1/zz_generated_terraformed.go

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

21 changes: 21 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.

1 change: 1 addition & 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.

1 change: 1 addition & 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.

1 change: 1 addition & 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 @@ -570,7 +570,7 @@ var ExternalNameConfigs = 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
2 changes: 1 addition & 1 deletion config/rds/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func Configure(p *config.Provider) {
}
r.UseAsync = true
r.LateInitializer = config.LateInitializer{
IgnoredFields: []string{"name", "db_name"},
IgnoredFields: []string{"name", "db_name", "identifier_prefix"},
}
r.Sensitive.AdditionalConnectionDetailsFn = func(attr map[string]any) (map[string][]byte, error) {
conn := map[string][]byte{}
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 @@ -297,6 +297,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 @@ -1068,6 +1075,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 @@ -1596,6 +1610,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 d6c919a

Please sign in to comment.