Question: In a custom job stage in orca, how do you provide dynamic values for application, account? That is, say use the application in which the stage is used rather than hard-coded value?
- label: TSDestroyJob
application: opsmx
cloudProvider: kubernetes
credentials: target-aks-cluster
description: Stage for terraspin destroy operation
account: target-aks-cluster
type: customTSDestroyJobStage
waitForCompletion: true
application: opsmx
cloudProvider: kubernetes
credentials: target-aks-cluster
description: Stage for terraspin destroy operation
account: target-aks-cluster
type: customTSDestroyJobStage
waitForCompletion: true
Answer:
application: "${execution.application}"
works for using the stage in any application
For account, if you have it somewhere in exec context, then you can use it the same way.