-
Notifications
You must be signed in to change notification settings - Fork 918
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 support for disable default snat #2508
Conversation
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. |
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.
Thanks for this. A couple comments below.
Main one is we work very hard to minimize the variable surface, and I would prefer not adding one variable for a tiny feature. This should be an additional optional attribute in one of the existing _config
variables, possibly vpc_config
as it's the one most closely related to this.
The second comment is I would prefer using a dynamic block and a null
default, so that the block is transparently skipped when the attribute is not explicitly set. This prevented issues with recreation of existing clusters for other attributes, and we might want to adopt the same approache here, even just for consistency's sake.
And last, do you know if this is also supported for autopilot? If it is, we should update both cluster modules together.
creating a conditional dynamic block to provide backward compatability
@ludoo thanks for the prompt feedback. adjusted the PR to utilize a dynamic block (with conditional on null), had the variable moved inside |
super quick :) |
Can you pull and merge master? I cannot use your fork... |
yes, updated my master branch, or did you mean something else? |
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.
last fix on redundant default optional value then this is good to go, many thanks :)
Thanks a lot for your patience :) |
ach, tfdoc strikes again :) |
Head branch was pushed to by a user without write access
hahaha yea missed this, if I continue contributing I should probably make a precommit with all of these :) |
hope you do :) |
Oh God, one more merge :) if you set your fork to allow changes from this repo I could push the button for you |
done, I have to learn how to clickops those fork permissions, will do for next times |
Adding support for
disable_default_snat
, which (as the name suggests) disables the default snat. This option is available on the root resource, so all this PR does is expose this option.Checklist
I applicable, I acknowledge that I have:
terraform fmt
on all modified filestools/tfdoc.py