Bläddra i källkod

Enterprise/Syncthing - Additional envs (#1805)

Stavros Kois 1 år sedan
förälder
incheckning
b7aec161c7

+ 3 - 3
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"

+ 2 - 2
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:

BIN
library/ix-dev/enterprise/syncthing/charts/common-1.2.2.tgz


BIN
library/ix-dev/enterprise/syncthing/charts/common-1.2.3.tgz


+ 68 - 0
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

+ 7 - 0
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

+ 3 - 2
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