Anoop Pulikkal
Anoop Pulikkal

Reputation: 1

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?

Upvotes: 0

Views: 589

Answers (1)

Anoop Pulikkal
Anoop Pulikkal

Reputation: 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.

Upvotes: 0

Related Questions