Skip to content

Commit

Permalink
dont clear default mountOpts
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k committed Jan 11, 2024
1 parent fd2922d commit 17602e4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
4 changes: 3 additions & 1 deletion library/common/templates/app_functions/_storageEntry.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@
{{- $domain = $storage.smbConfig.domain | quote -}}
{{- $username = $storage.smbConfig.username | quote -}}
{{- $password = $storage.smbConfig.password | quote -}}
{{- $mountOpts = $storage.smbConfig.mountOptions -}}
{{- if $storage.smbConfig.mountOptions -}}
{{- $mountOpts = $storage.smbConfig.mountOptions -}}
{{- end -}}
{{- if $storage.smbConfig.size -}}
{{- $size = (printf "%vGi" $storage.smbConfig.size) -}}
{{- end -}}
Expand Down
Binary file modified library/ix-dev/test/syncthing/charts/common-1.2.8.tgz
Binary file not shown.
9 changes: 0 additions & 9 deletions library/ix-dev/test/syncthing/ci/basic-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@ syncthingStorage:
mountPath: /mnt/dir2
- type: pvc
mountPath: /mnt/dir3
- type: "smb-pv-pvc"
mountPath: /mnt/dir4
smbConfig:
server: "asdf"
share: "asdf"
username: "asdf"
password: "asdf"
domain: "asdf"


syncthingID:
user: 1001
Expand Down
2 changes: 1 addition & 1 deletion library/ix-dev/test/syncthing/templates/_persistence.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ persistence:

{{- range $idx, $storage := .Values.syncthingStorage.additionalStorages }}
{{- if eq $storage.type "smb-pv-pvc" -}}
{{- if $storage.migrationMode -}}
{{- if $storage.smbConfig.migrationMode -}}
{{- $_ := set $storage "readOnly" true -}}
{{- $_ := set $storage.smbConfig "mountOptions" (list
(dict "key" "noperm")
Expand Down

0 comments on commit 17602e4

Please sign in to comment.