Giter Club home page Giter Club logo

Comments (8)

axel7083 avatar axel7083 commented on May 25, 2024 1

What if you use --profile test in your kompose command

from kompose.

cdrage avatar cdrage commented on May 25, 2024

@axel7083 @AhmedGrati

from kompose.

s33kers avatar s33kers commented on May 25, 2024

Yes, that helped, thanks. I was checking changelog between versions but wasn't aware of such change.

from kompose.

AhmedGrati avatar AhmedGrati commented on May 25, 2024

Thanks @s33kers for opening the issue and @axel7083 for the followup. I think that it should at least raise an error to make the user aware that something is missing.

from kompose.

AhmedGrati avatar AhmedGrati commented on May 25, 2024

After doing some investigations, it seems that compose-go/cli should raise an error when no profile is found, so it's not a behavior that is controlled by Kompose.

from kompose.

cdrage avatar cdrage commented on May 25, 2024

IMHO it is an error and it currently breaks functionality. kompose convert will not show any output if a profile is not found. Kompose should at least error when trying to convert.

from kompose.

s33kers avatar s33kers commented on May 25, 2024

Yes, I would agree with @cdrage as output now is not informative enough. I would say behavior should be same as with docker compose --profile printing no service selected (e.g. with docker-compose.yaml provided in a description). So something similar could be here 🤷

from kompose.

axel7083 avatar axel7083 commented on May 25, 2024

From my memories (need to be fact check) the library used for converting does not allow to know if nothing is output, we could probably some kind of work around to ensure something is produced

or

Parse before using the library, and check if some services have a profile set, and intersect with yhe given --profile arguments and produce warning if none matches or none are provided

PS: I do not have access to a computer until a few day, therefore I cannot help until then

from kompose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.