Skip to content

Volumes path with underline was converted into dash #1094

Closed
@ChenTanyi

Description

When I convert a docker-compose.yml file, the volumes path with underline will change into dash.

Simple example:

version: "2"
services:
  hello:
    image: hello-world
    volumes:
      - ./hello_world:/hello_world

It will be converted into

      containers:
      - image: hello-world
        name: hello
        resources: {}
        volumeMounts:
        - mountPath: /hello-world
          name: hello-hostpath0
      restartPolicy: Always
      volumes:
      - hostPath:
          path: /Users/test/test/hello-world
        name: hello-hostpath0

All hello_world were converted into hello-world

kompose verion: 1.17.0 (HEAD), go get from master currently (1-15, 2019)
os: mac os 10.13.4

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions