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.
More on ApplicationSets, App-of-Apps & Multi-Cluster
What problem does an ApplicationSet solve?BeginnerList the ApplicationSet generators.BeginnerShow a list generator example.BeginnerHow does the cluster generator work?IntermediateCompare the git directory and git files generators.IntermediateWhat is a matrix generator and what are its limits?Intermediate