Is it possible to get the full details of a freight within a stage promotion task? #5873
Unanswered
bhoppeadoy
asked this question in
Q&A
Replies: 1 comment
-
|
So far it seems like there is no other way. Maybe in you open another discussion in the Idea category to let this topic get more traction and potentially have the Kargo team add some more information into the ctx object. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In a PromotionTask, I see that we have a ctx (context variable) that has targetFreight object, but it doesn't really have anything useful to use when it comes to shared tasks.
Within a PromotionTask, I need to know if the freight is git/chart/image and then I need to get the repoURL of the freight. I can't seem to find a way programmatically to get this information. Seems odd since its all there in the freight object.
They only solution I found its to pass in the repoURL as a variable to the task, but that really seems like such a waste to have to duplicate this information that the task should already have access to. Plus, everytime I add this PromotionTask to a stage I have to add in the repoURL.
Is there a better way that I'm missing to get all freight information?
Beta Was this translation helpful? Give feedback.
All reactions