-
Notifications
You must be signed in to change notification settings - Fork 269
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
Fix subPath on datadir mounts (fixes #531) #538
base: main
Are you sure you want to change the base?
Conversation
- subPath now does not necessarily end on /data, in particular empty subPath possible for datadir on specific PVC - datadir persistence now does not depend on overall persistence anymore - bump .minor because old installs will need to add `/data` back to the subPath in the values file Signed-off-by: Marcel Wunderlich <wunderlich@uni-muenster.de>
Signed-off-by: Marcel Wunderlich <m_wund01@uni-muenster.de>
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.
I think an alternative that doesn't require a breaking change would be to add another value that specifies the path of the data folder inside the subpath and if that is empty it is just omitted.
Signed-off-by: Marcel Wunderlich <wunderlich@uni-muenster.de>
Signed-off-by: Marcel Wunderlich <m_wund01@uni-muenster.de>
Signed-off-by: Marcel Wunderlich <m_wund01@uni-muenster.de>
Signed-off-by: Jesse Hitch <jessebot@linux.com>
Signed-off-by: Jesse Hitch <jessebot@linux.com>
- name: nextcloud-data | ||
mountPath: {{ .Values.nextcloud.datadir }} | ||
subPath: {{ ternary "data" (printf "%s/data" .Values.persistence.nextcloudData.subPath) (empty .Values.persistence.nextcloudData.subPath) }} | ||
{{- else }} | ||
{{- if not (empty .Values.persistence.nextcloudData.subPath) }} |
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.
Please use
{{- with .Values.wasd }}
a: {{ . }}
{{- end }}
Instatt of
{{- if not (empty .Values.wasd) }}
a: {{ .Values.wasd }}
{{- end }}
/data
back to the subPath in the values filePull Request
Description of the change
Fix #531
The datadir had the subPath-Suffix "/data" forced upon it and it was impossible
Possible drawbacks
If someone actually used the a different volume in the past, they will now need to add
/data
to their subPath value.Applicable issues
/data
suffix #531Additional information
Checklist
Chart.yaml
according to semver.