diff --git a/README.md b/README.md index a829e61..52b30ac 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,6 @@ No modules. | [cluster\_domain\_name](#input\_cluster\_domain\_name) | The cluster domain used for externalDNS annotations and certmanager | `any` | n/a | yes | | [controller\_name](#input\_controller\_name) | Will be used as the ingress controller name and the class annotation | `string` | n/a | yes | | [default\_cert](#input\_default\_cert) | Useful if you want to use a default certificate for your ingress controller. Format: namespace/secretName | `string` | `"ingress-controllers/default-certificate"` | no | -| [dependence\_certmanager](#input\_dependence\_certmanager) | cert-manager module dependences in order to be executed. | `any` | n/a | yes | | [enable\_external\_dns\_annotation](#input\_enable\_external\_dns\_annotation) | Add external dns annotation for service | `bool` | `false` | no | | [enable\_latest\_tls](#input\_enable\_latest\_tls) | Provide support to tlsv1.3 along with tlsv1.2 | `bool` | `false` | no | | [enable\_modsec](#input\_enable\_modsec) | Enable https://github.com/SpiderLabs/ModSecurity-nginx | `bool` | `false` | no | diff --git a/example/ingress.tf b/example/ingress.tf index 3baa967..aa0b22f 100644 --- a/example/ingress.tf +++ b/example/ingress.tf @@ -6,7 +6,6 @@ module "ingress_controllers" { cluster_domain_name = "dummy" is_live_cluster = false live1_cert_dns_name = "dummy" - dependence_certmanager = "ignore" } @@ -20,7 +19,6 @@ module "modsec_ingress_controllers" { live1_cert_dns_name = "dummy" enable_modsec = true enable_owasp = true - dependence_certmanager = "ignore" depends_on = [module.ingress_controllers] } diff --git a/main.tf b/main.tf index dbcfd5f..a02f93c 100644 --- a/main.tf +++ b/main.tf @@ -69,7 +69,6 @@ resource "helm_release" "nginx_ingress" { depends_on = [ kubernetes_namespace.ingress_controllers, kubernetes_config_map.modsecurity_nginx_config, - var.dependence_certmanager ] lifecycle { @@ -99,7 +98,6 @@ resource "kubectl_manifest" "nginx_ingress_default_certificate" { yaml_body = data.template_file.nginx_ingress_default_certificate.rendered depends_on = [ - kubernetes_namespace.ingress_controllers, - var.dependence_certmanager + kubernetes_namespace.ingress_controllers ] } diff --git a/variables.tf b/variables.tf index 0028b83..24475a3 100644 --- a/variables.tf +++ b/variables.tf @@ -68,10 +68,6 @@ variable "enable_external_dns_annotation" { default = false } -variable "dependence_certmanager" { - description = "cert-manager module dependences in order to be executed." -} - variable "cluster" { description = " cluster name used for opensearch indicies" type = string