Skip to content

Commit

Permalink
use helm release rather than tf module
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleOps committed Jul 21, 2024
1 parent 8ab9cf7 commit 645343f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 93 deletions.
30 changes: 6 additions & 24 deletions infra/aws-impl/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,9 @@ locals {
namespace = "inferno"
manifests = fileset(path.module, "manifests/*.yaml")
}

module "inferno" {
# source = "./au_fhir_inferno"
# source = "github.com/hl7au/au-fhir-core-inferno/infra/modules/au_fhir_inferno"
source = "../modules/au_fhir_inferno"

base_url = "https://inferno.hl7.org.au/"
}

resource "kubernetes_manifest" "ingress" {
for_each = { for m in local.manifests : m => "${path.module}/${m}" }

manifest = yamldecode(templatefile(each.value, {
namespace = local.namespace

}))

field_manager {
name = "ingress-${local.namespace}"
# force_conflicts = true
}

depends_on = [module.inferno]
}
resource "helm_release" "example" {
name = "inferno-helm"
chart = "../helm/inferno"
namespace = local.namespace
create_namespace = true
}
68 changes: 0 additions & 68 deletions infra/aws-impl/manifests/ingress.yaml

This file was deleted.

1 change: 0 additions & 1 deletion infra/aws-impl/outputs.tf

This file was deleted.

Binary file added infra/helm/inferno/inferno-helmd-0.2.0.tgz
Binary file not shown.
File renamed without changes.

0 comments on commit 645343f

Please sign in to comment.