Skip to content

Commit

Permalink
Fix/set argocd helm value types explicitly (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
vignirhafsteinsson authored Aug 15, 2022
1 parent bd188d7 commit aaceb30
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/kubernetes-addons/argocd/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,32 +29,38 @@ resource "helm_release" "argocd_application" {
set {
name = "name"
value = each.key
type = "string"
}

set {
name = "project"
value = each.value.project
type = "string"
}

# Source Config.
set {
name = "source.repoUrl"
value = each.value.repo_url
type = "string"
}

set {
name = "source.targetRevision"
value = each.value.target_revision
type = "string"
}

set {
name = "source.path"
value = each.value.path
type = "string"
}

set {
name = "source.helm.releaseName"
value = each.key
type = "string"
}

set {
Expand All @@ -65,12 +71,14 @@ resource "helm_release" "argocd_application" {
local.global_application_values,
each.value.add_on_application ? var.addon_config : {}
))
type = "auto"
}

# Destination Config.
set {
name = "destination.server"
value = each.value.destination
type = "string"
}

depends_on = [module.helm_addon]
Expand Down

0 comments on commit aaceb30

Please sign in to comment.