Skip to content

Commit 89c901e

Browse files
committed
feat(http_proxy_config): Add http_proxy_config
Related to: #434 Signed-off-by: Iago Santos Pardo <iago.santos.pardo@adfinis.com>
1 parent 3edd09c commit 89c901e

3 files changed

Lines changed: 35 additions & 0 deletions

File tree

CHANGELOG-v6.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
**Merged pull requests:**
66

7+
- Add support for `http_proxy_config` [\#434](https://github.com/Azure/terraform-azurerm-aks/pull/434) ([isantospardo](https://github.com/isantospardo))
8+
9+
## [Unreleased](https://github.com/Azure/terraform-azurerm-aks/tree/HEAD)
10+
11+
**Merged pull requests:**
12+
713
- Output Kubernetes Cluster Network Profile [\#333](https://github.com/Azure/terraform-azurerm-aks/pull/333) ([joshua-giumelli-deltatre](https://github.com/joshua-giumelli-deltatre))
814

915
## [6.8.0](https://github.com/Azure/terraform-azurerm-aks/tree/6.8.0) (2023-04-04)

main.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ resource "azurerm_kubernetes_cluster" "main" {
4646
} /*<box>*/ : replace(k, "avm_", var.tracing_tags_prefix) => v } : {}) /*</box>*/))
4747
workload_identity_enabled = var.workload_identity_enabled
4848

49+
dynamic "http_proxy_config" {
50+
for_each = var.http_proxy_config == true ? [] : ["http_proxy_config"]
51+
content {
52+
http_proxy = var.http_proxy_config.http_proxy
53+
https_proxy = var.http_proxy_config.https_proxy
54+
no_proxy = coalesce(var.http_proxy_config.no_proxy, [])
55+
trusted_ca = var.http_proxy_config.trusted_ca
56+
}
57+
}
58+
4959
dynamic "default_node_pool" {
5060
for_each = var.enable_auto_scaling == true ? [] : ["default_node_pool_manually_scaled"]
5161

variables.tf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,25 @@ variable "agents_min_count" {
5757
description = "Minimum number of nodes in a pool"
5858
}
5959

60+
variable "http_proxy_config" {
61+
type = object({
62+
http_proxy = optional(string)
63+
https_proxy = optional(string)
64+
no_proxy = optional(list(string))
65+
trusted_ca = optional(string)
66+
})
67+
default = {}
68+
description = <<-EOT
69+
optional(object({
70+
http_proxy = (Optional) The proxy address to be used when communicating over HTTP. Changing this forces a new resource to be created.
71+
https_proxy = (Optional) The proxy address to be used when communicating over HTTPS. Changing this forces a new resource to be created.
72+
no_proxy = (Optional) The list of domains that will not use the proxy for communication. Note: If you specify the `default_node_pool.0.vnet_subnet_id`, be sure to include the Subnet CIDR in the `no_proxy` list. Note: You may wish to use Terraform's `ignore_changes` functionality to ignore the changes to this field.
73+
trusted_ca = (Optional) The base64 encoded alternative CA certificate content in PEM format.
74+
}))
75+
EOT
76+
nullable = false
77+
}
78+
6079
variable "agents_pool_kubelet_configs" {
6180
type = list(object({
6281
cpu_manager_policy = optional(string)

0 commit comments

Comments
 (0)