Merge pull request #17 from max-pfeiffer/feature/make-argocd-helm-values-configurable

Made ArgoCD Helm values configurable
This commit is contained in:
Max Pfeiffer
2026-01-25 20:17:27 +01:00
committed by GitHub
4 changed files with 12 additions and 26 deletions

View File

@@ -2,7 +2,6 @@ apiVersion: cilium.io/v2alpha1
kind: CiliumL2AnnouncementPolicy
metadata:
name: default
namespace: kube-system
annotations:
argocd.argoproj.io/sync-wave: "-1000"
spec:

View File

@@ -44,27 +44,4 @@ resource "helm_release" "argocd_app_of_apps" {
value = var.argocd_app_of_apps_sync_policy
},
]
}
# data "helm_template" "argocd_app_of_apps" {
#
# depends_on = [helm_release.argocd]
# name = "app-of-apps"
# chart = "${path.module}/helm_charts/app-of-apps"
# namespace = kubernetes_namespace_v1.argocd.id
# timeout = 60
# set = [
# {
# name = "source"
# value = var.argocd_app_of_apps_source
# },
# {
# name = "syncPolicy"
# value = var.argocd_app_of_apps_sync_policy
# },
# ]
# }
#
# output "argocd_app_of_apps_rendered_yaml" {
# value = data.helm_template.argocd_app_of_apps.manifest
# }
}

View File

@@ -21,6 +21,7 @@ locals {
name = "server.ingress.ingressClassName"
value = "cilium"
},
] : []
] : [],
length(var.argocd_helm_values) > 0 ? var.argocd_helm_values : []
)
}

View File

@@ -44,6 +44,15 @@ variable "argocd_ingress_enabled" {
default = true
}
variable "argocd_helm_values" {
description = "Additional Helm values for installing the ArgoCD Helm chart"
type = list(object({
name = string
value = string
}))
default = []
}
# See: https://argo-cd.readthedocs.io/en/latest/operator-manual/cluster-bootstrapping/#app-of-apps-pattern
variable "install_argocd_app_of_apps" {
description = "Flag for bootstrapping ArgoCD with an App of Apps"