-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deployment: Adapt values to be quoted when installed in templates #358
Conversation
6fa0b52
to
e873974
Compare
I think the same problem is present for the |
@mirceanton @ardumont |
Namely the values 'workerThreads', 'deletionRetryCount' and 'provisionRetryCount'. There is some check in the main.go module which expects those to be a string so it can convert them into an integer. Without this, we cannot actually provide the configuration without hitting a conversion error. This should fix it.
e873974
to
5501eb4
Compare
Sure, done. Cheers, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you.
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [local-path-provisioner](https://togithub.com/rancher/local-path-provisioner) | patch | `v0.0.24` -> `v0.0.25` | --- ### Release Notes <details> <summary>rancher/local-path-provisioner (local-path-provisioner)</summary> ### [`v0.0.25`](https://togithub.com/rancher/local-path-provisioner/releases/tag/v0.0.25): Local Path Provisioner v0.0.25 [Compare Source](https://togithub.com/rancher/local-path-provisioner/compare/v0.0.24...v0.0.25) ##### What's Changed - feat - Node name annotation by [@​osherElm](https://togithub.com/osherElm) in [https://github.com/rancher/local-path-provisioner/pull/340](https://togithub.com/rancher/local-path-provisioner/pull/340) - Helm: add namespace by [@​sergelogvinov](https://togithub.com/sergelogvinov) in [https://github.com/rancher/local-path-provisioner/pull/325](https://togithub.com/rancher/local-path-provisioner/pull/325) - Add storageClass.volumeBindingMode value to helm chart by [@​anisimovdk](https://togithub.com/anisimovdk) in [https://github.com/rancher/local-path-provisioner/pull/347](https://togithub.com/rancher/local-path-provisioner/pull/347) - Helm: add pod annotation, securityContext blocks by [@​sergelogvinov](https://togithub.com/sergelogvinov) in [https://github.com/rancher/local-path-provisioner/pull/321](https://togithub.com/rancher/local-path-provisioner/pull/321) - Set default volume type of storage class from Helm chart by [@​nltimv](https://togithub.com/nltimv) in [https://github.com/rancher/local-path-provisioner/pull/357](https://togithub.com/rancher/local-path-provisioner/pull/357) - Constraint default RBAC permissions by [@​sbocinec](https://togithub.com/sbocinec) in [https://github.com/rancher/local-path-provisioner/pull/336](https://togithub.com/rancher/local-path-provisioner/pull/336) - Helm: add pod tolerations to the helper-pod by [@​sergelogvinov](https://togithub.com/sergelogvinov) in [https://github.com/rancher/local-path-provisioner/pull/322](https://togithub.com/rancher/local-path-provisioner/pull/322) - deployment: Adapt values to be quoted when installed in templates by [@​ardumont](https://togithub.com/ardumont) in [https://github.com/rancher/local-path-provisioner/pull/358](https://togithub.com/rancher/local-path-provisioner/pull/358) - Save the helper pod logs to the provisioner logs by [@​js185692](https://togithub.com/js185692) in [https://github.com/rancher/local-path-provisioner/pull/324](https://togithub.com/rancher/local-path-provisioner/pull/324) - Add ReadWriteOncePod support for NodePath volumes by [@​anothertobi](https://togithub.com/anothertobi) in [https://github.com/rancher/local-path-provisioner/pull/331](https://togithub.com/rancher/local-path-provisioner/pull/331) - feature: Add configuretion to run setup/teardown command in helper container instead of run with script by [@​name212](https://togithub.com/name212) in [https://github.com/rancher/local-path-provisioner/pull/360](https://togithub.com/rancher/local-path-provisioner/pull/360) - Helm: Add common labels value and update uninstall for helm 3 by [@​kevinzwang](https://togithub.com/kevinzwang) in [https://github.com/rancher/local-path-provisioner/pull/319](https://togithub.com/rancher/local-path-provisioner/pull/319) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy42MS40IiwidXBkYXRlZEluVmVyIjoiMzcuNjMuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: lumiere-bot <98047013+lumiere-bot[bot]@users.noreply.github.com>
(initial title: deployment: Adapt 'workerThreads' to be a string)
There is a check in the main.go module [1] which expects it to be a string so it can convert it into an integer. Without this, we cannot actually provide the configuration without hitting a conversion error. This should fix it.
Currently, we are working around it by provided a double quoted string "'8'".
[1]
local-path-provisioner/main.go
Lines 254 to 257 in 4d42c70