argocd-extra

by tina.junold

Helm chartv1.2.2App 1.0.0MITVerified publisher

This Chart allows to deploy extra objects via Argo CD without the requirement of a repository.

About this chart

argocd-extra

This Chart allows to deploy extra objects via Argo CD without the requirement of a repository.

Source Code

Values

KeyTypeDefaultDescription
extraDeploylist[]Array of extra objects to deploy with the release

Argo CD usage

Application manifest

project: default
destination:
  namespace: example
  name: in-cluster
syncPolicy:
  syncOptions:
    - CreateNamespace=true
revisionHistoryLimit: 10
sources:
  - repoURL: https://your-main-chart.repo.url
    chart: example
    path: .
    targetRevision: '*'
    helm:
      releaseName: example
      values: |
        ---
        # main chart config here
        # [...]
  - repoURL: https://charts.ideaplexus.com
    chart: argocd-extra
    path: .
    targetRevision: '*'
    helm:
      releaseName: example-extra
      values: |
        ---
        extraDeploy:
          - apiVersion: v1
            kind: ConfigMap
            metadata:
              name: example-extra
              namespace: example
            data:
              example-data: example-value

Terraform

example.tf

terraform {
  required_providers {
    argocd = {
      source = "oboukili/argocd"
    }
  }
}

resource "argocd_application" "example" {
  metadata {
    name =  "example"
  }

  spec {
    project = "default"

    destination {
      name      = "in-cluster"
      namespace = "example"
    }

    source {
      repo_url = "https://your-main-chart.repo.url"
      chart           = "example"
      target_revision = "*"
      helm {
        release_name = "example"
        values = file("${path.root}/values.example.yml")
      }
    }

    source {
      repo_url = "https://charts.ideaplexus.com"
      chart           = "argocd-extra"
      target_revision = "*"
      helm {
        release_name = "example-extra"
        values = file("${path.root}/values.example-extra.yml")
      }
    }

    sync_policy {
      sync_options = ["CreateNamespace=true"]
    }
  }
}

values.example-extra.yml

---
extraDeploy:
  - apiVersion: v1
    kind: ConfigMap
    metadata:
      name: example-extra
      namespace: example
    data:
      example-data: example-value

Manual usage

Adding the Repository

helm repo add ideaplexus https://charts.ideaplexus.com
helm repo update

Installing the Chart

helm install my-chart ideaplexus/argocd-extra

Uninstalling the Chart

helm delete my-chart

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy argocd-extra with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has argocd-extra on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartargocd-extra is pinned at v1.2.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply