Replies: 3 comments 2 replies
-
|
@rklonner I came in here with the same question. Have you made any progress on how to handle this? To expand, if you're testing a new property that is environment specific, You add it to the stages/dev/ configuration. This now becomes freight and you can promote it to the dev stage, which which will render the manifests for dev. After testing in dev, we now need to add the property to stages/uat configuration. With the current flow, adding this will create a new freight that only dev stage sees. So you have to promote it to dev (which doesn't actually do anything in dev), then promote it again to stage in order for it to render the manifests for uat. For production, you have to repeat the same thing 3 more times. Doesn't seem very effecient. |
Beta Was this translation helpful? Give feedback.
-
|
Personally, I probably would give each Stage its own secondary Warehouse. The DAG might look a bit disorderly, but it's an accurate model of what you're trying to achieve. |
Beta Was this translation helpful? Give feedback.
-
|
@rklonner Have you looked into using configmaps to hold the stage specific config? https://docs.kargo.io/user-guide/reference-docs/expressions#configmapname Could achieve what you want without the ugly DAG? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I understand the concept of using Kargo to promote changes of a "base" configuration through stages.
However, I am not sure how to cleanly do this within Kargo for bringing stage specific changes in. I know that this is not happening regularly but as the rendered manifests are saved on branches created by Kargo I think it should be managed in a visible way over Kargo.
Let's use the kargo-demo example and assume we want to change the configmap in the uat stage
https://github.com/akuity/kargo-demo/blob/main/stages/uat/configmap.yaml
This change will only come in when running the steps in the PromotionTask for the uat stage and
kustomize buildis executed and committed to the uat branch.Reapplying the same freight that is already on uat feels not right as I bring in this changes "only" implicitly.
Would I have to create warehouses for every stage to "subscribe" to this configuration for changes?
and make it a direct source for the uat stage along with the other requsted freight that will come from the upstream stage like so:
For only staging this would conceptionally look like this - an additional warehouse attached per stage (image is taken from a different experiment but shows what I mean)
It also feels like a bit of an overhead, especially if one does have a lot of stages and multiple different prod stages.
I wanted to ask if the community is implementing it that way or if I am missing something.
Many thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions