Skip to content

Commit 0be4796

Browse files
authored
feat(aks): enable parametrization of storage account used by loki (#835)
1 parent bffcc9b commit 0be4796

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

modules/aks/azure/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ resource "azurerm_storage_account" "this" {
198198
name = random_string.storage_account.result
199199
resource_group_name = module.cluster.node_resource_group
200200
location = data.azurerm_resource_group.this.location
201-
account_tier = "Standard"
202-
account_replication_type = "GRS"
201+
account_tier = var.storage_account_tier
202+
account_replication_type = var.storage_account_replication_type
203203
}
204204

205205
resource "azurerm_storage_container" "loki" {
@@ -240,7 +240,7 @@ data "azurerm_client_config" "current" {}
240240
resource "azuread_application" "oauth2_apps" {
241241
count = var.oidc == null ? 1 : 0
242242

243-
display_name = "oauth2-apps-${var.cluster_name}"
243+
display_name = "oauth2-apps-${var.cluster_name}"
244244

245245
required_resource_access {
246246
resource_app_id = random_uuid.resource_app_id.0.result

modules/aks/azure/variables.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,15 @@ variable "node_pools" {
7575
description = "List of node pools with minimal configuration"
7676
type = map(any)
7777
}
78+
79+
variable "storage_account_tier" {
80+
description = "Storage account tier used for storing loki logs"
81+
default = "Standard"
82+
type = string
83+
}
84+
85+
variable "storage_account_replication_type" {
86+
description = "Storage account replication type for storing loki logs"
87+
default = "GRS"
88+
type = string
89+
}

modules/cce/opentelekomcloud/variables.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,3 @@ variable "keycloak_users" {
4040
type = map(map(string))
4141
default = {}
4242
}
43-

0 commit comments

Comments
 (0)