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

Commit

Permalink
utilize default namespaces for argocd and flux helm releases
Browse files Browse the repository at this point in the history
  • Loading branch information
MGTheTrain committed Apr 2, 2024
1 parent 7befb8d commit 35714be
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions terraform/modules/k8s/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,6 @@ resource "kubernetes_namespace" "gitops_ftw_namespace" {
}
}

resource "kubernetes_namespace" "argocd_namespace" {
metadata {
annotations = local.tags
labels = local.tags
name = "argocd"
}
}

resource "kubernetes_namespace" "flux_namespace" {
metadata {
annotations = local.tags
labels = local.tags
name = "flux-system"
}
}

resource "kubernetes_namespace" "nginx_controller_namespace" {
metadata {
annotations = local.tags
Expand Down Expand Up @@ -57,7 +41,6 @@ resource "helm_release" "argocd" {
repository = "https://argoproj.github.io/argo-helm"
chart = "argo-cd"
version = "6.7.5"
namespace = kubernetes_namespace.argocd_namespace.metadata.0.name
count = var.gitops_tool == "argocd" ? 1 : 0
}

Expand All @@ -66,7 +49,6 @@ resource "helm_release" "fluxcd" {
repository = "https://fluxcd-community.github.io/helm-charts"
chart = "flux2"
version = "2.12.4"
namespace = kubernetes_namespace.flux_namespace.metadata.0.name
count = var.gitops_tool == "fluxcd" ? 1 : 0
}

Expand Down

0 comments on commit 35714be

Please sign in to comment.