local-path-provisioner
local-path-provisioner copied to clipboard
Enhance helper Pod interface and configuration.
- Make the helper Pod receive only environment variables instead of args (this changes the interface in a non-backward compatible way but is simpler to use and potentially provides more backward compatibility in the future; #175).
- Adds the manager options
--pvc-annotation[-required]to pass through annotations from the PVC to the PV and to the helper Pod (#164). - Merge the helper Pod's
dataVolumeMount with the one provided with the template to be able to specifymountPropagationwithin the template (#165). - Rename
helperPod.yamltohelper-pod.yaml(more convenient and if we break sth we can break this as well). - Expose
--helper-pod-timeoutoption (#178). - Provide a basic usage example of the new features (
examples/cache). - Support forceful termination of the manager binary (2xctrl+c - since this is annoying during development otherwise; #179).
Closes #164. Closes #165. Closes #175. Closes #178. Relates to #179. Relates to #127.
@yasker please have a look
I just rebased this PR and resolved the conflicts.
Thanks for the contribution.
It looks you want to solve several issues or enhancements, so I would suggest to seperate this PR first, so we can focus on each problem you are resolving and it will be better for review.
@innobead okay. Now I created the following separate PRs:
- #176 for the
mountPropagationfeature (#165). - #177 to provide params as env vars to the helper Pod (backward compatible this time) (#175).
- #180 to forcefully terminate the manager on 2xCtrl+c (#179).
Once #176 and #177 are merged I'll rebase and refine this PR or create another PR for #164 and eventually add the example from this PR to it (using more compact setup/teardown scripts).
In regards to https://github.com/rancher/local-path-provisioner/pull/177 having been merged. I'm getting the following err:

In the local-path helper Pod. I deployed from https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml as the ReadMe describes - and I did so today.
Sure enough I haven't provided this VOL_DIR parameter anywhere. Where am I to do so? I can't seem to find it described anywhere.
Thank you very much.
In regards to #177 having been merged. I'm getting the following err:
In the local-path helper
Pod. I deployed from https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml as the ReadMe describes - and I did so today.Sure enough I haven't provided this
VOL_DIRparameter anywhere. Where am I to do so? I can't seem to find it described anywhere.Thank you very much.
Thanks for your finding.
The reason is that the image in master branch's deploy/local-path-storage.yaml is rancher/local-path-provisioner:v0.0.21 rather than rancher/local-path-provisioner:master-head. The image and deploy/local-path-storage.yaml are mismatched. We will fix it later.
You can please use v0.0.21 deploy manifest.
https://github.com/rancher/local-path-provisioner/tree/v0.0.21
Yeah! That made it work! Thank you very much @derekbit