openfaas / faas-cli

Official CLI for OpenFaaS
https://www.openfaas.com/
Other
794 stars 226 forks source link

Add support for openfaas.yaml in addition / instead of stack.yaml #665

Closed ad-si closed 3 years ago

ad-si commented 5 years ago

Haskell's Stackage (https://www.stackage.org/) has been using the stack.yaml file name for ages. While there is certainly no exclusive right for Stackage to use this name, it would be nonetheless cool if OpenFaaS used something more descriptive. How about using openfaas.yaml instead of -- or at least in addition to -- stack.yaml?

alexellis commented 5 years ago

Thank you for your suggestion.

Are you aware that you can use any filename with the -f or --yaml override?

alexellis commented 5 years ago

Moving to CLI repo

ad-si commented 5 years ago

Are you aware that you can use any filename with the -f or --yaml override?

Yes, but I'm a fan (maybe wrongfully) of convention over configuration. So I'd rather like to have good conventions and stick to them…

alexellis commented 5 years ago

That's our philosophy, however what you're asking for is starting to look a little bit like configuration. Our convention to date is stack.yml.

Hope this will keep you moving forward. I'm happy to monitor demand for this request

timbess commented 4 years ago

+1

Even other tools like Travis or Gitlab CI use .travis.yml and .gitlab.yml to prevent conflicts. I realize it's not hard to work around, but in principle it's a little weird to trample on a config file Haskell has used for years now.

alexellis commented 3 years ago

/lock: won't fix

alexellis commented 3 years ago

@ad-si you're welcome to rename your YAML files to openfaas.yaml and to run faas-cli up -f openfaas.yaml etc