Functionality merged into a single terraform module gitops-bridge-dev/gitops-bridge-argocd-bootstrap-terraform
Terraform module for gitops-bridge argocd metadata
It generates the argocd cluster secret that contains the metadata for argocd application sets
To be use with gitops-bridge project, see example here
locals {
name = "ex-${replace(basename(path.cwd), "_", "-")}"
environment = "dev"
cluster_version = "1.27"
gitops_addons_url = "https://github.com/gitops-bridge-devgitops-bridge-argocd-control-plane-template"
gitops_addons_basepath = ""
gitops_addons_path = "bootstrap/control-plane/addons"
gitops_addons_revision = "HEAD"
oss_addons = {
enable_argo_workflows = true
enable_foo = true # you can add any addon here, make sure to update the gitops repo with the corresponding application set
}
addons = merge(local.oss_addons, { kubernetes_version = local.cluster_version })
addons_metadata = merge(
{
addons_repo_url = local.gitops_addons_url
addons_repo_basepath = local.gitops_addons_basepath
addons_repo_path = local.gitops_addons_path
addons_repo_revision = local.gitops_addons_revision
}
)
argocd_bootstrap_app_of_apps = {
addons = file("${path.module}/bootstrap/addons.yaml")
}
}
############################################################################
# GitOps Bridge: Metadata
############################################################################
module "gitops_bridge_metadata" {
source = "github.com/gitops-bridge-dev/gitops-bridge-argocd-metadata-terraform?ref=v1.0.0"
cluster_name = local.name
environment = local.environment
metadata = local.addons_metadata
addons = local.addons
}
Name | Version |
---|---|
terraform | >= 1.0 |
No providers.
No modules.
No resources.
Name | Description | Type | Default | Required |
---|---|---|---|---|
addons | ArgoCD cluster additional addons labels to be extracted by application sets | map(string) |
{} |
no |
argocd | Overrides for ArgoCD cluster secret like name, namespace, data server, data config, take a look at main.tf | map(string) |
{} |
no |
cluster_name | ArgoCD cluster name | string |
"in-cluster" |
no |
environment | ArgoCD cluster label environment | string |
"dev" |
no |
metadata | ArgoCD cluster additional metadata annotations to be extracted by application sets | map(string) |
{} |
no |
Name | Description |
---|---|
argocd | Argocd cluster secret |