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

Redis Cache: support for clusters on the internal network #1086

Merged
merged 7 commits into from
Apr 11, 2018

Conversation

tombuildsstuff
Copy link
Contributor

@tombuildsstuff tombuildsstuff commented Apr 6, 2018

This PR adds support for Redis Caches on the Internal Network

@metacpp / @JunyiYi / @paultyng / @katbyte I've named the field for the Private Static IP Address private_static_ip_address (the API/Docs expose this as StaticIP - "Static IP address. Required when deploying a Redis cache inside an existing Azure Virtual Network.") to avoid any confusion that a Public Static IP address could be used - but perhaps this should match the API - what do you think?

Tasks:

  • Support for Redis Clusters on the Internal Network
  • Upgrade to the new API version which fixes the Subnet deletion issue

Fixes #82

@tombuildsstuff tombuildsstuff added this to the 1.3.3 milestone Apr 6, 2018
@tombuildsstuff tombuildsstuff force-pushed the f/redis-internal-network branch 2 times, most recently from 6383573 to 12164cf Compare April 6, 2018 11:07
@tombuildsstuff tombuildsstuff changed the title [WIP] Redis Cache: support for clusters on the internal network Redis Cache: support for clusters on the internal network Apr 6, 2018
@tombuildsstuff tombuildsstuff requested review from metacpp and a team April 6, 2018 13:51
@tombuildsstuff
Copy link
Contributor Author

Tests pass:

screen shot 2018-04-06 at 15 57 33

Copy link
Member

@mbfrahry mbfrahry left a comment

Choose a reason for hiding this comment

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

LGTM

if resp.ShardCount != nil {
d.Set("shard_count", resp.ShardCount)
if props := resp.Properties; props != nil {
d.Set("ssl_port", props.SslPort)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we build a helper method to flatten it ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nope - we only do that for complex (e.g. nested) field, a single field isn't necessary

@metacpp
Copy link
Contributor

metacpp commented Apr 11, 2018

@tombuildsstuff LGTM and I resolved the conflict for you, please double check if there is anything wrong.

@hafizullah
Copy link

Great work guys. Could this be used for all tiers or just premium tier?

@tombuildsstuff
Copy link
Contributor Author

@hafizullah Terraform works with the same SKU's as available in Azure - from memory support for this is limited to the Premium SKU, but I may be wrong :)

@ghost
Copy link

ghost commented Mar 31, 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 Mar 31, 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.

Support for setting subnetId and staticIP for Premium sku in Azure Redis Cache
5 participants