diff --git a/README.md b/README.md index e479d2d..a839d68 100644 --- a/README.md +++ b/README.md @@ -127,6 +127,7 @@ The `terraform-docs` utility is used to generate this README. Follow the below s | [venafi\_apikey](#input\_venafi\_apikey) | Venafi API key - required if using Venafi cluster issuer | `string` | `""` | no | | [venafi\_zone](#input\_venafi\_zone) | Venafi zone - required if using Venafi cluster issuer | `string` | `""` | no | | [wayfinder\_idp\_details](#input\_wayfinder\_idp\_details) | The IDP details to use for Wayfinder to enable SSO |
object({
type = string
clientId = optional(string)
clientSecret = optional(string)
serverUrl = optional(string)
azureTenantId = optional(string)
})
|
{
"azureTenantId": "",
"clientId": null,
"clientSecret": null,
"serverUrl": "",
"type": "none"
}
| no | +| [wayfinder\_no\_defaults](#input\_wayfinder\_no\_defaults) | Set to true to stop Wayfinder from applying compiled-in defaults (e.g. default roles, cluster plans, etc). | `bool` | `true` | no | | [wayfinder\_release\_channel](#input\_wayfinder\_release\_channel) | The release channel to use for Wayfinder | `string` | `"wayfinder-releases"` | no | | [wayfinder\_version](#input\_wayfinder\_version) | The version to use for Wayfinder | `string` | `"v2.9.7"` | no | diff --git a/manifests/wayfinder-values.yml.tpl b/manifests/wayfinder-values.yml.tpl index e332915..710be57 100644 --- a/manifests/wayfinder-values.yml.tpl +++ b/manifests/wayfinder-values.yml.tpl @@ -26,6 +26,7 @@ enableLocalAdminUser: ${enable_localadmin_user} mysql: pvc: storageClass: "${storage_class}" +noDefaults: ${no_defaults} ui: cloudOrder: "['azure','aws','gcp']" enabled: true diff --git a/variables.tf b/variables.tf index 923b6c7..7f5543c 100644 --- a/variables.tf +++ b/variables.tf @@ -327,6 +327,12 @@ variable "wayfinder_licence_key" { sensitive = true } +variable "wayfinder_no_defaults" { + description = "Set to true to stop Wayfinder from applying compiled-in defaults (e.g. default roles, cluster plans, etc)." + type = bool + default = true +} + variable "wayfinder_release_channel" { description = "The release channel to use for Wayfinder" type = string diff --git a/wayfinder.tf b/wayfinder.tf index 1f160ae..3c99497 100644 --- a/wayfinder.tf +++ b/wayfinder.tf @@ -144,19 +144,20 @@ resource "helm_release" "wayfinder" { values = [ templatefile("${path.module}/manifests/wayfinder-values.yml.tpl", { + aksManagementSubnet = var.aks_vnet_subnet_id api_hostname = var.wayfinder_domain_name_api clusterissuer = var.clusterissuer - issuerkind = var.clusterissuer == "adcs-issuer" ? "ClusterAdcsIssuer" : "ClusterIssuer" - issuergroup = var.clusterissuer == "adcs-issuer" ? "adcs.certmanager.csf.nokia.com" : "cert-manager.io" disable_local_login = var.wayfinder_idp_details["type"] == "none" ? false : var.disable_local_login enable_localadmin_user = var.create_localadmin_user + issuergroup = var.clusterissuer == "adcs-issuer" ? "adcs.certmanager.csf.nokia.com" : "cert-manager.io" + issuerkind = var.clusterissuer == "adcs-issuer" ? "ClusterAdcsIssuer" : "ClusterIssuer" + no_defaults = var.wayfinder_no_defaults + private_link_resourcegroup = local.private_link_resourcegroup + region = var.location storage_class = "managed" ui_hostname = var.wayfinder_domain_name_ui wayfinder_client_id = azurerm_user_assigned_identity.wayfinder_main.client_id wayfinder_instance_identifier = var.wayfinder_instance_id - aksManagementSubnet = var.aks_vnet_subnet_id - region = var.location - private_link_resourcegroup = local.private_link_resourcegroup }) ]