-
When a new image is built and uploaded to the image registry, kargo generates two items. Details as follows:
Assume that the current chart version is unchanged, the image version is
Here's the problem: When promoting $ kubectl get applications.argoproj.io -n argocd wj-proj-dev -o=jsonpath='{.metadata.annotations}' -w
{"argocd.argoproj.io/refresh":"hard","kargo.akuity.io/authorized-stage":"wj-proj-kargo:dev"}
{"kargo.akuity.io/authorized-stage":"wj-proj-kargo:dev"}
{"kargo.akuity.io/authorized-stage":"wj-proj-kargo:dev"}
{"kargo.akuity.io/authorized-stage":"wj-proj-kargo:dev"}
{"argocd.argoproj.io/refresh":"hard","kargo.akuity.io/authorized-stage":"wj-proj-kargo:dev"}
{"argocd.argoproj.io/refresh":"hard","kargo.akuity.io/authorized-stage":"wj-proj-kargo:dev"}
{"argocd.argoproj.io/refresh":"hard","kargo.akuity.io/authorized-stage":"wj-proj-kargo:dev"} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
If your promotion process is writing back to the same branch to which your Warehouse subscribes, then your promotion process is indirectly creating the second piece of Freight. Kargo used to not let you do this (for the exact reason you are now encounting), but so many different features have emerged since then that can help you to mitigate this, so that protection eventually vanished.
|
Beta Was this translation helpful? Give feedback.
If your promotion process is writing back to the same branch to which your Warehouse subscribes, then your promotion process is indirectly creating the second piece of Freight.
Kargo used to not let you do this (for the exact reason you are now encounting), but so many different features have emerged since then that can help you to mitigate this, so that protection eventually vanished.
You can use path filters on your Warehouse's git repo subscription to try and ignore new commits where the only changes are to certain files.
You ca…