Skip to content
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

Added support for redis instance data source #6536

Conversation

MounirKaroudEV
Copy link

This PR was intended to add support for google redis instance data source

@ghost ghost added the size/l label Jun 5, 2020
@ghost ghost requested a review from slevenick June 5, 2020 10:20
@ghost ghost added the documentation label Jun 5, 2020
@slevenick
Copy link
Collaborator

Hey @MounirKaroudEV is this PR ready for review? If not, please tag me when it is. Thanks!

@ghost ghost added size/xl and removed size/l labels Jun 8, 2020
@MounirKaroudEV
Copy link
Author

Hi @slevenick the pr now is ready for review, can you please have a look? Thanks

@slevenick slevenick marked this pull request as ready for review June 8, 2020 16:38
Copy link
Collaborator

@slevenick slevenick left a comment

Choose a reason for hiding this comment

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

Just a couple nits about spacing, the datasource itself looks great

@@ -46,23 +46,23 @@
<li>
<a href="#">Resources</a>
<ul class="nav nav-auto-expand">

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you revert the changes to this file? Looks like they are spacing changes and shouldn't matter

func testAccRedisInstanceDatasourceConfig(suffix string) string {
return fmt.Sprintf(`
resource "google_redis_instance" "redis" {
name = "redis-test-%s"
Copy link
Collaborator

Choose a reason for hiding this comment

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

tabs v spaces in this config, if you could just make them consistent one way or the other

@ghost ghost added size/m and removed size/xl labels Jun 9, 2020
@MounirKaroudEV
Copy link
Author

Fixed all the space formatting issues 😄

@slevenick
Copy link
Collaborator

Actually, would it be possible to have you make these changes against the Magic Modules repo here: https://github.com/GoogleCloudPlatform/magic-modules

This repo is used to generate both the terraform-provider-google and terraform-provider-google-beta repository, keeping them in sync. Making changes there will also automatically generate the website file

The data source itself could go here: https://github.com/GoogleCloudPlatform/magic-modules/tree/master/third_party/terraform/data_sources

The markdown file would go here: https://github.com/GoogleCloudPlatform/magic-modules/tree/master/third_party/terraform/website/docs/d

And you would make a similar change to https://github.com/GoogleCloudPlatform/magic-modules/blob/master/third_party/terraform/utils/provider.go.erb

That should be it. I can also upstream this manually for you, but with newly added files it gets a bit tricky. Let me know if it is possible to make your PR aginst MM

@MounirKaroudEV
Copy link
Author

Done

@slevenick
Copy link
Collaborator

Closing in favor of GoogleCloudPlatform/magic-modules#3623

@slevenick slevenick closed this Jun 10, 2020
@ghost
Copy link

ghost commented Jul 11, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Jul 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants