Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

uses helm with raw yaml to deploy #5

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,21 @@ resource "kubernetes_secret_v1" "cluster" {
################################################################################
# Create App of Apps
################################################################################
resource "kubectl_manifest" "bootstrap" {
resource "helm_release" "bootstrap" {
for_each = var.create ? var.argocd_bootstrap_app_of_apps : {}

yaml_body = each.value
name = each.key
namespace = "argocd"
repository = "https://bedag.github.io/helm-charts/"
Copy link
Member

@csantanapr csantanapr Sep 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know who owns this chart.
Can we copy the helm chart to a local directory and use the helm chart from directory instead of relying on this 3rd chart and also network access to the domain bedag.github.io

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point the chart is pretty basic I’ll add a local copy

chart = "raw"
version = "2.0.0"

values = [
<<-EOT
resources:
- ${indent(4, each.value)}
EOT
]

depends_on = [resource.kubernetes_secret_v1.cluster]
}
}
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ output "cluster" {
}
output "apps" {
description = "ArgoCD apps"
value = try(kubectl_manifest.bootstrap, null)
value = try(helm_release.bootstrap, null)
}