pulumi-kubernetes icon indicating copy to clipboard operation
pulumi-kubernetes copied to clipboard

Add SSA patchForce option as provider config

Open lblackstone opened this issue 2 years ago • 1 comments

The Server-side Apply patchForce option is currently settable using an annotation per-resource, or with an environment variable. It may also be useful to expose as a provider config option so that it can be set on a per-stack basis.

Hmm... good question. I've had situations where I had a lot of conflicts and it was tedious to add the annotation per resource, in those cases I thought to myself that a config option would be really useful. That way I know just from looking at the stack config that we're set to force patch on conflict without relying on an env var that might be not be set (depending on the machine running pulumi up)

I guess it's a matter of preference, I prefer explicitly setting things in the stack config instead of relaying implicitly on the running environment. That way the entire project is self contained without any external arguments.

Originally posted by @HagaiBarel in https://github.com/pulumi/pulumi-kubernetes/issues/2259#issuecomment-1364643800

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

lblackstone avatar Jan 03 '23 17:01 lblackstone

I would also advocate for a provider config option, since it can be difficult to set an environment variable in some CI environments.

EronWright avatar Oct 16 '24 16:10 EronWright