And when I get the value of the `imageTag` variabl...
# getting-started
m
And when I get the value of the
imageTag
variable, I get
default value
instead of
not default value
. What am I missing? Thanks in advance!
l
I can't find many examples of this syntax out there. The only one I could find that said it was working wasn't using quotes around the keys, and put all the code on a single line. And I couldn't find any example that set a property that wasn't in the project's config. If you change to using
new Config()
instead of
new Config("foo")
(and removing the matching
foo:
) does it work? If not, try it like the examples here: https://github.com/pulumi/actions/issues/911
Copy code
config-map: |
  { foo:bar: { value: "not default value" } }
m
I am doing further debugging and I believe that it actually works as expected. I think something else is not working where this value is further used. I am investigating.
👍 1
b
Just a wild guess, but what is the name of your Pulumi project in
Pulumi.yaml
? Does the config key need to be prefixed with that?
m
Thanks Aaron. It was a much simpler problem – the value was overwritten elsewhere on top of the "default" logic we had. All sorted now.
TL;DR: Skill issue on my end 🤣