'How to disable reading from configuration from bootstrap.yml in micronaut project?
I have a Micronauts application with bootstrap.yml configuration that wan to read-only while running in the k8 cluster, but now when the test running from the bitbucket pipeline it is reading from bootstrap and throwing an error, so I want to enable this bootstrap only when it is running from my k8 cluster, how can we configure like that?
Solution 1:[1]
I found the solution - we can create environment specific bootstrap.yml file like bootstrap-dev.yml, so it will work only in that specific environment.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Anoop Pulikkal |