swift-musician-28019
10/31/2023, 5:26 PMValueYamlFiles
to add these files like this:
ValueYamlFiles= new InputList<AssetOrArchive>
{
new FileAsset($"{appValuesPath}/values.yaml"),
new FileAsset($"{appValuesPath}/values.{projectEnvironment}.yaml")
}
Somehow only the last specified values.yaml is read and used for the Helm Release. Has anyone encountered a similar issue or has an idea how to solve this?steep-toddler-94095
11/01/2023, 4:17 AMswift-musician-28019
11/01/2023, 12:24 PMimage:
repository: some-repository
envVariables:
DOTNET_ENVIRONMENT: Staging
Kestrel__Endpoints__Http__Protocols: Http1AndHttp2
envSecrets:
ConnectionStrings: ...
ports:
- name: http
port: 80
- name: https
port: 443
- name: grpc
port: 5002
Here the environment specific `values.dev.yaml`:
envVariables:
App__SelfUrl: <https://some.dev.domain.com/>
Kestrel__Endpoints__Http__Url: <http://some.dev.domain.com/>
After some further tests I now found out this is a problem when you use the same key in both files (in this case envVariables
). My test suggest that if you use different keys the two files successfully get merged and a combination of both get's used for the Values in the Helm Release.steep-toddler-94095
11/01/2023, 4:22 PMswift-musician-28019
11/02/2023, 12:58 PMValues
. Thanks for your assistance!damp-airline-38442
11/09/2023, 8:29 PM