Skip to content

Commit

Permalink
feat: add variable to stop Wayfinder from preloading with default res…
Browse files Browse the repository at this point in the history
…ources (#71)
  • Loading branch information
KashifSaadat authored Jul 1, 2024
1 parent d7f1d2f commit c0e0145
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ The `terraform-docs` utility is used to generate this README. Follow the below s
| <a name="input_wayfinder_idp_details"></a> [wayfinder\_idp\_details](#input\_wayfinder\_idp\_details) | The IDP details to use for Wayfinder to enable SSO. | <pre>object({<br> type = string<br> clientId = optional(string)<br> clientSecret = optional(string)<br> serverUrl = optional(string)<br> azureTenantId = optional(string)<br> })</pre> | <pre>{<br> "azureTenantId": "",<br> "clientId": null,<br> "clientSecret": null,<br> "serverUrl": "",<br> "type": "none"<br>}</pre> | no |
| <a name="input_wayfinder_instance_id"></a> [wayfinder\_instance\_id](#input\_wayfinder\_instance\_id) | The instance ID to use for Wayfinder. | `string` | n/a | yes |
| <a name="input_wayfinder_licence_key"></a> [wayfinder\_licence\_key](#input\_wayfinder\_licence\_key) | The licence key to use for Wayfinder. | `string` | n/a | yes |
| <a name="input_wayfinder_no_defaults"></a> [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 |
| <a name="input_wayfinder_release_channel"></a> [wayfinder\_release\_channel](#input\_wayfinder\_release\_channel) | The release channel to use for Wayfinder. | `string` | `"wayfinder-releases"` | no |
| <a name="input_wayfinder_version"></a> [wayfinder\_version](#input\_wayfinder\_version) | The version to use for Wayfinder. | `string` | `"v2.7.4"` | no |

Expand Down
1 change: 1 addition & 0 deletions manifests/wayfinder-values.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ enableLocalAdminUser: ${enable_localadmin_user}
mysql:
pvc:
storageClass: "${storage_class}"
noDefaults: ${no_defaults}
ui:
enabled: true
endpoint:
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,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
Expand Down
1 change: 1 addition & 0 deletions wayfinder.tf
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ resource "helm_release" "wayfinder" {
api_hostname = var.wayfinder_domain_name_api
disable_local_login = var.wayfinder_idp_details["type"] == "none" ? false : var.disable_local_login
enable_localadmin_user = var.create_localadmin_user
no_defaults = var.wayfinder_no_defaults
storage_class = "${var.eks_encrypted_sc_type}-encrypted"
ui_hostname = var.wayfinder_domain_name_ui
wayfinder_iam_identity = module.wayfinder_irsa_role.iam_role_arn
Expand Down

0 comments on commit c0e0145

Please sign in to comment.