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

feat(TPG >=5.24)!: Allow modifying of node type in redis cluster sub-module #206

Conversation

ivankennethwang
Copy link
Contributor

@ivankennethwang ivankennethwang commented Apr 16, 2024

fix #205

@ivankennethwang ivankennethwang requested review from imrannayer and a team as code owners April 16, 2024 09:38
Copy link

google-cla bot commented Apr 16, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@ivankennethwang ivankennethwang changed the title Allow modifying of node type (#205) <feat>: Allow modifying of node type (#205) Apr 16, 2024
@ivankennethwang ivankennethwang changed the title <feat>: Allow modifying of node type (#205) feat: Allow modifying of node type (#205) Apr 16, 2024
@ivankennethwang ivankennethwang changed the title feat: Allow modifying of node type (#205) feat(redis-cluster): Allow modifying of node type (#205) Apr 16, 2024
@ivankennethwang
Copy link
Contributor Author

@imrannayer would this be ok?

@imrannayer imrannayer changed the title feat(redis-cluster): Allow modifying of node type (#205) feat: Allow modifying of node type in redis cluster sub-module Apr 18, 2024
@edubxb
Copy link

edubxb commented Apr 19, 2024

Awesome, thanks for this contribution @ivankennethwang. We also need it!

@ivankennethwang
Copy link
Contributor Author

Welcome. Let me know if there is anything else I can do. Happy to help!

@imrannayer
Copy link
Collaborator

Welcome. Let me know if there is anything else I can do. Happy to help!

@ivankennethwang Can you look at my comment and add appropriate output.

@ivankennethwang
Copy link
Contributor Author

Welcome. Let me know if there is anything else I can do. Happy to help!

@ivankennethwang Can you look at my comment and add appropriate output.

Thanks @imrannayer. Where can I see your comments? I don't see them here.

@ivankennethwang
Copy link
Contributor Author

@imrannayer i sincerely apologize but i really don't see any github comments. :(

@imrannayer
Copy link
Collaborator

@ivankennethwang just scroll up on this screen and you will see code change request.

@ivankennethwang
Copy link
Contributor Author

@imrannayer sorry this is what i see, i really dont see any code change requests, or any other comment in the files changed tab.

image
image
image

@imrannayer
Copy link
Collaborator

@ivankennethwang I am not sure whayt interface you are using but here is whats neede.

**@ivankennethwang you need to add node_type in output here. Add following lines

output "node_type" {
  description = "The redis cluster node type"
  value       = module.redis_cluster.redis_cluster.node_type
}
```**

@ivankennethwang
Copy link
Contributor Author

@ivankennethwang I am not sure whayt interface you are using but here is whats neede.

**@ivankennethwang you need to add node_type in output here. Add following lines

output "node_type" {
  description = "The redis cluster node type"
  value       = module.redis_cluster.redis_cluster.node_type
}
```**

I'm just using github.com in Chrome browser. 😅

Btw, updated and thanks! 🙇‍♂️

@imrannayer
Copy link
Collaborator

@ivankennethwang lint test is failing. Can you plz execute

make docker_generate_docs

@ivankennethwang
Copy link
Contributor Author

ivankennethwang commented Apr 24, 2024

@ivankennethwang lint test is failing. Can you plz execute

make docker_generate_docs

done, thanks!

@imrannayer
Copy link
Collaborator

/gcbrun

@imrannayer
Copy link
Collaborator

imrannayer commented Apr 25, 2024

  • @ivankennethwang default value should be null. Provider automatically picks default value as REDIS_HIGHMEM_MEDIUM.

  • Can u also update version.tf for redis_cluster sub-module. Set min provider version to 5.24 as it was part of 5.24 release.

  • Add an upgrade to v9 doc in docs folder mentioning that this will be a breaking change due to change in min provider version. Here is an example

@imrannayer imrannayer changed the title feat: Allow modifying of node type in redis cluster sub-module feat(TPG >=5.24)!: Allow modifying of node type in redis cluster sub-module Apr 25, 2024
@imrannayer imrannayer self-assigned this Apr 25, 2024
@ivankennethwang
Copy link
Contributor Author

ivankennethwang commented Apr 26, 2024

  • @ivankennethwang default value should be null. Provider automatically picks default value as REDIS_HIGHMEM_MEDIUM.
  • Can u also update version.tf for redis_cluster sub-module. Set min provider version to 5.24 as it was part of 5.24 release.
  • Add an upgrade to v9 doc in docs folder mentioning that this will be a breaking change due to change in min provider version. Here is an example

Sorry, this is my first time contributing ever in a mature repository.

May I know when do we update the README.md, CHANGELOG.md and versions.tf at root level? I suppose those should be changed to include 5.24 and v9.0 also?

btw, updated.

@imrannayer
Copy link
Collaborator

  • @ivankennethwang default value should be null. Provider automatically picks default value as REDIS_HIGHMEM_MEDIUM.
  • Can u also update version.tf for redis_cluster sub-module. Set min provider version to 5.24 as it was part of 5.24 release.
  • Add an upgrade to v9 doc in docs folder mentioning that this will be a breaking change due to change in min provider version. Here is an example

Sorry, this is my first time contributing ever in a mature repository.

May I know when do we update the README.md, CHANGELOG.md and versions.tf at root level? I suppose those should be changed to include 5.24 and v9.0 also?

btw, updated.

CHANGELOG will be updated automatically. README and versions.tf will be at module level.

@imrannayer
Copy link
Collaborator

@ivankennethwang you are missing default = null

variable "node_type" {
  description = "The nodeType for the Redis cluster. If not provided, REDIS_HIGHMEM_MEDIUM will be used as default Possible values are: REDIS_SHARED_CORE_NANO, REDIS_HIGHMEM_MEDIUM, REDIS_HIGHMEM_XLARGE, REDIS_STANDARD_SMALL."
  type        = string
  default     = null
}

@ivankennethwang
Copy link
Contributor Author

@ivankennethwang you are missing default = null

variable "node_type" {
  description = "The nodeType for the Redis cluster. If not provided, REDIS_HIGHMEM_MEDIUM will be used as default Possible values are: REDIS_SHARED_CORE_NANO, REDIS_HIGHMEM_MEDIUM, REDIS_HIGHMEM_XLARGE, REDIS_STANDARD_SMALL."
  type        = string
  default     = null
}

updated, sorry about that.

@ivankennethwang
Copy link
Contributor Author

how come for authorization_mode we set default = "AUTH_MODE_DISABLED" though?

i thought node_type is quite similar to this[1], should we set it to null too?

[1] https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/redis_cluster#authorization_mode

@imrannayer
Copy link
Collaborator

@ivankennethwang lint failed on document generation check

@imrannayer
Copy link
Collaborator

how come for authorization_mode we set default = "AUTH_MODE_DISABLED" though?

i thought node_type is quite similar to this[1], should we set it to null too?

[1] https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/redis_cluster#authorization_mode

Could have been set to null.

@ivankennethwang
Copy link
Contributor Author

how come for authorization_mode we set default = "AUTH_MODE_DISABLED" though?
i thought node_type is quite similar to this[1], should we set it to null too?
[1] https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/redis_cluster#authorization_mode

Could have been set to null.

Perhaps we can put it in a different pull request.

@ivankennethwang lint failed on document generation check

Updated, thanks!

@imrannayer
Copy link
Collaborator

/gcbrun

@imrannayer imrannayer merged commit f30de6f into terraform-google-modules:master Apr 29, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add node_type in redis cluster module
3 participants