Add helmForceUpdate config option#6214
Conversation
HELM_FORCE_UPDATE and --helm-force flag
Signed-off-by: krzysztofczyz-da <krzysztof.czyz@digitalasset.com>
Signed-off-by: krzysztofczyz-da <krzysztof.czyz@digitalasset.com>
5db3163 to
d324390
Compare
Signed-off-by: krzysztofczyz-da <krzysztof.czyz@digitalasset.com>
|
Thanks!
Hmm so my understanding is that since we chain this after Pulumi, a Helm upgrade is (still) only triggered is something actually changed in the Pulumi state. And then you'd get a restart, true, but AFAICT we almost always get a restart when we change things even without force... I'd say let's just test it by merging and if it causes problems we can revert before it reaches MainNet. I.e., default the config thing to true.
So the main need is actually the long-running clusters (CILR, DevNet, TestNet, MainNet). These are managed by the operator, so AFAIU we'd need to deploy the operator once to enable this "feature"... and then it's enabled for all help operations.
We're trying to reduce the number of weird env vars; can we add this to the And let's do a CI scratchnet test before merging, maybe an upgrade test as this actually changes many things that are already deployed. |
There was a problem hiding this comment.
I actually don't think we need that extra cncluster feature tbh; assuming you add this to config.yaml, the "edit config.yaml and rerun" is a quite established flow by now.
|
I also suggest doing a basic "does it do what it should" test if you haven't already. If you're quick, you could just kubectl edit some deployment while the CI upgrade test is running (but before the upgrade step) to add some extra env var, and then confirm that the operator removed your manual changes again on the upgrade step. |
Signed-off-by: krzysztofczyz-da <krzysztof.czyz@digitalasset.com>
Restart != replace - i.e. imagine you have a change which cannot get applied to a statefulset. a replace would kill it and create a new one (which may or may not work). A restart would roll out the change pod-by-pod. Or to quote
This changes things - we won't need the cncluster thing then - removed 🫡
For sure, happily changed 😄
Lemme trigger that
Done - added to description 👌 |
|
/upgrade_test |
|
Deploy upgrade pipeline triggered for Commit 01f150020a369b675958353ca6bea52aceb39b54 in , please contact a Contributor to approve it in CircleCI: https://app.circleci.com/pipelines/github/DACH-NY/canton-network-internal/72616 |
HELM_FORCE_UPDATE and --helm-force flaghelmForceUpdate config option
|
Upgrade unfortunately failed due to GCP quota 😿 |
|
@krzysztofczyz-da AFAIU we should be in an OK place again w.r.t. scaling up scratchnet clusters... want to give this another try? |
Fixes #4940
Added a
helmForceUpdateconfig option (trueby default).Tested on scratchneta.
Test
cncluster pulumi cluster uphelmForceUpdatesetting tofalsecncluster pulumi cluster up