Sumit Manna
Sumit Manna

Reputation: 459

Multiple config file from Config Server in PCF

Config server supports reading yml files with the name {applicationname.yml}. But I have two yml files in my application.

a.yml
b.yml

Can I read both these yml files from config server using gitlab in PCF? I am using .net core 2.2 and steeltoe. Thanks in Advance

Upvotes: 0

Views: 536

Answers (1)

Tim
Tim

Reputation: 2707

Steeltoe largely relies on Config Server's logic for finding the backing files by specifying the app name, environment name and additional labels. There isn't currently a way to request additional arbitrary files, so you'd be limited to files following these patterns:

/{application}/{profile}[/{label}]
/{application}-{profile}.yml
/{label}/{application}-{profile}.yml
/{application}-{profile}.properties
/{label}/{application}-{profile}.properties

It's notable that application in this pattern represents both your application name and a generic application file for shared settings across multiple applications

Upvotes: 2

Related Questions