Commit Graph

12 Commits

Author SHA1 Message Date
Jeff McCune
8f6ccb5d77 apply: fix kargo resources before webhook 2024-12-19 20:58:59 -08:00
Jeff McCune
0ad86c2530 istio: add kargo promoter
The cert manager kargo pipeline works, but it's not re-usable and is
heavily tied to the CertManager struct at the top level.

This patch creates a re-usable addon-promoter component that can promote
any add-on.  It's purpose is to configure a kargo promotion project and
pipeline stages to watch a helm chart and update a single field in a
yaml file.  This approach is generalized and reusable.
2024-12-19 20:58:56 -08:00
Jeff McCune
fbf55008a4 docs: for unity testing 2024-12-19 15:57:03 -08:00
Jeff McCune
2121f159d5 unity: add basic show buildplans test 2024-12-19 15:52:35 -08:00
Jeff McCune
0653a0bbcb manage cert-manager kargo promotion
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.
2024-12-19 13:47:38 -08:00
Jeff McCune
b9e2b98e7a add httpbin to deploy along side podinfo
To show how we can re-use the kargo project builder.
2024-12-18 16:41:17 -08:00
Jeff McCune
efd60fbef5 add delete branches script
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.
2024-12-18 13:31:11 -08:00
Jeff McCune
f75ef29e39 apply podinfo kargo-stages 2024-12-17 16:11:02 -08:00
Jeff McCune
1a49407765 fix apply script for project podinfo
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
2024-12-17 13:05:34 -08:00
Jeff McCune
f8c10e2190 manage podinfo namespaces and ReferenceGrant
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.
2024-12-17 08:58:28 -08:00
Jeff McCune
1bec248118 add argocd application component config 2024-12-16 13:08:20 -08:00
Jeff McCune
b309494f48 add kargo and supporting services 2024-12-16 13:02:47 -08:00