From 32942657ffd40acc00809e2bac967f7aadea4ca6 Mon Sep 17 00:00:00 2001 From: Oliver Simons Date: Sun, 28 Sep 2025 10:32:35 +0200 Subject: [PATCH] fix(longhorn): Convert default values from int to string (#40127) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** Flux seems to complain for default values provided as int: ``` Helm install failed for release longhorn-system/longhorn with chart longhorn@1.10.0: execution error at (longhorn/templates/default-setting.yaml:67:8): defaultSettings.* must be a string ``` for both `defaultReplicaCount` and `storageoverProvisioningPercentage` in the longhorn chart embedded into clustertool **โš™๏ธ Type of change** - [ ] โš™๏ธ Feature/App addition - [x] ๐Ÿช› Bugfix - [ ] โš ๏ธ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] ๐Ÿ”ƒ Refactor of current code - [ ] ๐Ÿ“œ Documentation Changes **๐Ÿงช How Has This Been Tested?** `clustertool init` yielded the `helm-release.yaml` with `int`s, and I had to manually convert them to strings in order to get longhorn to deploy. Versions: `clustertool==2.0.6` and `talos==1.11.1` **๐Ÿ“ƒ Notes:** Might be worth adding a test that covers this, though I'm not sure where to start. **โœ”๏ธ Checklist:** - [ ] โš–๏ธ My code follows the style guidelines of this project - [x] ๐Ÿ‘€ I have performed a self-review of my own code - [ ] #๏ธโƒฃ I have commented my code, particularly in hard-to-understand areas - [ ] ๐Ÿ“„ I have made changes to the documentation - [ ] ๐Ÿงช I have added tests to this description that prove my fix is effective or that my feature works - [ ] โฌ†๏ธ I increased versions for any altered app according to semantic versioning - [x] I made sure the title starts with `feat(chart-name):`, `fix(chart-name):`, `chore(chart-name):`, `docs(chart-name):` or `fix(docs):` **โž• App addition** If this PR is an app addition please make sure you have done the following. - [ ] ๐Ÿ–ผ๏ธ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --- .../generic/kubernetes/system/longhorn/app/helm-release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clustertool/embed/generic/kubernetes/system/longhorn/app/helm-release.yaml b/clustertool/embed/generic/kubernetes/system/longhorn/app/helm-release.yaml index 4d9c3455ab5..52a8f79c833 100644 --- a/clustertool/embed/generic/kubernetes/system/longhorn/app/helm-release.yaml +++ b/clustertool/embed/generic/kubernetes/system/longhorn/app/helm-release.yaml @@ -26,9 +26,9 @@ spec: values: defaultSettings: # Increase to 3 for a multi-node cluster - defaultReplicaCount: 1 + defaultReplicaCount: "1" # Overprovisioning might be needed when using volsync - storageOverProvisioningPercentage: 100000 + storageOverProvisioningPercentage: "100000" # v2DataEngine: true persistence: # Set to false to pick another CSI as default