"yaml: did not find expected key" with basic example #50
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello,
When I try to convert basic example from https://github.com/metal3d/katenary/blob/master/examples/basic/docker-compose.yaml, I obtain "yaml: did not find expected key" even if the chart is generated.
I guess the pb comes from these lines
katenary.io/mapenv: |
DB_HOST: {{ .Release.Name }}-database
I saw that indentation matters but I tried the example out of the box
My katenary version : 2.0.0-beta2
My kompose version : 1.25.0 (a70f80cc)
BR
Vincent
The problem is simply that you didn't encaplusate
"{{ .Release.Name }}-database"
with quotes. Brackets are valid JSON objects, and Katernary tries to load the "mapenv" label as YAML.Try with:
I just see that it's my example which is wrong... I will fix!
Thank you for your quick answer !