diff --git a/README.md b/README.md index 4c506d9..def0b68 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,7 @@ module jenkins { | app | an application to deploy | `map(any)` | n/a | yes | | namespace | namespace where to deploy an application | `string` | n/a | yes | | repository | Helm repository | `string` | n/a | yes | +| repository\_config | repository configuration | `map(any)` | n/a | yes | | set | Value block with custom STRING values to be merged with the values yaml. |
list(object({| `null` | no | | set\_sensitive | Value block with custom sensitive values to be merged with the values yaml that won't be exposed in the plan's diff. |
name = string
value = string
}))
list(object({| `null` | no | | values | Extra values | `list(string)` | `[]` | no | @@ -117,10 +118,10 @@ module jenkins { ``` -$ make help +$ make help hooks Commit hooks setup validate Validate with pre-commit hooks -changelog Update changelog +changelog Update changelog ``` diff --git a/main.tf b/main.tf index 7daa346..8827ed1 100644 --- a/main.tf +++ b/main.tf @@ -2,6 +2,11 @@ resource "helm_release" "this" { count = var.app["deploy"] ? 1 : 0 namespace = var.namespace repository = var.repository + repository_key_file = lookup(var.repository_config, "repository_key_file", null) + repository_cert_file = lookup(var.repository_config, "repository_cert_file", null) + repository_ca_file = lookup(var.repository_config, "repository_ca_file", null) + repository_username = lookup(var.repository_config, "repository_username", null) + repository_password = lookup(var.repository_config, "repository_password", null) name = var.app["name"] version = var.app["version"] chart = var.app["chart"] diff --git a/variables.tf b/variables.tf index 116e61e..11099ce 100644 --- a/variables.tf +++ b/variables.tf @@ -8,6 +8,12 @@ variable "app" { type = map(any) } +variable "repository_config" { + description = "repository configuration" + type = map(any) + default = {} +} + variable "values" { description = "Extra values" type = list(string)
path = string
value = string
}))