-
Notifications
You must be signed in to change notification settings - Fork 1
Add autopilot support #12
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
3358020
Add autopilot support
gkocur 8158cbb
Fix nodes location logic
gkocur 5651887
terraform-docs: automated action
github-actions[bot] a410a64
Add output
gkocur fb56d13
Fix formatting
gkocur 8a1b180
Add variable to enable subnet private access
gkocur 0dfc043
terraform-docs: automated action
github-actions[bot] 75382a3
terraform-docs: automated action
github-actions[bot] e371e60
Add subnet name to outputs
gkocur 0b4eb33
terraform-docs: automated action
github-actions[bot] f0ed161
Change node-pools var structure, update doc, fix autopilot support
gkocur add15d9
Remove commented code, remove unused variable, add description
gkocur 14159dd
Fix examples, formatting
gkocur a09d47f
terraform-docs: automated action
github-actions[bot] 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,13 @@ | ||
| locals { | ||
| project_id = var.create_project ? module.project.0.project_id : var.project_id | ||
| project_name = var.project_name != "" ? var.project_name : var.platform_name | ||
| subnet_name = "${var.platform_name}-subnet" | ||
| router = "${var.platform_name}-router" | ||
| cloud_nat_name = "${var.platform_name}-cloud-nat" | ||
| pods_network_name = "${local.subnet_name}-pods" | ||
| services_network_name = "${local.subnet_name}-services" | ||
| pods_ip_range = cidrsubnet(var.k8s_network_base, 4, 1) | ||
| services_ip_range = cidrsubnet(var.k8s_network_base, 4, 2) | ||
| location = var.regional ? var.region : var.zones.0 | ||
| node_pool_names = [for np in toset(var.node_pools) : np.name] | ||
| node_pools = zipmap(local.node_pool_names, tolist(toset(var.node_pools))) | ||
| node_locations = var.regional ? var.zones : slice(var.zones, 1, length(var.zones)) | ||
| node_pool_oauth_scopes = { for key, value in var.additional_node_pool_oauth_scopes : key => distinct(concat(value, var.default_node_pools_oauth_scopes)) } | ||
| project_id = var.create_project ? module.project.0.project_id : var.project_id | ||
| project_name = var.project_name != "" ? var.project_name : var.platform_name | ||
| subnet_name = "${var.platform_name}-subnet" | ||
| router = "${var.platform_name}-router" | ||
| cloud_nat_name = "${var.platform_name}-cloud-nat" | ||
| pods_network_name = "${local.subnet_name}-pods" | ||
| services_network_name = "${local.subnet_name}-services" | ||
| pods_ip_range = cidrsubnet(var.k8s_network_base, 4, 1) | ||
| services_ip_range = cidrsubnet(var.k8s_network_base, 4, 2) | ||
| location = var.regional ? var.region : var.zones.0 | ||
| node_locations = var.regional ? (length(var.zones) != 0 ? var.zones : null) : slice(var.zones, 1, length(var.zones)) | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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.
I think that needs to be conditional when
enable_autopilotis true by usingdynamicmapping. In other case it will probably throw an error during cluster creation.