Unable to upgrade local-path-provisioner chart
I'm trying to upgrade local-path-provisioner chart from v0.0.14
to v0.0.20
in order to upgrade flux (#879 (closed)).
The local-path-provisioner pod crashloops with:
Incorrect Usage: flag provided but not defined: -service-account-name
NAME:
time="2021-09-06T16:38:46Z" level=fatal msg="Critical error: flag provided but not defined: -service-account-name"
local-path-provisioner start -
The new chart uses this command in templates/deployment.yaml
which is incompatible with our old local-path-provisioner image:
command:
- local-path-provisioner
- --debug
- start
- --config
- /etc/config/config.json
- --service-account-name
- {{ template "local-path-provisioner.serviceAccountName" . }}
- --provisioner-name
- {{ template "local-path-provisioner.provisionerName" . }}
- --helper-image
{{- if .Values.privateRegistry.registryUrl }}
- "{{ .Values.privateRegistry.registryUrl }}/{{ .Values.helperImage.repository }}:{{ .Values.hel
{{- else }}
- "{{ .Values.helperImage.repository }}:{{ .Values.helperImage.tag }}"
{{- end }}
- --configmap-name
- {{ .Values.configmap.name }}
The local-path-provisioner binary from our custom image only has these parameters:
# local-path-provisioner start --help
NAME:
local-path-provisioner start -
USAGE:
local-path-provisioner start [command options] [arguments...]
OPTIONS:
--config value Required. Provisioner configuration file.
--provisioner-name value Required. Specify Provisioner name. (default: "rancher.io/local-path") [$PROVISIONER_NAME]
--namespace value Required. The namespace that Provisioner is running in (default: "local-path-storage") [$POD_NAMESPACE]
--helper-image value Required. The helper image used for create/delete directories on the host (default: "busybox") [$HELPER_IMAGE]