Replies: 1 comment
-
@NasAmin Have you had any success implementing this? Similar to this, I'm wondering if there is any way to achieve this in combination with Image Update Automation. In the following example I'm using the following git repositories:
Suppose I have a git repository with my application code with the following CI pipeline:
Suppose I have a Flux image automation in place that is triggered by step 2 that updates my dev-cluster state and in turn deploys the new image. Would there be any way to notify the CI pipeline of my app-code-repo about the deployment to trigger step 4? Maybe an event can be created and consumed for this purpose? This promotion use-case seems quite interesting to me. I'm wondering if there's something wrong with my thinking in general? How do others solve this using Flux. Do you need to approach this differently? Thanks! EditI'm currently thinking that something can be done by organizing the git repositories differently. Sorry for the public brainstorming. In my previous example the repository structure would have been:
When a commit is made to "Platform" (by user or by an image automation) a git commit status notification is sent to the git repo after successful reconciliation. I don't think that this commit status event can trigger any sort of build by itself but maybe a generic webhook event can be used to trigger tests+promotion. As we're dealing with multiple apps in this case, we need to know which of those should be tested+promoted. With my current knowledge this is not possible with the above setup. If we re-organize the repos:
By having per-app gitops repos, we can probably solve the issue of recognizing which service has been updated by an image update policy and trigger respective pipelines to test that version and create a new image for production (image automation on production takes care of the promotion...). 🤷♂️ I don't currently have a real flux cluster to test with so this is all only on paper. I'll leave these thoughts out here. Someone correct me if I'm missing something obvious. I'll update this thread if I get to test. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am new to GitOps and Flux. Please forgive my ignorance.
I am following this page. In particular, I am looking at the
Kubectl wait kustomization
command.I want to build a pipeline like this in GitHub Actions:
kubectl
to check the pods are running successfully.kubectl
to ensure the deployments are successful.What's the best way to achieve something like the above?
I'll really appreciate some guidance.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions