Merge pull request #17 from max-pfeiffer/feature/make-argocd-helm-values-configurable
Made ArgoCD Helm values configurable
This commit is contained in:
@@ -2,7 +2,6 @@ apiVersion: cilium.io/v2alpha1
|
|||||||
kind: CiliumL2AnnouncementPolicy
|
kind: CiliumL2AnnouncementPolicy
|
||||||
metadata:
|
metadata:
|
||||||
name: default
|
name: default
|
||||||
namespace: kube-system
|
|
||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-wave: "-1000"
|
argocd.argoproj.io/sync-wave: "-1000"
|
||||||
spec:
|
spec:
|
||||||
@@ -44,27 +44,4 @@ resource "helm_release" "argocd_app_of_apps" {
|
|||||||
value = var.argocd_app_of_apps_sync_policy
|
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
|
|
||||||
# }
|
|
||||||
@@ -21,6 +21,7 @@ locals {
|
|||||||
name = "server.ingress.ingressClassName"
|
name = "server.ingress.ingressClassName"
|
||||||
value = "cilium"
|
value = "cilium"
|
||||||
},
|
},
|
||||||
] : []
|
] : [],
|
||||||
|
length(var.argocd_helm_values) > 0 ? var.argocd_helm_values : []
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,6 +44,15 @@ variable "argocd_ingress_enabled" {
|
|||||||
default = true
|
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
|
# See: https://argo-cd.readthedocs.io/en/latest/operator-manual/cluster-bootstrapping/#app-of-apps-pattern
|
||||||
variable "install_argocd_app_of_apps" {
|
variable "install_argocd_app_of_apps" {
|
||||||
description = "Flag for bootstrapping ArgoCD with an App of Apps"
|
description = "Flag for bootstrapping ArgoCD with an App of Apps"
|
||||||
|
|||||||
Reference in New Issue
Block a user