Merge branch 'staging' into product-purchase-provisioning
This commit is contained in:
commit
f41d54aa9e
@ -193,6 +193,7 @@ def map_config(config):
|
|||||||
"CONTRACT_END_DATE": datetime.strptime(
|
"CONTRACT_END_DATE": datetime.strptime(
|
||||||
config.get("default", "CONTRACT_END_DATE"), "%Y-%m-%d"
|
config.get("default", "CONTRACT_END_DATE"), "%Y-%m-%d"
|
||||||
).date(),
|
).date(),
|
||||||
|
"SESSION_COOKIE_SECURE": config.getboolean("default", "SESSION_COOKIE_SECURE"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -81,3 +81,9 @@ resource "azurerm_monitor_diagnostic_setting" "k8s_diagnostic-1" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "azurerm_role_assignment" "k8s_network_contrib" {
|
||||||
|
scope = var.vnet_id
|
||||||
|
role_definition_name = "Network Contributor"
|
||||||
|
principal_id = azurerm_kubernetes_cluster.k8s.identity[0].principal_id
|
||||||
|
}
|
||||||
|
@ -66,4 +66,9 @@ variable "client_secret" {
|
|||||||
variable "workspace_id" {
|
variable "workspace_id" {
|
||||||
description = "Log Analytics workspace for this resource to log to"
|
description = "Log Analytics workspace for this resource to log to"
|
||||||
type = string
|
type = string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "vnet_id" {
|
||||||
|
description = "The ID of the VNET that the AKS cluster app registration needs to provision load balancers in"
|
||||||
|
type = string
|
||||||
|
}
|
||||||
|
@ -6,4 +6,8 @@ output "subnet_list" {
|
|||||||
value = {
|
value = {
|
||||||
for k, id in azurerm_subnet.subnet : k => id
|
for k, id in azurerm_subnet.subnet : k => id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
output "id" {
|
||||||
|
value = azurerm_virtual_network.vpc.id
|
||||||
|
}
|
||||||
|
@ -23,6 +23,7 @@ module "k8s" {
|
|||||||
client_id = data.azurerm_key_vault_secret.k8s_client_id.value
|
client_id = data.azurerm_key_vault_secret.k8s_client_id.value
|
||||||
client_secret = data.azurerm_key_vault_secret.k8s_client_secret.value
|
client_secret = data.azurerm_key_vault_secret.k8s_client_secret.value
|
||||||
workspace_id = module.logs.workspace_id
|
workspace_id = module.logs.workspace_id
|
||||||
|
vnet_id = module.vpc.id
|
||||||
}
|
}
|
||||||
|
|
||||||
#module "main_lb" {
|
#module "main_lb" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user