micronaut-projects / micronaut-core

Micronaut Application Framework
http://micronaut.io
Apache License 2.0
6.07k stars 1.07k forks source link

bootstrap.yml does not support environment specific file versions #3044

Closed recursivecodes closed 4 years ago

recursivecodes commented 4 years ago

Thanks for reporting an issue for Micronaut, please review the task list below before submitting the issue. Your issue report will be closed if the issue is incomplete and the below tasks not completed.

NOTE: If you are unsure about something and the issue is more of a question a better place to ask questions is on Stack Overflow (http://stackoverflow.com/tags/micronaut) or Gitter (https://gitter.im/micronautfw/). DO NOT use the issue tracker to ask questions.

Task List

Steps to Reproduce

  1. Create a project that uses bootstrap.yml
  2. Create an environment specific file such as bootstrap-development.yml
  3. Launch project for that environment: java -Dmicronaut.environments=development -jar

Expected Behaviour

The environment specific boostrap file should be loaded.

Actual Behaviour

The application ignores the bootstrap file.

Environment Information

Example Application

jameskleeh commented 4 years ago

This was resolved with 2.1.0 via https://github.com/micronaut-projects/micronaut-core/issues/2417

Ksnz commented 3 years ago

Actually it isn't resolved. I have a file bootstrap-k8s.yml that isn't loaded while running in Kubernetes with k8s env name.

jameskleeh commented 3 years ago

File a new issue with an example app

On Fri, Jul 16, 2021 at 7:45 AM Index @.***> wrote:

Actually it isn't resolved. I have a file bootstrap-k8s.yml that isn't loaded while running in Kubernetes with k8s env name.

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/micronaut-projects/micronaut-core/issues/3044#issuecomment-881387340, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMCVLJ2NZKTPEG6WANAZZLTYALVNANCNFSM4MFQX4FQ .

Ksnz commented 3 years ago

File a new issue with an example app On Fri, Jul 16, 2021 at 7:45 AM Index @.***> wrote: Actually it isn't resolved. I have a file bootstrap-k8s.yml that isn't loaded while running in Kubernetes with k8s env name. — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <#3044 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMCVLJ2NZKTPEG6WANAZZLTYALVNANCNFSM4MFQX4FQ .

I'm sorry. All works fine, but to load environment-specific bootstrap file you also have to create default bootstrap.yml I don't know is it bug or not and it's not a major issue for me now.