From 8878dc65bb12978267e4c21121698ab76224d459 Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Sat, 1 May 2021 22:33:46 +0700 Subject: [PATCH] Move cert-manager config to seperate file --- infra/modules/kubernetes-cluster-bootstrap/main.tf | 8 +++----- .../kubernetes-cluster-bootstrap/values/cert-manager.yaml | 1 + 2 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 infra/modules/kubernetes-cluster-bootstrap/values/cert-manager.yaml diff --git a/infra/modules/kubernetes-cluster-bootstrap/main.tf b/infra/modules/kubernetes-cluster-bootstrap/main.tf index 0e43e683..24448129 100644 --- a/infra/modules/kubernetes-cluster-bootstrap/main.tf +++ b/infra/modules/kubernetes-cluster-bootstrap/main.tf @@ -32,11 +32,9 @@ resource "helm_release" "cert_manager" { namespace = "cert-manager" create_namespace = true - # TODO use ./values/cert-manager.yaml for this - set { - name = "installCRDs" - value = "true" - } + values = [ + file("${path.module}/values/cert-manager.yaml") + ] } resource "helm_release" "prometheus" { diff --git a/infra/modules/kubernetes-cluster-bootstrap/values/cert-manager.yaml b/infra/modules/kubernetes-cluster-bootstrap/values/cert-manager.yaml new file mode 100644 index 00000000..1b4551cc --- /dev/null +++ b/infra/modules/kubernetes-cluster-bootstrap/values/cert-manager.yaml @@ -0,0 +1 @@ +installCRDs: true