Skip to content

Commit

Permalink
Remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
vradicevicds committed Sep 16, 2024
1 parent 0d824fd commit e111de3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
1 change: 0 additions & 1 deletion modules/eks_addons/ingress_nginx/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ resource "kubernetes_namespace_v1" "this" {
}

resource "helm_release" "ingress_nginx" {
count = var.manage_via_gitops ? 0 : 1
name = var.helm_config["name"]
repository = try(var.helm_config["repository"], null)
chart = var.helm_config["chart"]
Expand Down
7 changes: 1 addition & 6 deletions modules/eks_addons/ingress_nginx/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
output "argocd_gitops_config" {
description = "Configuration used for managing the add-on with ArgoCD"
value = var.manage_via_gitops ? { enable = true } : null
}

output "release_metadata" {
description = "Map of attributes of the Helm release metadata"
value = helm_release.ingress_nginx[0].metadata
value = helm_release.ingress_nginx.metadata
}
6 changes: 0 additions & 6 deletions modules/eks_addons/ingress_nginx/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,3 @@ variable "set_sensitive_values" {
type = any
default = []
}

variable "manage_via_gitops" {
description = "Determines if the add-on should be managed via GitOps."
type = bool
default = false
}

0 comments on commit e111de3

Please sign in to comment.