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
gorgeous-egg-16927
10/05/2022, 8:34 PM
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.
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.