This message was deleted.
# kubernetes
s
This message was deleted.
b
have you instantiated the config? e.g.
const x = new pulumi.Config();
a
Hi,Paul. Yes we use
Copy code
const config = new pulumi.Config(“pulumi”)
b
Drop the Pulumi part and try it - I don’t believe you need that
a
if Indo a console.log it returns the correct value so it reads the config directly
I think you should use ?? for numbers and bools, not || to provide default values
w
Yes - you are right about the gotcha here (if you see any Pulumi example code that has a bug due to this let us know). The
??
operator was just added to TypeScript 2 months ago, and is not widely known syntax yet - which is the primary reason it’s not used in examples yet. It is indeed closer to the desired semantics for this use case.
👍 1