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

How does the pull request generator support preview environments?

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

It polls GitHub, GitLab, Gitea, Bitbucket or Azure DevOps for open PRs (optionally filtered by label) and provides number, branch, branch_slug, head_sha and head_short_sha. The template deploys each PR to its own namespace, for example preview-{{ .number }}, using an image tag built from the head SHA. When the PR closes, the Application and namespace are deleted. Add requeueAfterSeconds or a webhook for responsiveness.

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

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