Is there an annotation or something I can use to f...
# kubernetes
l
Is there an annotation or something I can use to force recreation of some resources?
b
@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
@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
@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.