I’d like to know if its possible to use “create if...
# kubernetes
d
I’d like to know if its possible to use “create if not exists” semantics for a k8s secret using pulumi, has anyone done that?
g
You’re looking for this 🙂
d
Thanks - I will take a look
I took a look, the upsert looks promising. It appears to do “insert if does not exist, update if it does exist” - which I guess is your typical upsert 🙂. Do you know if there is a way to do “insert if does not exist, otherwise do nothing”?
g
I don’t know of a built-in way to do that, but you could write that logic either using the
pulumi-command
provider + kubectl, or with a language-specific k8s client library as part of your program.