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.
s
steep-toddler-94095
11/01/2023, 4:22 PM
Sounds like the merge function does a shallow merge rather than a deep merge. Maybe you can create a github issue for an enhancement of one doesn’t always exist? And in the meantime you could work around this by merging the yaml yourself with C# code and passing in the values rather than using ValueYamlFiles
đź‘€ 1
s
swift-musician-28019
11/02/2023, 12:58 PM
I decided to merge the yaml files in c# and then and passing it in the
Values
. Thanks for your assistance!
p 2
d
damp-airline-38442
11/09/2023, 8:29 PM
Could one of you file a bug into pulumi-kubernetes for this (the shallow vs deep merge)?
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.