Question on the protected resource: <https://www.p...
# general
Question on the protected resource: 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
option set to
? Or is there a way to update PVCs to have
protected: true
without losing any data in them?
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.
Ah ok! That's clear, so if my change is simply setting
protect: true
, I can do so safely.
Thank you!