Interview Prep/GitOps & Argo CD/ApplicationSets, App-of-Apps & Multi-Cluster

How does the cluster generator work?

IntermediateConceptApplicationSets, App-of-Apps & Multi-Cluster
Answer

It produces one parameter set per cluster Secret in the argocd namespace (and the local cluster when no selector excludes it). Parameters include name, nameNormalized, server, metadata.labels.<key> and metadata.annotations.<key>, plus any values you define:

generators:
  - clusters:
      selector:
        matchLabels:
          env: prod
      values:
        revision: v2.3.0

Labeling a cluster Secret env=prod instantly adds every prod app to it.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on ApplicationSets, App-of-Apps & Multi-Cluster