NAS-123967 / 24.04 / add missing (optional) domain field, remove mountOptions and set default noperm (#1518)

* add missing (optional) domain field, remove mountOptions and set default `noperm`

* only add smb specific mount option on smb type
This commit is contained in:
Stavros Kois
2023-09-08 18:06:55 +03:00
committed by GitHub
parent a458c59c31
commit f5ce40542e
3 changed files with 10 additions and 27 deletions

View File

@@ -3,7 +3,7 @@ description: Syncthing is a continuous file synchronization program.
annotations:
title: Syncthing
type: application
version: 1.0.12
version: 1.0.13
apiVersion: v2
appVersion: '1.23.3'
kubeVersion: '>=1.16.0-0'

View File

@@ -213,6 +213,12 @@ questions:
type: string
show_if: [["type", "=", "smb-pv-pvc"]]
required: true
- variable: domain
label: Domain (Optional)
description: The domain for the SMB share.
schema:
type: string
show_if: [["type", "=", "smb-pv-pvc"]]
- variable: username
label: Username
description: The username for the SMB share.
@@ -237,27 +243,6 @@ questions:
required: true
min: 1
default: 1
- variable: mountOptions
label: Mount Options
description: Mount options for the SMB share.
schema:
type: list
show_if: [["type", "=", "smb-pv-pvc"]]
items:
- variable: mountOption
label: Mount Option
schema:
type: dict
attrs:
- variable: key
label: Key
schema:
type: string
required: true
- variable: value
label: Value
schema:
type: string
- variable: resources
group: Resources Configuration

View File

@@ -48,15 +48,13 @@ persistence:
hostPath: {{ $storage.hostPath | default "" }}
server: {{ $storage.server | default "" }}
share: {{ $storage.share | default "" }}
domain: {{ $storage.domain | default "" }}
username: {{ $storage.username | default "" }}
password: {{ $storage.password | default "" }}
size: {{ $size }}
{{- with $storage.mountOptions }}
{{- if eq $storage.type "smb-pv-pvc" }}
mountOptions:
{{- range $opt := . }}
- key: {{ $opt.key | default "" }}
value: {{ $opt.value | default "" }}
{{- end }}
- key: noperm
{{- end }}
targetSelector:
syncthing: