You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gives the following error
cannot patch "api-gateway" with kind Deployment: v1.Deployment.Spec: v1.DeploymentSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.Containers: []v1.Container: v1.Container.Env: []v1.EnvVar: v1.EnvVar.Value: ReadString: expects " or n, but found 2, error found in #10 byte of ...|,"value":2525}
devspace render gives the following output
name: MAIL_PORT
value: 2525
What did you expect to happen instead?
That the variable would be converted and inserted as a string
devspace render should output
name: MAIL_PORT
value: "2525"
How can we reproduce the bug? (as minimally and precisely as possible)
The text was updated successfully, but these errors were encountered:
rosen91
changed the title
Using non string vars in env does not convert to string
Using integer or boolean string vars in env does not convert to string
Apr 14, 2020
What happened?
Defining an integer or boolean variable using the following syntax
source: env
default: "2525"
And referencing it in the env part
value: "${GATEWAY_MAIL_PORT}"
Gives the following error
cannot patch "api-gateway" with kind Deployment: v1.Deployment.Spec: v1.DeploymentSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.Containers: []v1.Container: v1.Container.Env: []v1.EnvVar: v1.EnvVar.Value: ReadString: expects " or n, but found 2, error found in #10 byte of ...|,"value":2525}
devspace render gives the following output
value: 2525
What did you expect to happen instead?
That the variable would be converted and inserted as a string
devspace render should output
value: "2525"
How can we reproduce the bug? (as minimally and precisely as possible)
Local Environment:
Kubernetes Cluster:
Anything else we need to know?
Seems to be a common error, and solved via help pipe quote
https://helm.sh/docs/howto/charts_tips_and_tricks/#quote-strings-dont-quote-integers
/kind bug
The text was updated successfully, but these errors were encountered: