|
| 1 | +variable "install_cert_manager" { |
| 2 | + description = "Whether to install cert-manager" |
| 3 | + type = bool |
| 4 | + default = false |
| 5 | +} |
| 6 | + |
| 7 | +variable "cert_manager_version" { |
| 8 | + description = "Version of cert-manager chart" |
| 9 | + type = string |
| 10 | + default = "v1.15.0" |
| 11 | +} |
| 12 | + |
| 13 | +variable "namespace" { |
| 14 | + description = "Namespace to install cert-manager into" |
| 15 | + type = string |
| 16 | + default = "cert-manager" |
| 17 | +} |
| 18 | + |
| 19 | +variable "create_namespace" { |
| 20 | + description = "Whether to create the namespace" |
| 21 | + type = bool |
| 22 | + default = true |
| 23 | +} |
| 24 | + |
| 25 | +variable "install_crds" { |
| 26 | + description = "Whether to install CRDs" |
| 27 | + type = bool |
| 28 | + default = true |
| 29 | +} |
| 30 | + |
| 31 | +variable "letsencrypt_email" { |
| 32 | + description = "Email address for Let's Encrypt certificate notifications" |
| 33 | + type = string |
| 34 | +} |
| 35 | + |
| 36 | +variable "cert_issuer_name" { |
| 37 | + description = "Name of the ClusterIssuer or Issuer to create" |
| 38 | + type = string |
| 39 | + default = "letsencrypt-prod" |
| 40 | +} |
| 41 | + |
| 42 | +variable "cert_issuer_kind" { |
| 43 | + description = "Kind of Issuer to create (ClusterIssuer or Issuer)" |
| 44 | + type = string |
| 45 | + default = "ClusterIssuer" |
| 46 | + validation { |
| 47 | + condition = contains(["ClusterIssuer", "Issuer"], var.cert_issuer_kind) |
| 48 | + error_message = "cert_issuer_kind must be either 'ClusterIssuer' or 'Issuer'." |
| 49 | + } |
| 50 | +} |
| 51 | + |
| 52 | +variable "issuer_namespace" { |
| 53 | + description = "Namespace for the Issuer (required if cert_issuer_kind is Issuer). Defaults to the installation namespace if not provided." |
| 54 | + type = string |
| 55 | + default = "" |
| 56 | +} |
| 57 | + |
| 58 | +variable "issuer_server" { |
| 59 | + description = "ACME server URL" |
| 60 | + type = string |
| 61 | + default = "https://acme-v02.api.letsencrypt.org/directory" |
| 62 | +} |
| 63 | + |
| 64 | +variable "ingress_class_name" { |
| 65 | + description = "Ingress class to solve challenges" |
| 66 | + type = string |
| 67 | + default = "nginx" |
| 68 | +} |
0 commit comments