Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Add Route53 group and missing Elasticache resources#130

Merged
muvaf merged 4 commits intocrossplane-contrib:mainfrom
muvaf:fullgen
Nov 19, 2021
Merged

Add Route53 group and missing Elasticache resources#130
muvaf merged 4 commits intocrossplane-contrib:mainfrom
muvaf:fullgen

Conversation

@muvaf
Copy link
Member

@muvaf muvaf commented Nov 19, 2021

Description of your changes

Adds route53 and two elasticache resources that were missing. I'll add more until we get to around 100.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

Code compiles.

@muvaf muvaf requested a review from ulucinar November 19, 2021 12:38
Copy link
Collaborator

@ulucinar ulucinar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @muvaf. LGTM.

Type: "Zone",
},
"key_management_service_arn": config.Reference{
Type: "github.com/crossplane-contrib/provider-jet-aws/apis/kms/v1alpha1.Key",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the default extractor okay in this case?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It wasn't. Just added an ARN extractor for KMS key ee98973

// Z123456ABCDEFG:vpc-12345678
// Z123456ABCDEFG:vpc-12345678:us-east-2
r.ExternalName.SetIdentifierArgumentFn = func(base map[string]interface{}, externalName string) {
words := strings.Split(externalName, ":")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like we discussed for other configuration functions, being able to report errors really paves off. But this is not an issue of this PR.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's hard to know whether it's an error case though. For example, in this case the ID comes from the provider, hence it can be empty until creation finishes so until then there is no data to set and it's a valid flow. So, specifically for this SetIdentifierArgumentFn, having a best-effort approach is more inline than returning error IMO.

@muvaf muvaf merged commit 502659c into crossplane-contrib:main Nov 19, 2021
@muvaf muvaf deleted the fullgen branch November 19, 2021 14:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants