Skip to content

Commit 27a10a2

Browse files
committed
update addon_profile variable to be optional.
1 parent 658d7bb commit 27a10a2

File tree

2 files changed

+25
-22
lines changed

2 files changed

+25
-22
lines changed

README.md

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ variable "agent_pools" {
8686

8787
```sh
8888
variable "linux_admin_username" {
89-
description = "(Required) User name for authentication to the Kubernetes linux agent virtual machines in the cluster."
89+
description = "(Optional) User name for authentication to the Kubernetes linux agent virtual machines in the cluster."
9090
type = "string"
9191
default = "azureuser"
9292
}
@@ -124,25 +124,17 @@ tags = {
124124

125125
```sh
126126
variable "addon_profile" {
127-
description = "(Required) AddOn Profile block."
128-
}
129-
```
130-
131-
Example
132-
133-
```sh
134-
addon_profile = {
135-
# Enable Container Monitoring
136-
oms_agent = {
137-
enabled = true
138-
}
139-
# Disable HTTP Application Routing
140-
http_application_routing = {
141-
enabled = false
142-
}
143-
# Disable Kubernetes Dashboard
144-
kube_dashboard = {
145-
enabled = false
127+
description = "(Optional) AddOn Profile block."
128+
default = {
129+
oms_agent = {
130+
enabled = true # Enable Container Monitoring
131+
}
132+
http_application_routing = {
133+
enabled = false # Disable HTTP Application Routing
134+
}
135+
kube_dashboard = {
136+
enabled = false # Disable Kubernetes Dashboard
137+
}
146138
}
147139
}
148140
```

variables.tf

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ variable "agent_pools" {
3232
}
3333

3434
variable "linux_admin_username" {
35-
description = "(Required) User name for authentication to the Kubernetes linux agent virtual machines in the cluster."
35+
description = "(Optional) User name for authentication to the Kubernetes linux agent virtual machines in the cluster."
3636
type = "string"
3737
default = "azureuser"
3838
}
@@ -47,7 +47,18 @@ variable "tags" {
4747
}
4848

4949
variable "addon_profile" {
50-
description = "(Required) AddOn Profile block."
50+
description = "(Optional) AddOn Profile block."
51+
default = {
52+
oms_agent = {
53+
enabled = true # Enable Container Monitoring
54+
}
55+
http_application_routing = {
56+
enabled = false # Disable HTTP Application Routing
57+
}
58+
kube_dashboard = {
59+
enabled = false # Disable Kubernetes Dashboard
60+
}
61+
}
5162
}
5263

5364
variable "log_analytics_workspace" {

0 commit comments

Comments
 (0)