local-path-provisioner change default version to v0.0.19 and update config template (#7238)

* update local-path-storage config template to version v0.0.19

* changes local_path_provisioner image tag to v0.0.19

* removes copy paste example from rancher local-path-provisioner repo
This commit is contained in:
Sebastian Schmid 2021-02-03 15:50:28 +01:00 committed by GitHub
parent 699fbd64ab
commit 1f84d6344b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 1 deletions

View file

@ -26,7 +26,7 @@ local_path_provisioner_enabled: false
# local_path_provisioner_claim_root: /opt/local-path-provisioner/ # local_path_provisioner_claim_root: /opt/local-path-provisioner/
# local_path_provisioner_debug: false # local_path_provisioner_debug: false
# local_path_provisioner_image_repo: "rancher/local-path-provisioner" # local_path_provisioner_image_repo: "rancher/local-path-provisioner"
# local_path_provisioner_image_tag: "v0.0.14" # local_path_provisioner_image_tag: "v0.0.19"
# local_path_provisioner_helper_image_repo: "busybox" # local_path_provisioner_helper_image_repo: "busybox"
# local_path_provisioner_helper_image_tag: "latest" # local_path_provisioner_helper_image_tag: "latest"

View file

@ -14,3 +14,46 @@ data:
} }
] ]
} }
setup: |-
#!/bin/sh
while getopts "m:s:p:" opt
do
case $opt in
p)
absolutePath=$OPTARG
;;
s)
sizeInBytes=$OPTARG
;;
m)
volMode=$OPTARG
;;
esac
done
mkdir -m 0777 -p ${absolutePath}
teardown: |-
#!/bin/sh
while getopts "m:s:p:" opt
do
case $opt in
p)
absolutePath=$OPTARG
;;
s)
sizeInBytes=$OPTARG
;;
m)
volMode=$OPTARG
;;
esac
done
rm -rf ${absolutePath}
helperPod.yaml: |-
apiVersion: v1
kind: Pod
metadata:
name: helper-pod
spec:
containers:
- name: helper-pod
image: busybox