Closed dhruvbaldawa closed 2 years ago
@dhruvbaldawa thanks for the issue! This is expected behaviour now as DevSpace will resolve certain config paths later on during actual deployment to be able to resolve runtime variables. We could think about making an exception for devspace print
. In your case the problem seems to be that you are returning a map from the config expression, but an array is expected.
@FabianKramm I am returning an array from the config expression, the same .env file with v5.17.0
is rendering as expected and also deploying correctly. I have checked the command's output independently to also validate that. I purged the deployment and tried again and it is deploying correctly now.
However, my file is structured in this way
- name: API_SERVICE_URL
value: http://api.${DEV_NAMESPACE}.svc.cluster.local
and this would render as expected previously where value
would render like http://api.mynamespace.svc.cluster.local
but it does not happen anymore.
I have changed the variable to {devspace.namespace}
but it is still not working. Can you please help fix this too?
@dhruvbaldawa yes you are right, that is not working correctly, we'll fix that for the next release
@dhruvbaldawa thanks for the issue! This is expected behaviour now as DevSpace will resolve certain config paths later on during actual deployment to be able to resolve runtime variables. We could think about making an exception for
devspace print
. In your case the problem seems to be that you are returning a map from the config expression, but an array is expected.
@FabianKramm It seems it still doesn't work on devspace print
command. Every variable inside the helm values is not substituted.
Is this an expected behavior?
Thanks for the fast turnaround time on #1816. This issue is an extension of the same issue
What happened?
If I do
devspace print
, this is the output that I receiveI tried
devspace deploy
but it threw another errorWhat did you expect to happen instead?
The output I expect is:
How can we reproduce the bug? (as minimally and precisely as possible)
Add an expression on the
env
for component chart on devspace 5.18.0, and rundevspace print
The output for
devspace print
should look likeLocal Environment:
/kind bug