Question on the protected resource: <https://www.p...
# general
a
Question on the protected resource: https://www.pulumi.com/docs/concepts/options/protect/#resource-option-protect For existing PVCs, if I update the options to include
protected: true
will pulumi replace my old PVC -> all data is lost -> a new PVC will be created with the
protected
option set to
true
? Or is there a way to update PVCs to have
protected: true
without losing any data in them?
l
Not if that's the only change. Resources are replaced only if you change one of the resource fields marked with a red asterisk in the docs (or its name, but that's not really a replace). The protected flag isn't a resource field at all, it's a Pulumi opt.
a
Ah ok! That's clear, so if my change is simply setting
protect: true
, I can do so safely.
Thank you!