redhat-developer / henge

This project has merged into Kompose.
https://github.com/skippbox/kompose
MIT License
14 stars 7 forks source link

Accept multiple ports in interactive mode #39

Closed surajssd closed 8 years ago

surajssd commented 8 years ago

Now user can specify multiple ports in interactive mode separated by space.

e.g.

[mariadb] No ports defined to send traffic to, no provider service will be created. Do you want to create a service? y/[n]: y
[mariadb] Note: Ports should of the form '8080' or '13306:3306' or '18888:8888 3306'
[mariadb] Enter ports: 3306 4455:4455 7788:7788

It will create ports in mariadb service like this

    ports:
    - name: 3306-tcp
      port: 3306
      targetPort: 3306
    - name: 4455-tcp
      port: 4455
      targetPort: 4455
    - name: 7788-tcp
      port: 7788
      targetPort: 7788

Fixes #30

kadel commented 8 years ago

:+1: LGTM