Skip to content

[BUG] kompose convert ignoring services when profiles is set #1708

@axel7083

Description

@axel7083

Expected Behavior

We would expect a warning, or any kind of information when dealing with docker-compose file with profiled services.

And for example supporting an option like --profile

Actual Behavior

Nothing is output when using it. If we use -o output.yaml, the output.yaml file will be empty

Steps To Reproduce

kompose.exe convert -f .\docker-compose.yaml -o output.yaml

Kompose Version

latest

Docker-Compose file

version: "3.8"

services:
  redis:
    image: redis
    restart: always
    profiles: ["frontend-dev", "backend-dev", "ci"]
    ports:
      - 6379:6379
    healthcheck:
      test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
      interval: 2s
      timeout: 2s
      retries: 10
    command: redis-server /usr/local/etc/redis/redis.conf

Anything else?

No response

Metadata

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