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/function cloud nat dyna port #13315

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

Maarc-D
Copy link
Contributor

@Maarc-D Maarc-D commented Mar 11, 2025

This function will help setup correct value for cloud nat dynamic port that must be pow of 2, used here : https://registry.terraform.io/providers/public-cloud-wl/tools/latest/docs/functions/GetClosestInferiorGCPCloudNatDynamicPortFunction

https://github.com/public-cloud-wl/terraform-provider-tools/blob/main/internal/provider/get_closest_inferior_gcp_cloud_nat_dynamic_port_function.go

And I think it is a good idea to backport it here ;)

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

function: added `cloud_nat_dynamic_port_from_number` function

Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run. Googlers: see go/terraform-auto-test-runs to set up automatic test runs.

@SirGitsalot, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@github-actions github-actions bot requested a review from SirGitsalot March 11, 2025 07:31
@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Mar 11, 2025
@Maarc-D Maarc-D force-pushed the feat/function-cloud-nat-dyna-port branch 3 times, most recently from 81129fc to ce8c038 Compare March 11, 2025 08:51
@Maarc-D Maarc-D force-pushed the feat/function-cloud-nat-dyna-port branch from ce8c038 to b7a8256 Compare March 11, 2025 09:05
@Maarc-D
Copy link
Contributor Author

Maarc-D commented Mar 11, 2025

@SirGitsalot can I let you fix the last issue for unit test ? the setup here is a bit mindfuck seems I did not understand something :/

not as easy as a classic provider ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-approval Pull requests that need reviewer's approval to run presubmit tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants