Skip to content

Commit f5a8cbf

Browse files
cert-manager timeout and chart version variables
1 parent cd0dba5 commit f5a8cbf

File tree

5 files changed

+28
-1
lines changed

5 files changed

+28
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ disk_support_config = {
139139
| <a name="input_availability_zones"></a> [availability\_zones](#input\_availability\_zones) | List of availability zones | `list(string)` | <pre>[<br/> "us-east-1a",<br/> "us-east-1b",<br/> "us-east-1c"<br/>]</pre> | no |
140140
| <a name="input_bucket_force_destroy"></a> [bucket\_force\_destroy](#input\_bucket\_force\_destroy) | Enable force destroy for the S3 bucket | `bool` | `true` | no |
141141
| <a name="input_bucket_lifecycle_rules"></a> [bucket\_lifecycle\_rules](#input\_bucket\_lifecycle\_rules) | List of lifecycle rules for the S3 bucket | <pre>list(object({<br/> id = string<br/> enabled = bool<br/> prefix = string<br/> transition_days = number<br/> transition_storage_class = string<br/> noncurrent_version_expiration_days = number<br/> }))</pre> | <pre>[<br/> {<br/> "enabled": true,<br/> "id": "cleanup",<br/> "noncurrent_version_expiration_days": 90,<br/> "prefix": "",<br/> "transition_days": 90,<br/> "transition_storage_class": "STANDARD_IA"<br/> }<br/>]</pre> | no |
142+
| <a name="input_cert_manager_chart_version"></a> [cert\_manager\_chart\_version](#input\_cert\_manager\_chart\_version) | Version of the cert-manager helm chart to install. | `string` | `"v1.17.1"` | no |
143+
| <a name="input_cert_manager_install_timeout"></a> [cert\_manager\_install\_timeout](#input\_cert\_manager\_install\_timeout) | Timeout for installing the cert-manager helm chart, in seconds. | `number` | `300` | no |
142144
| <a name="input_cert_manager_namespace"></a> [cert\_manager\_namespace](#input\_cert\_manager\_namespace) | The name of the namespace in which cert-manager is or will be installed. | `string` | `"cert-manager"` | no |
143145
| <a name="input_cluster_enabled_log_types"></a> [cluster\_enabled\_log\_types](#input\_cluster\_enabled\_log\_types) | List of desired control plane logging to enable | `list(string)` | <pre>[<br/> "api",<br/> "audit",<br/> "authenticator",<br/> "controllerManager",<br/> "scheduler"<br/>]</pre> | no |
144146
| <a name="input_cluster_version"></a> [cluster\_version](#input\_cluster\_version) | Kubernetes version for the EKS cluster | `string` | `"1.32"` | no |

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ module "certificates" {
111111
source = "./modules/certificates"
112112

113113
install_cert_manager = var.install_cert_manager
114+
cert_manager_install_timeout = var.cert_manager_install_timeout
115+
cert_manager_chart_version = var.cert_manager_chart_version
114116
use_self_signed_cluster_issuer = var.use_self_signed_cluster_issuer
115117
cert_manager_namespace = var.cert_manager_namespace
116118
name_prefix = local.name_prefix

modules/certificates/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ resource "helm_release" "cert_manager" {
1515
namespace = kubernetes_namespace.cert_manager[0].metadata[0].name
1616
repository = "https://charts.jetstack.io"
1717
chart = "cert-manager"
18-
version = "v1.17.1"
18+
version = var.cert_manager_chart_version
19+
timeout = var.cert_manager_install_timeout
1920

2021
set {
2122
name = "crds.enabled"

modules/certificates/variables.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,13 @@ variable "name_prefix" {
1717
description = "The name prefix to use for Kubernetes resources. Does not apply to cert-manager itself, as that is a singleton per cluster."
1818
type = string
1919
}
20+
21+
variable "cert_manager_install_timeout" {
22+
description = "Timeout for installing the cert-manager helm chart, in seconds."
23+
type = number
24+
}
25+
26+
variable "cert_manager_chart_version" {
27+
description = "Version of the cert-manager helm chart to install."
28+
type = string
29+
}

variables.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,18 @@ variable "cert_manager_namespace" {
291291
default = "cert-manager"
292292
}
293293

294+
variable "cert_manager_install_timeout" {
295+
description = "Timeout for installing the cert-manager helm chart, in seconds."
296+
type = number
297+
default = 300
298+
}
299+
300+
variable "cert_manager_chart_version" {
301+
description = "Version of the cert-manager helm chart to install."
302+
type = string
303+
default = "v1.17.1"
304+
}
305+
294306
# Materialize Helm Chart Variables
295307
variable "install_materialize_operator" {
296308
description = "Whether to install the Materialize operator"

0 commit comments

Comments
 (0)