-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Support configuring Internal load balancer for Cloud Run for Anthos #7268
Merged
c2thorn
merged 10 commits into
hashicorp:master
from
ZhiminXiang:support_cloud_run_load_balancer
Sep 15, 2020
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
9db21c2
Allow set load_balancer_type for CloudRun
9c6f2d1
only enable load_balancer_type when cloudrun is enabled
97ae7e4
Make test work
3853f8d
Add test for internal load balancer
6eb8c4b
update api dependency
17e852a
remove incorrect import
0a8b2ea
Use INTERNAL for load balancer type
c6edc40
Use LOAD_BALANCER_TYPE_INTERNAL
1d5b311
Add documentation for load_balancer_type
7b0c5c4
finish the reference doc
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
now that we are passing the API value through, we don't need the if statement anymore
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.
I still want to keep the
if
check because the server side will returnLOAD_BALANCER_TYPE_EXTERNAL
for external case when not settingload_balancer_type
which we don't want to return and store into state file.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.
Is it okay if we store it in state file? Terraform can handle this situation if we set the field schema as
Computed: true
If the user doesn't explicitly state
load_balancer_type
and the API returns it, setting the field to computed will allow Terraform to default to the API value and not cause any diffs.Otherwise, we can keep the if and ignore
LOAD_BALANCER_TYPE_EXTERNAL
. I'm fine either wayThere 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 @c2thorn. I will just keep it as it is.