applicationset icon indicating copy to clipboard operation
applicationset copied to clipboard

Cluster Resource Generator

Open aslafy-z opened this issue 1 year ago • 0 comments

Add the ability to generate Applications from downstream cluster resources, eg:

apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
  name: monitoring-addon
  namespace: argocd
spec:
  generators:
    - clusterResource:
        apiVersion: tenant.io/v1
        kind: Tenant
        # namespace: <optional>
        labelSelector:
          matchLabels:
            tenant.io/sync: 'true'
apiVersion: tenant.io/v1
kind: Tenant
metadata:
  name: tenant1
  labels:
    tenant.io/sync: 'true'
spec: {}
apiVersion: tenant.io/v1
kind: Tenant
metadata:
  name: tenant2
  labels:
    tenant.io/sync: 'true'
spec: {}

ArgoCD should generate two applications from these resources.

aslafy-z avatar Aug 12 '22 15:08 aslafy-z