-
Notifications
You must be signed in to change notification settings - Fork 467
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
Amend new attributes in network_profile block #585
base: main
Are you sure you want to change the base?
Conversation
main.tf
Outdated
service_cidr = var.net_profile_service_cidr | ||
service_cidrs = var.network_service_cidrs |
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.
Same here, it would be either service_cidr
or service_cidrs
.
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've verified that we could set both service_cidr
and service_cidrs
@zioproto , here's my tfstate snippet:
"pod_cidr": "10.244.0.0/16",
"pod_cidrs": [
"10.244.0.0/16",
"fded:4c8d:9691:939b::/64"
],
"service_cidr": "10.0.0.0/16",
"service_cidrs": [
"10.0.0.0/16",
"fd01:db8:deca::/108"
]
description = "(Optional) Specifies the data plane used for building the Kubernetes network. Possible values are `azure` and `cilium`. Defaults to `azure`. Disabling this forces a new resource to be created." | ||
} | ||
|
||
variable "network_ip_versions" { |
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.
We need a precondition that network_plugin_mode is set to overlay
default = null | ||
description = <<-EOT | ||
`nat_gateway_profile` block supports the following: | ||
- `idle_timeout_in_minutes` - (Optional) Desired outbound flow idle timeout in minutes for the cluster load balancer. Must be between `4` and `120` inclusive. Defaults to `4`. |
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.
Doing a review of this PR I found out that the upstream provider documentation was wrong. Also for the parameters.
I opened a PR here:
https://github.com/hashicorp/terraform-provider-azurerm/pull/27287/files
default = null | ||
description = <<-EOT | ||
`nat_gateway_profile` block supports the following: | ||
- `idle_timeout_in_minutes` - (Optional) Desired outbound flow idle timeout in minutes for the cluster load balancer. Must be between `4` and `120` inclusive. Defaults to `4`. |
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.
- `idle_timeout_in_minutes` - (Optional) Desired outbound flow idle timeout in minutes for the cluster load balancer. Must be between `4` and `120` inclusive. Defaults to `4`. | |
- `idle_timeout_in_minutes` - (Optional) Desired outbound flow idle timeout in minutes for the managed nat gateway. Must be between `4` and `120` inclusive. Defaults to `4`. |
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.
@lonegunmanb please review suggestion
description = <<-EOT | ||
`nat_gateway_profile` block supports the following: | ||
- `idle_timeout_in_minutes` - (Optional) Desired outbound flow idle timeout in minutes for the cluster load balancer. Must be between `4` and `120` inclusive. Defaults to `4`. | ||
- `managed_outbound_ip_count` - (Optional) Count of desired managed outbound IPs for the cluster load balancer. Must be between `1` and `100` inclusive. |
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.
- `managed_outbound_ip_count` - (Optional) Count of desired managed outbound IPs for the cluster load balancer. Must be between `1` and `100` inclusive. | |
- `managed_outbound_ip_count` - (Optional) Count of desired managed outbound IPs for the managed nat gateway. Must be between `1` and `16` inclusive. |
Describe your changes
This pr amended missing new attributes in
network_profile
nested block.It doesn't support
outbound_ip_prefix_ids
andoutbound_ip_address_ids
since they're about to be deprecated in AzureRM providerv4
.Issue number
#518
Checklist before requesting a review
CHANGELOG.md
fileThanks for your cooperation!