-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Serverless Cache Resource #1425
Add Serverless Cache Resource #1425
Conversation
Signed-off-by: Blake R <85771645+blakeromano@users.noreply.github.com>
Signed-off-by: Blake R <85771645+blakeromano@users.noreply.github.com>
Thank you, @blakeromano 🙏 Since you are now a contributor, you should be able to trigger uptest. |
/test-examples="examples/elasticache/v1beta1/serverlesscache.yaml" |
@turkenf just something to note... I am seeing a lot of flakiness on being able to spin up subnets which I was able to observe locally on my own AWS Account but with the issue coming from us-west-1b instead of us-west-1c in the failure seen above. For example:
|
Signed-off-by: Blake R <85771645+blakeromano@users.noreply.github.com>
…vider-aws into serverless-cache
/test-examples="examples/elasticache/v1beta1/serverlesscache.yaml" |
I think that the tests may be stuck now 😢
|
Please use |
@blakeromano The error message is somewhat misleading. The flakiness is because us-west-1c doesn't have enough resources to serve as an availability zone at that time. The same could happen to us-west-1a and us-west-1b. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks for your effort @blakeromano, I left a few comments for you to consider. Most of them are simple, name-related comments.
config/elasticache/config.go
Outdated
r.TerraformCustomDiff = func(diff *terraform.InstanceDiff, _ *terraform.InstanceState, _ *terraform.ResourceConfig) (*terraform.InstanceDiff, error) { | ||
if diff != nil && diff.Attributes != nil { | ||
delete(diff.Attributes, "security_group_names.#") | ||
} | ||
return diff, nil | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we add this func?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was present in the replicationgroup resource. This seemed to have been added during a TF Update recently and I maybe "assumed" that serverlesscache would have the same error as we saw during TF Provider Update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see; however, we usually avoid adding this kind of configuration unless they are really required. My suggestion is please remove it, test it, and add it if really required. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the uptest passed successfully, we can proceed without the TerraformCustomDiff
function, thank you.
Signed-off-by: Blake R <85771645+blakeromano@users.noreply.github.com>
/test-examples="examples/elasticache/v1beta1/serverlesscache.yaml" |
Hey @blakeromano, if you are interested we can include it in the planned release this week #1425 (comment) |
Signed-off-by: Blake R <85771645+blakeromano@users.noreply.github.com>
…vider-aws into serverless-cache
/test-examples="examples/elasticache/v1beta1/serverlesscache.yaml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🙌
Description of your changes
Adds the Serverless Cache Elasticache Resource
Fixes #1117
I have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR if necessary.How has this code been tested
Ran
make e2e UPTEST_EXAMPLE_LIST=examples/elasticache/v1beta1/serverlesscache.yaml
Some output: