Skip to content

Commit

Permalink
feat: diff k8s manifests instead of helm values
Browse files Browse the repository at this point in the history
  • Loading branch information
modridi committed Jun 6, 2023
1 parent a737b10 commit 0cea7da
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,17 @@ data "utils_deep_merge_yaml" "values" {
append_list = var.deep_merge_append_list
}

data "helm_template" "this" {
name = "kube-prometheus-stack"
namespace = var.namespace
chart = "${path.module}/charts/kube-prometheus-stack"
values = [sensitive(data.utils_deep_merge_yaml.values.output)]
}

resource "null_resource" "k8s_resources" {
triggers = data.helm_template.this.manifests
}

resource "argocd_application" "this" {
metadata {
name = "kube-prometheus-stack"
Expand Down

0 comments on commit 0cea7da

Please sign in to comment.