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
When you specify label arguments as a list in docker-compose.yml, you end up with them being cast to object notation incorrectly. I logged the transformed docker.compose.yaml in the deployments folder to confirm this:
@Harjot1Singh haven't considered that case - would be a nice improvement!
I'll try to update this once I have time.
In the mean time - PRs welcome as usual :)
Description
When you specify label arguments as a list in
docker-compose.yml
, you end up with them being cast to object notation incorrectly. I logged the transformeddocker.compose.yaml
in thedeployments
folder to confirm this:Minimal Test Case
Input:
Output:
Expected Output
You can see that the input labels are instead mapped to array indices, and it instead should be anything before the first
=
.Proposed Solution
When mapping docker-compose labels that are supplied as an array, first parse them into an object. Something like:
The text was updated successfully, but these errors were encountered: