diff --git a/library/ix-dev/enterprise/syncthing/Chart.lock b/library/ix-dev/enterprise/syncthing/Chart.lock index e94118e79c..f74d9521ca 100644 --- a/library/ix-dev/enterprise/syncthing/Chart.lock +++ b/library/ix-dev/enterprise/syncthing/Chart.lock @@ -1,6 +1,6 @@ dependencies: - name: common repository: file://../../../common - version: 1.2.2 -digest: sha256:fb077cb81f6acecd5c9e6adc22a18e156f780cd78f27198cdb47810f95364b56 -generated: "2023-11-09T15:45:52.574563691+02:00" + version: 1.2.3 +digest: sha256:e6ff49b06bf5d4d159e505ae6d153f36cd46170bb519caf90462cd5caebfd0fb +generated: "2023-11-28T20:45:27.211765839+02:00" diff --git a/library/ix-dev/enterprise/syncthing/Chart.yaml b/library/ix-dev/enterprise/syncthing/Chart.yaml index 1327f583e4..bd77cb5511 100644 --- a/library/ix-dev/enterprise/syncthing/Chart.yaml +++ b/library/ix-dev/enterprise/syncthing/Chart.yaml @@ -3,7 +3,7 @@ description: Syncthing is a continuous file synchronization program. annotations: title: Syncthing type: application -version: 1.1.3 +version: 1.1.4 apiVersion: v2 appVersion: '1.23.3' kubeVersion: '>=1.16.0-0' @@ -14,7 +14,7 @@ maintainers: dependencies: - name: common repository: file://../../../common - version: 1.2.2 + version: 1.2.3 home: https://syncthing.net/ icon: https://media.sys.truenas.net/apps/syncthing/icons/icon.svg sources: diff --git a/library/ix-dev/enterprise/syncthing/charts/common-1.2.2.tgz b/library/ix-dev/enterprise/syncthing/charts/common-1.2.2.tgz deleted file mode 100644 index ee89a19a8f..0000000000 Binary files a/library/ix-dev/enterprise/syncthing/charts/common-1.2.2.tgz and /dev/null differ diff --git a/library/ix-dev/enterprise/syncthing/charts/common-1.2.3.tgz b/library/ix-dev/enterprise/syncthing/charts/common-1.2.3.tgz new file mode 100644 index 0000000000..176d1f849a Binary files /dev/null and b/library/ix-dev/enterprise/syncthing/charts/common-1.2.3.tgz differ diff --git a/library/ix-dev/enterprise/syncthing/questions.yaml b/library/ix-dev/enterprise/syncthing/questions.yaml index c0e934e069..2791454c3c 100644 --- a/library/ix-dev/enterprise/syncthing/questions.yaml +++ b/library/ix-dev/enterprise/syncthing/questions.yaml @@ -31,6 +31,74 @@ questions: $ref: - definitions/timezone + - variable: syncthingConfig + label: "" + group: Syncthing Configuration + schema: + type: dict + attrs: + # Boolean flags are currently + # not exposed to the user + - variable: natTraversal + label: NAT Traversal + schema: + type: boolean + default: false + hidden: true + - variable: localDiscovery + label: Local Discovery + schema: + type: boolean + default: false + hidden: true + - variable: globalDiscovery + label: Global Discovery + schema: + type: boolean + default: false + hidden: true + - variable: telemetry + label: Telemetry + schema: + type: boolean + default: false + hidden: true + - variable: relaying + label: Relaying + schema: + type: boolean + default: false + hidden: true + - variable: announceLANAddresses + label: Announce LAN Addresses + schema: + type: boolean + default: false + hidden: true + + - variable: additionalEnvs + label: Additional Environment Variables + description: Configure additional environment variables for Syncthing. + schema: + type: list + default: [] + items: + - variable: env + label: Environment Variable + schema: + type: dict + attrs: + - variable: name + label: Name + schema: + type: string + required: true + - variable: value + label: Value + schema: + type: string + required: true + - variable: syncthingID label: "" group: User and Group Configuration diff --git a/library/ix-dev/enterprise/syncthing/templates/_syncthing.tpl b/library/ix-dev/enterprise/syncthing/templates/_syncthing.tpl index be392f87be..246019c07c 100644 --- a/library/ix-dev/enterprise/syncthing/templates/_syncthing.tpl +++ b/library/ix-dev/enterprise/syncthing/templates/_syncthing.tpl @@ -40,6 +40,13 @@ workload: STNOUPGRADE: "true" fixedEnv: PUID: {{ .Values.syncthingID.user }} + {{ with .Values.syncthingConfig.additionalEnvs }} + envList: + {{ range $env := . }} + - name: {{ $env.name }} + value: {{ $env.value }} + {{ end }} + {{ end }} probes: liveness: enabled: true diff --git a/library/ix-dev/enterprise/syncthing/values.yaml b/library/ix-dev/enterprise/syncthing/values.yaml index dc73a39af6..3d52284153 100644 --- a/library/ix-dev/enterprise/syncthing/values.yaml +++ b/library/ix-dev/enterprise/syncthing/values.yaml @@ -8,9 +8,10 @@ resources: cpu: 4000m memory: 8Gi -# Currently not exposed in the UI -# But can be exposed in the future syncthingConfig: + additionalEnvs: [] + # Currently not exposed in the UI + # But can be exposed in the future natTraversal: false localDiscovery: false globalDiscovery: false