How do you get Freight information (not metadata)? #5764
-
|
We're new to Kargo and figuring things out. We're using a Helm chart Warehouse and trying to get the version of the Freight being used in our Stage so that we can pass it to the Is that right? The repo URL and the version are already tied to the Freight object, is there no way to get that information from the Freight directly? It doesn't look like the repo URL comes back from the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
URLs are used as keys for lots of things in Kargo, including the artifacts referenced by a Freight resource. |
Beta Was this translation helpful? Give feedback.
URLs are used as keys for lots of things in Kargo, including the artifacts referenced by a Freight resource.
chartFrom(), with the URL passed to it is indeed the right way to get at the information you're looking for, but you don't (shouldn't) need to "hard code" it. The common thing to do would be that you have have the URL in a variable and then the, potentially many places that need to use it use that variable in an expression. Typically, most of a promotion process would be described in reusable fashion using a PromotionTemplate or ClusterPromotionTemplate and the URL would essentially be an argument. So you're on the right track and what might have initially struck you as not very DR…