typokign / matrix-chart

Helm chart for deploying a Matrix homeserver stack
MIT License
88 stars 47 forks source link

Rolling out bridge shouldnt regenerate config #39

Open danjenkins opened 4 years ago

danjenkins commented 4 years ago

Right now, I think if you apply changes that only affect a bridge, OR need to restart a bridge using kubectl rollout restart deployment matrix-bridge-twitter for example.... it'll generate new config I think.... and the shared secrets wont be the same in the live version of synapse.

I think!

If the config exists, you shouldnt just go remake it? But then how do you deal with the issue of wanting to update the other config?

Jaykul commented 3 years ago

Yeah, I've been having this same problem. I've been gradually tweaking the configuration of the bridge, but even if I make changes in values.yaml and upgrade the whole chart, if the bridges start after synapse, I have to restart synapse in order to restore communication.

I've been trying to think of a way to avoid regenerating the registration.yaml because helm re-runs helpers.tpl every time and makes new secrets. Would it be enough to just not copy in the initcontainer, it if it already exists, or would we have to copy it in the opposite direction?