Skip to content

Commit

Permalink
feat(cert-manager): allow modify http01 ingress section
Browse files Browse the repository at this point in the history
  • Loading branch information
lconsuegra authored and jbarascut committed Nov 14, 2022
1 parent 6cd1454 commit fa4558e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/aks/azure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ module "argocd" {
all_domains = local.all_domains
cert_manager_resource_id = azurerm_user_assigned_identity.cert_manager.id
cert_manager_client_id = azurerm_user_assigned_identity.cert_manager.client_id
cert_manager_http01_ingress = var.cert_manager_http01_ingress
azure_dns_label_name = local.azure_dns_label_name
kube_prometheus_stack_prometheus_resource_id = azurerm_user_assigned_identity.kube_prometheus_stack_prometheus.id
kube_prometheus_stack_prometheus_client_id = azurerm_user_assigned_identity.kube_prometheus_stack_prometheus.client_id
Expand Down
3 changes: 2 additions & 1 deletion modules/aks/azure/values.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ cert-manager:
- ${domain}
%{ endfor }
- http01:
ingress: {}
ingress:
${indent(14, yamlencode(cert_manager_http01_ingress))}
replicaCount: 2
podLabels:
aadpodidbinding: cert-manager
Expand Down
6 changes: 6 additions & 0 deletions modules/aks/azure/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ variable "other_domains" {
default = []
}

variable "cert_manager_http01_ingress" {
description = "Ingress block for the htt01 chalenge of cert-manager"
type = any
default = {}
}

variable "kubernetes_version" {
description = "Specify which Kubernetes release to use."
type = string
Expand Down

0 comments on commit fa4558e

Please sign in to comment.