https://pulumi.com logo
Title
l

lemon-monkey-228

05/26/2021, 1:26 PM
Is there an annotation or something I can use to force recreation of some resources?
b

billowy-army-68599

05/26/2021, 3:44 PM
@lemon-monkey-228 a common practice here is to calculate the MD5 of the data you want to force a reload, and then set that as an env var in the Kubernetes deployment etc
l

lemon-monkey-228

05/26/2021, 8:36 PM
@glamorous-australia-21342 that’s what I was after. I thought I’d seen something like this before
🙌 1
@billowy-army-68599 I’ve done similar for the actual Kubernetes deploys (SHA or timestamp), but I was looking for Pulumi feature
Something that actually recreates the resource
b

bored-table-20691

05/28/2021, 3:55 AM
@billowy-army-68599 to give another example where I’ve found this to be necessary: I have an Job that happened to fail through its allowed retries, so it was baiscally stuck. If I did
pulumi up
, it would give an error from the kube API saying the job has failed too many times. The only recourse was to delete the job manually and run
pulumi refresh
to sync up the state.