Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.

Commit c326f47

Browse files
p-bizouardclaudusd
authored andcommitted
🐛 (Argocd Apps): Fix maps instead of lists, and pin argocd-apps to latest 1.x
See argoproj/argo-helm@237493a
1 parent 9cdcffb commit c326f47

File tree

4 files changed

+37
-27
lines changed

4 files changed

+37
-27
lines changed

common/argocd-apps-values.yaml.tftpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
applicationsets:
3-
- name: apps
3+
# See https://github.com/argoproj/argo-helm/commit/237493a4ab1478a0c33cb1253767f65ce4ec007c
4+
%{ if tonumber(split(".", argocd_apps_version).0) < 2 }- name: apps%{ else }apps:%{ endif }
45
namespace: argocd
56
generators:
67
- git:

common/argocd.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,13 @@ resource "helm_release" "argocd-apps" {
3333
repository = "https://argoproj.github.io/argo-helm"
3434
chart = "argocd-apps"
3535

36+
version = var.argocd_apps_version
37+
3638
values = [
3739
templatefile("${path.module}/argocd-apps-values.yaml.tftpl",
3840
{
3941
repo_url = var.argocd_repo_url
42+
argocd_apps_version = var.argocd_apps_version
4043
}
4144
)
4245
]

common/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ variable "argocd_version" {
2929
default = "5.33.1"
3030
}
3131

32+
variable "argocd_apps_version" {
33+
type = string
34+
description = "ArgoCD apps version"
35+
default = "1.6.2"
36+
}
37+
3238
variable "argocd_avp_version" {
3339
type = string
3440
description = "ArgoCD argo-vault-plugin version"

standalone/.terraform.lock.hcl

Lines changed: 26 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)