Skip to content

Commit

Permalink
Cert Manager Update (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
sekka1 authored May 13, 2022
1 parent 0bf36b6 commit 34d25f4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 33 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include {
}

terraform {
source = "github.com/ManagedKube/kubernetes-ops//terraform-modules/aws/helm/cert-manager?ref=v1.0.29"
source = "github.com/ManagedKube/kubernetes-ops//terraform-modules/aws/helm/cert-manager?ref=v2.0.22"
}

dependency "eks" {
Expand Down
21 changes: 6 additions & 15 deletions terraform-modules/aws/helm/cert-manager/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@ locals {
official_chart_name = "cert-manager"
}

terraform {
required_providers {
kubectl = {
source = "gavinbunney/kubectl"
version = ">= 1.7.0"
}
}
}

module "iam_assumable_role_admin" {
source = "terraform-aws-modules/iam/aws//modules/iam-assumable-role-with-oidc"
version = "3.6.0"
Expand Down Expand Up @@ -113,9 +104,9 @@ data "template_file" "dns01_cluster_issuer_yaml" {
}
}

resource "kubectl_manifest" "dns01_cluster_issuer" {
count = var.enable_dns01_cluster_issuer
yaml_body = data.template_file.dns01_cluster_issuer_yaml.rendered
resource "kubernetes_manifest" "dns01_cluster_issuer" {
count = var.enable_dns01_cluster_issuer
manifest = yamldecode(data.template_file.dns01_cluster_issuer_yaml.rendered)

depends_on = [
module.cert-manager
Expand All @@ -137,9 +128,9 @@ data "template_file" "http01_cluster_issuer_yaml" {
}
}

resource "kubectl_manifest" "http01_cluster_issuer" {
count = var.enable_http01_cluster_issuer
yaml_body = data.template_file.http01_cluster_issuer_yaml.rendered
resource "kubernetes_manifest" "http01_cluster_issuer" {
count = var.enable_http01_cluster_issuer
manifest = yamldecode(data.template_file.http01_cluster_issuer_yaml.rendered)

depends_on = [
module.cert-manager
Expand Down

0 comments on commit 34d25f4

Please sign in to comment.