Skip to content

Commit

Permalink
Add variable for chart version
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdantverdyi committed Nov 2, 2021
1 parent cd622d1 commit fc491eb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module "cert_manager" {
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| namespace\_name | Name of created namespace | `string` | `cert-manager` | no |
| chart\_version | HELM Chart Version for cert-manager ( It is not recommended to change )| `string` | `cert-manager` | no |
| create_namespace | Create namespace or use exist | `bool` | `true` | no |
| cluster\_issuer\_server | The ACME server URL | `string` | `https://acme-v02.api.letsencrypt.org/directory` | no |
| cluster\_issuer\_email | Email address used for ACME registration | `string` | n/a | yes |
Expand All @@ -51,7 +52,7 @@ module "cert_manager" {
| helm | >= 2.1.0 |
| gavinbunney/kubectl | ~> 1.11.1 |

Cert Manager Version: v1.5.4
Cert Manager Version: v1.6.1

Source: https://github.com/jetstack/cert-manager

Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ resource "helm_release" "cert_manager" {
repository = "https://charts.jetstack.io"
name = "cert-manager"
namespace = var.create_namespace ? kubernetes_namespace.cert_manager[0].id : var.namespace_name
version = "1.5.4"
version = var.chart_version

create_namespace = false

Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ variable "create_namespace" {
default = true
}

variable "chart_version" {
type = string
description = "HELM Chart Version for cert-manager"
default = "1.6.1"
}

variable "cluster_issuer_server" {
description = "The ACME server URL"
type = string
Expand Down

0 comments on commit fc491eb

Please sign in to comment.