Enterprise/Syncthing - Additional envs (#1805)

This commit is contained in:
Stavros Kois
2023-11-28 23:49:55 +02:00
committed by GitHub
parent 9110a18eea
commit b7aec161c7
7 changed files with 83 additions and 7 deletions

View File

@@ -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"

View File

@@ -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:

View File

@@ -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

View File

@@ -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

View File

@@ -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