https://pulumi.com logo
#general
Title
# general
a

adamant-apartment-27628

08/02/2023, 8:11 PM
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

little-cartoon-10569

08/02/2023, 8:51 PM
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

adamant-apartment-27628

08/02/2023, 9:47 PM
Ah ok! That's clear, so if my change is simply setting
protect: true
, I can do so safely.
Thank you!
2 Views