This patch implements the promotion steps and has been tested up through
triggering the ArgoCD sync.
Note the `git-wait-for-pr` step takes quite a while to complete. It
appears to poll on a 5 minute interval.
After playing with this a bit it seems we may want to stop the Kargo
process at opening the PR.
We need to delete the branches, otherwise Kargo doesn't actually do
anything or make a new commit when we reset the cluster and apply the
manifests again.
Now that we're organizing Kargo Projects into the following directory
structure, we need to fix the apply script to be project-aware.
deploy/projects
└── podinfo
├── components
│ ├── dev-podinfo
│ ├── kargo-project
│ ├── prod-us-central-podinfo
│ ├── prod-us-east-podinfo
│ ├── prod-us-west-podinfo
│ ├── test-podinfo
│ └── uat-podinfo
└── gitops
Previously the podinfo components deployed to the wrong namespace. This
patch uses a kustomize transformer to force the resources into the
correct namespace.
This patch also adds a reference grant to each component so the
HTTPRoute works correctly.