is there an example laying around showing how to g...
# typescript
b
is there an example laying around showing how to get the hash of a secret that I create with a pulumi resources so I can use it as a label/annotation to roll my pod deployment when it's value is updated?
this is just base64 encoding a string, but the principal should be the same.
b
Hmm, yeah that gives me an idea thank you
s
likely you do not want to be putting an unencrypted secret value in your deployment annotation. it defeats the purpose of using the secret. Pulumi will automatically reroll the deployment pods when a secret is updated if it's connected in a certain way. I forget exactly but I think it's if you reference the secret object inside the deployment (e.g. through env var assignment) and the secret doesn't have an explicit name assigned or something like that
b
@steep-toddler-94095 I would not use a base64 encoded version of the secret in the deployment for those exact concerns.
I would have liked to believe that changing the secret's value would re-roll the pods but that is not happening in this case.
s
Oh yeah sorry i misinterpreted your original message!
b
I wonder if the failure to roll pods is due to using k8s helm release rather than a deployment spec natively in pulumi which limits this behavior