mirror of
https://github.com/truenas/charts.git
synced 2026-04-05 03:39:20 +08:00
NAS-123851 / 24.04 / Add SMB PV/PVC to Syncthing - test train (#1499)
* make a syncthing copy under test train * add test catalog in CI * bump common * add smb option
This commit is contained in:
@@ -9,6 +9,7 @@ debug: false
|
||||
upgrade: true
|
||||
chart-dirs:
|
||||
- library/ix-dev/charts
|
||||
- library/ix-dev/test
|
||||
- library/ix-dev/community
|
||||
- library/ix-dev/enterprise
|
||||
excluded-charts:
|
||||
|
||||
@@ -8,6 +8,7 @@ check-version-increment: true
|
||||
debug: true
|
||||
chart-dirs:
|
||||
- library/ix-dev/charts
|
||||
- library/ix-dev/test
|
||||
- library/ix-dev/community
|
||||
- library/ix-dev/enterprise
|
||||
excluded-charts:
|
||||
|
||||
6
library/ix-dev/test/syncthing/Chart.lock
Normal file
6
library/ix-dev/test/syncthing/Chart.lock
Normal file
@@ -0,0 +1,6 @@
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: file://../../../common
|
||||
version: 1.1.1
|
||||
digest: sha256:a7dbe3e4d42dbcd4325776e5e01a1d630c7f185f79e7ebf22b1b9cc80f56eed7
|
||||
generated: "2023-09-04T19:34:56.105136152+03:00"
|
||||
27
library/ix-dev/test/syncthing/Chart.yaml
Normal file
27
library/ix-dev/test/syncthing/Chart.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
name: syncthing
|
||||
description: Syncthing is a continuous file synchronization program.
|
||||
annotations:
|
||||
title: Syncthing
|
||||
type: application
|
||||
version: 1.0.12
|
||||
apiVersion: v2
|
||||
appVersion: '1.23.3'
|
||||
kubeVersion: '>=1.16.0-0'
|
||||
maintainers:
|
||||
- name: truenas
|
||||
url: https://www.truenas.com/
|
||||
email: dev@ixsystems.com
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: file://../../../common
|
||||
version: 1.1.1
|
||||
home: https://syncthing.net/
|
||||
icon: https://syncthing.net/img/logo-horizontal.svg
|
||||
sources:
|
||||
- https://syncthing.net/
|
||||
- https://github.com/syncthing/syncthing
|
||||
- https://hub.docker.com/r/syncthing/syncthing
|
||||
- https://github.com/truenas/charts/tree/master/enterprise/syncthing
|
||||
keywords:
|
||||
- sync
|
||||
- file-sharing
|
||||
20
library/ix-dev/test/syncthing/README.md
Normal file
20
library/ix-dev/test/syncthing/README.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# Syncthing
|
||||
|
||||
[Syncthing](https://syncthing.net/) is a file synchronization program.
|
||||
|
||||
At each startup of the application, the following settings are applied:
|
||||
|
||||
- Disable automatic upgrades
|
||||
- Disable anonymous usage reporting
|
||||
- Disable NAT traversal
|
||||
- Disable global discovery
|
||||
- Disable local discovery
|
||||
- Disable relaying
|
||||
- Disable announcing LAN addresses
|
||||
|
||||
Additionally, the following defaults are set for new synthing "folders":
|
||||
|
||||
- Max total size of `xattr`: 10 MiB
|
||||
- Max size per `xattr`: 2 MiB
|
||||
- Enable `send` and `sync` of `xattr`
|
||||
- Enable `send` and `sync` of `ownership`
|
||||
20
library/ix-dev/test/syncthing/app-readme.md
Normal file
20
library/ix-dev/test/syncthing/app-readme.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# Syncthing
|
||||
|
||||
[Syncthing](https://syncthing.net/) is a file synchronization program.
|
||||
|
||||
At each startup of the application, the following settings are applied:
|
||||
|
||||
- Disable automatic upgrades
|
||||
- Disable anonymous usage reporting
|
||||
- Disable NAT traversal
|
||||
- Disable global discovery
|
||||
- Disable local discovery
|
||||
- Disable relaying
|
||||
- Disable announcing LAN addresses
|
||||
|
||||
Additionally, the following defaults are set for new synthing "folders":
|
||||
|
||||
- Max total size of `xattr`: 10 MiB
|
||||
- Max size per `xattr`: 2 MiB
|
||||
- Enable `send` and `sync` of `xattr`
|
||||
- Enable `send` and `sync` of `ownership`
|
||||
BIN
library/ix-dev/test/syncthing/charts/common-1.1.1.tgz
Normal file
BIN
library/ix-dev/test/syncthing/charts/common-1.1.1.tgz
Normal file
Binary file not shown.
@@ -0,0 +1,24 @@
|
||||
syncthingStorage:
|
||||
home:
|
||||
type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Namespace }}/home
|
||||
additionalStorages:
|
||||
- type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Namespace }}/dir1
|
||||
mountPath: /mnt/dir1
|
||||
- type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Namespace }}/dir2
|
||||
mountPath: /mnt/dir2
|
||||
- type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Namespace }}/dir3
|
||||
mountPath: /mnt/dir3
|
||||
|
||||
syncthingID:
|
||||
user: 1001
|
||||
group: 1001
|
||||
|
||||
syncthingNetwork:
|
||||
hostNetwork: false
|
||||
localDiscoveryPort: 31027
|
||||
tcpPort: 32000
|
||||
quicPort: 32000
|
||||
18
library/ix-dev/test/syncthing/ci/basic-values.yaml
Normal file
18
library/ix-dev/test/syncthing/ci/basic-values.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
syncthingStorage:
|
||||
home:
|
||||
type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Namespace }}/home
|
||||
additionalStorages:
|
||||
- type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Namespace }}/dir1
|
||||
mountPath: /mnt/dir1
|
||||
- type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Namespace }}/dir2
|
||||
mountPath: /mnt/dir2
|
||||
- type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Namespace }}/dir3
|
||||
mountPath: /mnt/dir3
|
||||
|
||||
syncthingID:
|
||||
user: 1001
|
||||
group: 1001
|
||||
112
library/ix-dev/test/syncthing/ci/https-no-hostnet-values.yaml
Normal file
112
library/ix-dev/test/syncthing/ci/https-no-hostnet-values.yaml
Normal file
@@ -0,0 +1,112 @@
|
||||
syncthingStorage:
|
||||
home:
|
||||
type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Namespace }}/home
|
||||
additionalStorages:
|
||||
- type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Namespace }}/dir1
|
||||
mountPath: /mnt/dir1
|
||||
- type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Namespace }}/dir2
|
||||
mountPath: /mnt/dir2
|
||||
- type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Namespace }}/dir3
|
||||
mountPath: /mnt/dir3
|
||||
|
||||
syncthingID:
|
||||
user: 568
|
||||
group: 568
|
||||
|
||||
syncthingNetwork:
|
||||
certificateID: 1
|
||||
hostNetwork: false
|
||||
localDiscoveryPort: 31027
|
||||
tcpPort: 32000
|
||||
quicPort: 32000
|
||||
|
||||
ixCertificates:
|
||||
"1":
|
||||
certificate: |
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIEdjCCA16gAwIBAgIDYFMYMA0GCSqGSIb3DQEBCwUAMGwxDDAKBgNVBAMMA2Fz
|
||||
ZDELMAkGA1UEBhMCVVMxDTALBgNVBAgMBGFzZGYxCzAJBgNVBAcMAmFmMQ0wCwYD
|
||||
VQQKDARhc2RmMQwwCgYDVQQLDANhc2QxFjAUBgkqhkiG9w0BCQEWB2FAYS5jb20w
|
||||
HhcNMjEwODMwMjMyMzU0WhcNMjMxMjAzMjMyMzU0WjBuMQswCQYDVQQDDAJhZDEL
|
||||
MAkGA1UEBhMCVVMxDTALBgNVBAgMBGFzZGYxDTALBgNVBAcMBGFzZGYxDTALBgNV
|
||||
BAoMBGFkc2YxDTALBgNVBAsMBGFzZGYxFjAUBgkqhkiG9w0BCQEWB2FAYS5jb20w
|
||||
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC7+1xOHRQyOnQTHFcrdasX
|
||||
Zl0gzutVlA890a1wiQpdD5dOtCLo7+eqVYjqVKo9W8RUIArXWmBu/AbkH7oVFWC1
|
||||
P973W1+ArF5sA70f7BZgqRKJTIisuIFIlRETgfnP2pfQmHRZtGaIJRZI4vQCdYgW
|
||||
2g0KOvvNcZJCVq1OrhKiNiY1bWCp66DGg0ic6OEkZFHTm745zUNQaf2dNgsxKU0H
|
||||
PGjVLJI//yrRF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EL
|
||||
MAkGA1UEBwwCYWYxDTALBgNVBAoMBGFzZGYxDDAKBgNVBAsMA2FzZDEWMBQGCSqG
|
||||
SIb3DQEJARYHYUBhLmNvbYIDYFMXMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEF
|
||||
BQcDAjAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZIhvcNAQELBQADggEBAKEocOmVuWlr
|
||||
zegtKYMe8NhHIkFY9oVn5ym6RHNOJpPH4QF8XYC3Z5+iC5yGh4P/jVe/4I4SF6Ql
|
||||
PtofU0jNq5vzapt/y+m008eXqPQFmoUOvu+JavoRVcRx2LIP5AgBA1mF56CSREsX
|
||||
TkuJAA9IUQ8EjnmAoAeKINuPaKxGDuU8BGCMqr/qd564MKNf9XYL+Fb2rlkA0O2d
|
||||
2No34DQLgqSmST/LAvPM7Cbp6knYgnKmGr1nETCXasg1cueHLnWWTvps2HiPp2D/
|
||||
+Fq0uqcZLu4Mdo0CPs4e5sHRyldEnRSKh0DVLprq9zr/GMipmPLJUsT5Jed3sj0w
|
||||
M7Y3vwxshpo=
|
||||
-----END CERTIFICATE-----
|
||||
privatekey: |
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC7+1xOHRQyOnQT
|
||||
HFcrdasXZl0gzutVlA890a1wiQpdD5dOtCLo7+eqVYjqVKo9W8RUIArXWmBu/Abk
|
||||
H7oVFWC1P973W1+ArF5sA70f7BZgqRKJTIisuIFIlRETgfnP2pfQmHRZtGaIJRZI
|
||||
4vQCdYgW2g0KOvvNcZJCVq1OrhKiNiY1bWCp66DGg0ic6OEkZFHTm745zUNQaf2d
|
||||
NgsxKU0HPGjVLJI//yrRFAOSBUqgD4c50krnMF7fU/Fqh+UyOu8t6Y/HsySh3urB
|
||||
+Zie331tAzV6QV39KKxRflNx/yuWrtIEslGTm+xHKoCYJEk/nZ3mX8Y5hG6wWAb7
|
||||
A/FuDVg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9YdO3cOTc6lw/3+hjypvZBRYo+/4jUthbu96E+S
|
||||
dtOzehGZMmDvN0uSzupSi3ZOgkAAUFpyuIKickMCgYAId0PCRjonO2thn/R0rZ7P
|
||||
//L852uyzYhXKw5/fjFGhQ6LbaLgIRFaCZ0L2809u0HFnNvJjHv4AKP6j+vFQYYY
|
||||
qQ+66XnfsA9G/bu4MDS9AX83iahD9IdLXQAy8I19prAbpVumKegPbMnNYNB/TYEc
|
||||
3G15AKCXo7jjOUtHY01DCQ==
|
||||
-----END PRIVATE KEY-----
|
||||
109
library/ix-dev/test/syncthing/ci/https-values.yaml
Normal file
109
library/ix-dev/test/syncthing/ci/https-values.yaml
Normal file
@@ -0,0 +1,109 @@
|
||||
syncthingStorage:
|
||||
home:
|
||||
type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Namespace }}/home
|
||||
additionalStorages:
|
||||
- type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Namespace }}/dir1
|
||||
mountPath: /mnt/dir1
|
||||
- type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Namespace }}/dir2
|
||||
mountPath: /mnt/dir2
|
||||
- type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Namespace }}/dir3
|
||||
mountPath: /mnt/dir3
|
||||
|
||||
syncthingID:
|
||||
user: 568
|
||||
group: 568
|
||||
|
||||
syncthingNetwork:
|
||||
certificateID: 1
|
||||
hostNetwork: true
|
||||
|
||||
ixCertificates:
|
||||
"1":
|
||||
certificate: |
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIEdjCCA16gAwIBAgIDYFMYMA0GCSqGSIb3DQEBCwUAMGwxDDAKBgNVBAMMA2Fz
|
||||
ZDELMAkGA1UEBhMCVVMxDTALBgNVBAgMBGFzZGYxCzAJBgNVBAcMAmFmMQ0wCwYD
|
||||
VQQKDARhc2RmMQwwCgYDVQQLDANhc2QxFjAUBgkqhkiG9w0BCQEWB2FAYS5jb20w
|
||||
HhcNMjEwODMwMjMyMzU0WhcNMjM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CERTIFICATE-----
|
||||
privatekey: |
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC7+1xOHRQyOnQT
|
||||
HFcrdasXZl0gzutVlA890a1wiQpdD5dOtCLo7+eqVYjqVKo9W8RUIArXWmBu/Abk
|
||||
H7oVFWC1P973W1+ArF5sA70f7BZgqRKJTIisuIFIlRETgfnP2pfQmHRZtGaIJRZI
|
||||
4vQCdYgW2g0KOvvNcZJCVq1OrhKiNiY1bWCp66DGg0ic6OEkZFHTm745zUNQaf2d
|
||||
NgsxKU0HPGjVLJI//yrRFAOSBUqgD4c50krnMF7fU/Fqh+UyOu8t6Y/HsySh3urB
|
||||
+Zie331tAzV6QV39KKxRflNx/yuWrtIEslGTm+xHKoCYJEk/nZ3mX8Y5hG6wWAb7
|
||||
A/FuDVg3AgMBAAECggEAapt30rj9DitGTtxAt13pJMEhyYxvvD3WkvmJwguF/Bbu
|
||||
eW0Ba1c668fMeRCA54FWi1sMqusPS4HUqqUvk+tmyAOsAF4qgD/A4MMSC7uJSVI5
|
||||
N/JWhJWyhCY94/FPakiO1nbPbVw41bcqtzU2qvparpME2CtxSCbDiqm7aaag3Kqe
|
||||
EF0fGSUdZ+TYl9JM05+eIyiX+UY19Fg0OjTHMn8nGpxcNTfDBdQ68TKvdo/dtIKL
|
||||
PLKzJUNNdM8odC4CvQtfGMqaslwZwXkiOl5VJcW21ncj/Y0ngEMKeD/i65ZoqGdR
|
||||
0FKCQYEAGtM2FvJcZQ92Wsw7yj2bK2MSegVUyLK32QKBgQDe8syVCepPzRsfjfxA
|
||||
6TZlWcGuTZLhwIx97Ktw3VcQ1f4rLoEYlv0xC2VWBORpzIsJo4I/OLmgp8a+Ga8z
|
||||
FkVRnq90dV3t4NP9uJlHgcODHnOardC2UUka4olBSCG6zmK4Jxi34lOxhGRkshOo
|
||||
L4IBeOIB5g+ZrEEXkzfYJHESRQKBgQDX2YhFhGIrT8BAnC5BbXbhm8h6Bhjz8DYL
|
||||
d+qhVJjef7L/aJxViU0hX9Ba2O8CLK3FZeREFE3hJPiJ4TZSlN4evxs5p+bbNDcA
|
||||
0mhRI/o3X4ac6IxdRebyYnCOB/Cu94/MzppcZcotlCekKNike7eorCcX4Qavm7Pu
|
||||
MUuQ+ifmSwKBgEnchoqZzlbBzMqXb4rRuIO7SL9GU/MWp3TQg7vQmJerTZlgvsQ2
|
||||
wYsOC3SECmhCq4117iCj2luvOdihCboTFsQDnn0mpQe6BIF6Ns3J38wAuqv0CcFd
|
||||
DKsrge1uyD3rQilgSoAhKzkUc24o0PpXQurZ8YZPgbuXpbj5vPaOnCdBAoGACYc7
|
||||
wb3XS4wos3FxhUfcwJbM4b4VKeeHqzfu7pI6cU/3ydiHVitKcVe2bdw3qMPqI9Wc
|
||||
nvi6e17Tbdq4OCsEJx1OiVwFD9YdO3cOTc6lw/3+hjypvZBRYo+/4jUthbu96E+S
|
||||
dtOzehGZMmDvN0uSzupSi3ZOgkAAUFpyuIKickMCgYAId0PCRjonO2thn/R0rZ7P
|
||||
//L852uyzYhXKw5/fjFGhQ6LbaLgIRFaCZ0L2809u0HFnNvJjHv4AKP6j+vFQYYY
|
||||
qQ+66XnfsA9G/bu4MDS9AX83iahD9IdLXQAy8I19prAbpVumKegPbMnNYNB/TYEc
|
||||
3G15AKCXo7jjOUtHY01DCQ==
|
||||
-----END PRIVATE KEY-----
|
||||
8
library/ix-dev/test/syncthing/item.yaml
Normal file
8
library/ix-dev/test/syncthing/item.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
icon_url: https://syncthing.net/img/logo-horizontal.svg
|
||||
categories:
|
||||
- storage
|
||||
screenshots:
|
||||
- https://syncthing.net/img/screenshot.png
|
||||
tags:
|
||||
- sync
|
||||
- file-sharing
|
||||
22
library/ix-dev/test/syncthing/metadata.yaml
Normal file
22
library/ix-dev/test/syncthing/metadata.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
runAsContext:
|
||||
- userName: root
|
||||
groupName: root
|
||||
gid: 0
|
||||
uid: 0
|
||||
description: Syncthing runs as root and starts the syncthing process as a non-root user.
|
||||
capabilities:
|
||||
- name: CHOWN
|
||||
description: Syncthing is able to chown files.
|
||||
- name: DAC_OVERRIDE
|
||||
description: Syncthing is able to bypass permission checks.
|
||||
- name: FOWNER
|
||||
description: Syncthing is able bypass permission checks for it's sub-processes.
|
||||
- name: SETUID
|
||||
description: Syncthing is able to set user ID for it's sub-processes.
|
||||
- name: SETGID
|
||||
description: Syncthing is able to set group ID for it's sub-processes.
|
||||
- name: SETPCAP
|
||||
description: Syncthing is able to set process capabilities.
|
||||
- name: SETFCAP
|
||||
description: Syncthing is able to set file capabilities.
|
||||
hostMounts: []
|
||||
301
library/ix-dev/test/syncthing/questions.yaml
Normal file
301
library/ix-dev/test/syncthing/questions.yaml
Normal file
@@ -0,0 +1,301 @@
|
||||
groups:
|
||||
- name: Syncthing Configuration
|
||||
description: Configure Syncthing
|
||||
- name: User and Group Configuration
|
||||
description: Configure User and Group for Syncthing
|
||||
- name: Network Configuration
|
||||
description: Configure Network for Syncthing
|
||||
- name: Storage Configuration
|
||||
description: Configure Storage for Syncthing
|
||||
- name: Resources Configuration
|
||||
description: Configure Resources for Syncthing
|
||||
|
||||
portals:
|
||||
web_portal:
|
||||
protocols:
|
||||
- "$kubernetes-resource_configmap_portal_protocol"
|
||||
host:
|
||||
- "$kubernetes-resource_configmap_portal_host"
|
||||
ports:
|
||||
- "$kubernetes-resource_configmap_portal_port"
|
||||
path: "$kubernetes-resource_configmap_portal_path"
|
||||
|
||||
questions:
|
||||
- variable: TZ
|
||||
group: Syncthing Configuration
|
||||
label: Timezone
|
||||
schema:
|
||||
type: string
|
||||
default: Etc/UTC
|
||||
required: true
|
||||
$ref:
|
||||
- definitions/timezone
|
||||
|
||||
- variable: syncthingID
|
||||
label: ""
|
||||
group: User and Group Configuration
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: user
|
||||
label: User ID
|
||||
description: The user id that Syncthing files will be owned by.
|
||||
schema:
|
||||
type: int
|
||||
min: 568
|
||||
default: 568
|
||||
immutable: true
|
||||
required: true
|
||||
- variable: group
|
||||
label: Group ID
|
||||
description: The group id that Syncthing files will be owned by.
|
||||
schema:
|
||||
type: int
|
||||
min: 568
|
||||
default: 568
|
||||
immutable: true
|
||||
required: true
|
||||
|
||||
- variable: syncthingNetwork
|
||||
label: ""
|
||||
group: Network Configuration
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: hostNetwork
|
||||
label: Host Network
|
||||
description: |
|
||||
Bind to the host network.</br></br>
|
||||
If this is disabled, you will need to add your local networks in CIDR format to the Syncthing WebUI.</br>
|
||||
In the Syncthing WebUI, go to Advanced Settings > Options > Always Local Nets</br>
|
||||
Separate each CIDR network with a comma.</br>
|
||||
Example: 192.168.0.0/24,192.168.1.0/24
|
||||
schema:
|
||||
type: boolean
|
||||
default: true
|
||||
- variable: webPort
|
||||
label: Web Port
|
||||
description: The port for the Syncthing WebUI.
|
||||
schema:
|
||||
type: int
|
||||
default: 31000
|
||||
min: 9000
|
||||
max: 65535
|
||||
required: true
|
||||
- variable: tcpPort
|
||||
label: TCP Port (File Transfers)
|
||||
description: The TCP port for Syncthing transfers.
|
||||
schema:
|
||||
type: int
|
||||
show_if: [["hostNetwork", "=", false]]
|
||||
default: 22000
|
||||
min: 9000
|
||||
max: 65535
|
||||
required: true
|
||||
- variable: quicPort
|
||||
label: QUIC (UDP) Port (File Transfers)
|
||||
description: The QUIC (UDP) port for Syncthing transfers.
|
||||
schema:
|
||||
type: int
|
||||
show_if: [["hostNetwork", "=", false]]
|
||||
default: 22000
|
||||
min: 9000
|
||||
max: 65535
|
||||
required: true
|
||||
- variable: certificateID
|
||||
label: Certificate
|
||||
description: The certificate to use for Syncthing GUI.
|
||||
schema:
|
||||
type: int
|
||||
"null": true
|
||||
$ref:
|
||||
- "definitions/certificate"
|
||||
|
||||
- variable: syncthingStorage
|
||||
label: ""
|
||||
group: Storage Configuration
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: home
|
||||
label: Syncthing Home Storage
|
||||
description: The path to store Syncthing Home Directory.
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: type
|
||||
label: Type
|
||||
description: |
|
||||
ixVolume: Is dataset created automatically by the system.</br>
|
||||
Host Path: Is a path that already exists on the system.
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
default: "ixVolume"
|
||||
enum:
|
||||
- value: "hostPath"
|
||||
description: Host Path (Path that already exists on the system)
|
||||
- value: "ixVolume"
|
||||
description: ixVolume (Dataset created automatically by the system)
|
||||
- variable: datasetName
|
||||
label: Dataset Name
|
||||
schema:
|
||||
type: string
|
||||
show_if: [["type", "=", "ixVolume"]]
|
||||
required: true
|
||||
hidden: true
|
||||
immutable: true
|
||||
default: "home"
|
||||
$ref:
|
||||
- "normalize/ixVolume"
|
||||
- variable: hostPath
|
||||
label: Host Path
|
||||
schema:
|
||||
type: hostpath
|
||||
show_if: [["type", "=", "hostPath"]]
|
||||
immutable: true
|
||||
required: true
|
||||
|
||||
- variable: additionalStorages
|
||||
label: Additional Storage
|
||||
description: Additional storage for Syncthing.
|
||||
schema:
|
||||
type: list
|
||||
required: true
|
||||
empty: false
|
||||
default:
|
||||
- type: "hostPath"
|
||||
mountPath: "/data1"
|
||||
hostPath": ""
|
||||
items:
|
||||
- variable: storageEntry
|
||||
label: Storage Entry
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: type
|
||||
label: Type
|
||||
description: |
|
||||
Host Path: Is a path that already exists on the system.
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
default: "hostPath"
|
||||
enum:
|
||||
- value: "hostPath"
|
||||
description: Host Path (Path that already exists on the system)
|
||||
- value: "smb-pv-pvc"
|
||||
description: SMB Share (Mounts a persistent volume claim to a SMB share)
|
||||
- variable: mountPath
|
||||
label: Mount Path
|
||||
description: The path inside the container to mount the storage.
|
||||
schema:
|
||||
type: path
|
||||
required: true
|
||||
- variable: hostPath
|
||||
label: Host Path
|
||||
description: The host path to use for storage.
|
||||
schema:
|
||||
type: hostpath
|
||||
show_if: [["type", "=", "hostPath"]]
|
||||
required: true
|
||||
- variable: server
|
||||
label: Server
|
||||
description: The server for the SMB share.
|
||||
schema:
|
||||
type: string
|
||||
show_if: [["type", "=", "smb-pv-pvc"]]
|
||||
required: true
|
||||
- variable: share
|
||||
label: Share
|
||||
description: The share name for the SMB share.
|
||||
schema:
|
||||
type: string
|
||||
show_if: [["type", "=", "smb-pv-pvc"]]
|
||||
required: true
|
||||
- variable: username
|
||||
label: Username
|
||||
description: The username for the SMB share.
|
||||
schema:
|
||||
type: string
|
||||
show_if: [["type", "=", "smb-pv-pvc"]]
|
||||
required: true
|
||||
- variable: password
|
||||
label: Password
|
||||
description: The password for the SMB share.
|
||||
schema:
|
||||
type: string
|
||||
show_if: [["type", "=", "smb-pv-pvc"]]
|
||||
required: true
|
||||
private: true
|
||||
- variable: size
|
||||
label: Size (in Gi)
|
||||
description: The size of the volume quota.
|
||||
schema:
|
||||
type: int
|
||||
show_if: [["type", "=", "smb-pv-pvc"]]
|
||||
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
|
||||
label: ""
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: limits
|
||||
label: Limits
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: cpu
|
||||
label: CPU
|
||||
description: CPU limit for Syncthing.
|
||||
schema:
|
||||
type: string
|
||||
max_length: 6
|
||||
valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
|
||||
valid_chars_error: |
|
||||
Valid CPU limit formats are</br>
|
||||
- Plain Integer - eg. 1</br>
|
||||
- Float - eg. 0.5</br>
|
||||
- Milicpu - eg. 500m
|
||||
default: "4000m"
|
||||
required: true
|
||||
- variable: memory
|
||||
label: Memory
|
||||
description: Memory limit for Syncthing.
|
||||
schema:
|
||||
type: string
|
||||
max_length: 12
|
||||
valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
|
||||
valid_chars_error: |
|
||||
Valid Memory limit formats are</br>
|
||||
- Suffixed with E/P/T/G/M/K - eg. 1G</br>
|
||||
- Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
|
||||
- Plain Integer in bytes - eg. 1024</br>
|
||||
- Exponent - eg. 134e6
|
||||
default: "8Gi"
|
||||
required: true
|
||||
1
library/ix-dev/test/syncthing/templates/NOTES.txt
Normal file
1
library/ix-dev/test/syncthing/templates/NOTES.txt
Normal file
@@ -0,0 +1 @@
|
||||
{{ include "ix.v1.common.lib.chart.notes" $ }}
|
||||
41
library/ix-dev/test/syncthing/templates/_certContainer.tpl
Normal file
41
library/ix-dev/test/syncthing/templates/_certContainer.tpl
Normal file
@@ -0,0 +1,41 @@
|
||||
{{- define "syncthing.certContainer" -}}
|
||||
01-certs:
|
||||
enabled: true
|
||||
type: init
|
||||
imageSelector: image
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
runAsGroup: 0
|
||||
runAsNonRoot: false
|
||||
readOnlyRootFilesystem: false
|
||||
allowPrivilegeEscalation: true
|
||||
capabilities:
|
||||
add:
|
||||
- FOWNER
|
||||
- DAC_OVERRIDE
|
||||
- CHOWN
|
||||
- SETUID
|
||||
- SETGID
|
||||
- SETFCAP
|
||||
- SETPCAP
|
||||
fixedEnv:
|
||||
PUID: {{ .Values.syncthingID.user }}
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- |
|
||||
#!/bin/sh
|
||||
set -e
|
||||
configDir=/var/syncthing/config
|
||||
# Copy certificates, so that syncthing can use them
|
||||
# If we mount the certificates directly, syncthing will not start, as it tries
|
||||
# to chmod the whole directory and fails, because the secret is read-only
|
||||
if [ ! -d "$configDir" ]; then
|
||||
mkdir -p "$configDir"
|
||||
chown -R "$PUID:$PGID" "$configDir"
|
||||
fi
|
||||
cp /certs/https-key.pem "$configDir/https-key.pem"
|
||||
cp /certs/https-cert.pem "$configDir/https-cert.pem"
|
||||
chown "$PUID:$PGID" "$configDir/https-key.pem"
|
||||
chown "$PUID:$PGID" "$configDir/https-cert.pem"
|
||||
{{- end -}}
|
||||
95
library/ix-dev/test/syncthing/templates/_configure.tpl
Normal file
95
library/ix-dev/test/syncthing/templates/_configure.tpl
Normal file
@@ -0,0 +1,95 @@
|
||||
{{- define "syncthing.configure" -}}
|
||||
{{/*
|
||||
https://docs.syncthing.net/users/config.html
|
||||
Note: Configuration in the above link does not match the subcommands of the cli
|
||||
To get the correct subcommands, run `syncthing cli config <category>`
|
||||
It will print all the available subcommands for that category
|
||||
"Knobs" are exposed under Values.syncthingConfig, We can exposed those to questions.yaml if we want
|
||||
*/}}
|
||||
configmap:
|
||||
syncthing-configure:
|
||||
enabled: true
|
||||
data:
|
||||
configure.sh: |
|
||||
#!/bin/sh
|
||||
set -e
|
||||
configDir=/var/syncthing/config
|
||||
|
||||
# Make sure the file exists
|
||||
until [ -f "$configDir/config.xml" ]; do
|
||||
sleep 2
|
||||
done
|
||||
|
||||
# Check the API is running
|
||||
until curl --silent --output /dev/null http://localhost:{{ .Values.syncthingNetwork.webPort }}/rest/noauth/health; do
|
||||
sleep 2
|
||||
done
|
||||
|
||||
function setConfig() {
|
||||
syncthing cli --home "$configDir" config $@
|
||||
}
|
||||
|
||||
# Now we can use the syncthing cli (wrapper around the API) to set the defaults.
|
||||
# Keep in mind that all the below values are not enforced, user can change them
|
||||
# while the app is running, but will be re-applied on restart.
|
||||
|
||||
# Category "options" is more like "general" or "global" settings.
|
||||
setConfig options announce-lanaddresses set -- {{ ternary "1" "0" .Values.syncthingConfig.announceLANAddresses | quote }}
|
||||
setConfig options global-ann-enabled set -- {{ ternary "1" "0" .Values.syncthingConfig.globalDiscovery | quote }}
|
||||
setConfig options local-ann-enabled set -- {{ ternary "1" "0" .Values.syncthingConfig.localDiscovery | quote }}
|
||||
setConfig options natenabled set -- {{ ternary "1" "0" .Values.syncthingConfig.natTraversal | quote }}
|
||||
setConfig options relays-enabled set -- {{ ternary "1" "0" .Values.syncthingConfig.relaying | quote }}
|
||||
setConfig options uraccepted set -- {{ ternary "1" "-1" .Values.syncthingConfig.telemetry | quote }}
|
||||
setConfig options auto-upgrade-intervalh set -- "0"
|
||||
|
||||
# Category "defaults/folder" contains the default settings for new folders.
|
||||
setConfig defaults folder xattr-filter max-total-size set -- 10485760
|
||||
setConfig defaults folder xattr-filter max-single-entry-size set -- 2097152
|
||||
setConfig defaults folder send-ownership set -- 1
|
||||
setConfig defaults folder sync-ownership set -- 1
|
||||
setConfig defaults folder send-xattrs set -- 1
|
||||
setConfig defaults folder sync-xattrs set -- 1
|
||||
setConfig defaults folder ignore-perms set -- 1
|
||||
syncthing-truenas-logo:
|
||||
enabled: true
|
||||
data:
|
||||
logo-horizontal.svg: |
|
||||
<svg id="TN_Scale_RGB" data-name="TN Scale RGB" xmlns="http://www.w3.org/2000/svg" width="129.29" height="25.448" viewBox="0 0 129.29 25.448">
|
||||
<g id="Logomark">
|
||||
<g id="logoMark-2" data-name="logoMark">
|
||||
<path id="logoMark_PathItem_" data-name="logoMark <PathItem>" d="M48.576,16.032l-3.163,1.827-3.174-1.832L45.406,14.2Z" transform="translate(-27.484 -9.24)" fill="#aeadae"/>
|
||||
<path id="logoMark_PathItem_2" data-name="logoMark <PathItem>" d="M60.539,4.1,57.368,5.929l-3.92-2.264V0Z" transform="translate(-34.778 -0.001)" fill="#0095d5"/>
|
||||
<path id="logoMark_PathItem_3" data-name="logoMark <PathItem>" d="M35.956,0V3.663L32.04,5.922,28.868,4.091Z" transform="translate(-18.784)" fill="#31beec"/>
|
||||
<path id="logoMark_PathItem_4" data-name="logoMark <PathItem>" d="M7.839,39.056,0,34.53l0-3.661L3.534,32.91l.029.016,4.274,2.468Z" transform="translate(0 -20.086)" fill="#0095d5"/>
|
||||
<path id="logoMark_PathItem_5" data-name="logoMark <PathItem>" d="M21.853,31.471,18.686,33.3l-3.173-1.832,3.169-1.828Z" transform="translate(-10.094 -19.286)" fill="#aeadae"/>
|
||||
<path id="logoMark_PathItem_6" data-name="logoMark <PathItem>" d="M9.226,19.115,5.314,21.372,2.142,19.541l7.083-4.088Z" transform="translate(-1.394 -10.055)" fill="#31beec"/>
|
||||
<path id="logoMark_PathItem_7" data-name="logoMark <PathItem>" d="M33.826,19.547l-3.165,1.828-3.919-2.264V15.457l3.522,2.033.028.016Z" transform="translate(-17.4 -10.058)" fill="#0095d5"/>
|
||||
<path id="logoMark_PathItem_8" data-name="logoMark <PathItem>" d="M61.308,46.429v3.662L60.6,50.5l-7.132,4.118V50.957l3.96-2.287,1.5-.865Z" transform="translate(-34.791 -30.211)" fill="#31beec"/>
|
||||
<path id="logoMark_PathItem_9" data-name="logoMark <PathItem>" d="M48.583,47.023l-3.17,1.831-3.173-1.832,3.173-1.831Z" transform="translate(-27.484 -29.405)" fill="#aeadae"/>
|
||||
<path id="logoMark_PathItem_10" data-name="logoMark <PathItem>" d="M35.963,30.993v3.663l-.715.413L32.04,36.919,32,36.9l-3.137-1.812,3.207-1.851,1.5-.865L35.956,31Z" transform="translate(-18.784 -20.167)" fill="#31beec"/>
|
||||
<path id="logoMark_PathItem_11" data-name="logoMark <PathItem>" d="M34.568,50.957v3.66L27.44,50.5l-.715-.413,0-3.661.006,0,2.382,1.375,1.146.661.029.017.323.186Z" transform="translate(-17.389 -30.211)" fill="#0095d5"/>
|
||||
<path id="logoMark_PathItem_12" data-name="logoMark <PathItem>" d="M88.058,30.871v3.663l-7.84,4.526V35.4Z" transform="translate(-52.197 -20.087)" fill="#31beec"/>
|
||||
<path id="logoMark_PathItem_13" data-name="logoMark <PathItem>" d="M75.333,31.468,72.162,33.3l-3.173-1.833,3.173-1.83Z" transform="translate(-44.89 -19.284)" fill="#aeadae"/>
|
||||
<path id="logoMark_PathItem_14" data-name="logoMark <PathItem>" d="M87.309,19.532l-3.172,1.833L80.218,19.1V15.438Z" transform="translate(-52.197 -10.045)" fill="#0095d5"/>
|
||||
<path id="logoMark_PathItem_15" data-name="logoMark <PathItem>" d="M62.713,15.435V19.1L58.79,21.362,55.618,19.53Z" transform="translate(-36.19 -10.043)" fill="#31beec"/>
|
||||
<path id="logoMark_PathItem_16" data-name="logoMark <PathItem>" d="M60.563,35.09,57.432,36.9h0l-3.956-2.284V31l2.38,1.374,1.5.865Z" transform="translate(-34.795 -20.169)" fill="#0095d5"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="full-rgb" transform="translate(39.123)">
|
||||
<g id="type" transform="translate(0 0)">
|
||||
<path id="type_CompoundPathItem_" data-name="type <CompoundPathItem>" d="M12.7.646V2.6H7.426V17.958H5.269V2.6H0V.646Z" transform="translate(0 -0.421)" fill="#0095d5"/>
|
||||
<path id="type_CompoundPathItem_2" data-name="type <CompoundPathItem>" d="M43.14,16.629a2.383,2.383,0,0,0-2.107-1.054,2.728,2.728,0,0,0-2.684,3.036v7.853H36.341V13.919h2.008v1.23a3.043,3.043,0,0,1,2.91-1.43,3.989,3.989,0,0,1,3.588,1.706Z" transform="translate(-23.647 -8.926)" fill="#0095d5"/>
|
||||
<path id="type_CompoundPathItem_3" data-name="type <CompoundPathItem>" d="M74.576,26.838H72.568V25.609c-.627.953-1.5,1.43-3.361,1.43-2.684,0-4.566-1.405-4.566-4.918V14.293h2.007v7.8c0,2.534,1.38,3.086,2.86,3.086a2.923,2.923,0,0,0,3.061-3.061V14.293h2.008Z" transform="translate(-42.061 -9.3)" fill="#0095d5"/>
|
||||
<path id="type_CompoundPathItem_4" data-name="type <CompoundPathItem>" d="M108.944,24.557c-.878,1.531-2.208,2.108-4.39,2.108-3.362,0-5.37-2.183-5.37-5.67V19.338c0-3.562,1.681-5.62,4.968-5.62,3.312,0,4.968,2.032,4.968,5.62v1.3h-7.928v.351c0,2.158,1.029,3.863,3.211,3.863,1.631,0,2.459-.476,2.985-1.4Zm-7.753-5.67h5.9c-.1-2.107-1.028-3.362-2.936-3.362C102.22,15.525,101.316,16.8,101.191,18.887Z" transform="translate(-64.538 -8.926)" fill="#0095d5"/>
|
||||
<path id="type_CompoundPathItem_5" data-name="type <CompoundPathItem>" d="M149.265.646V17.958H146.68L139.63,6.191V17.958h-2.81V.646h2.509l7.126,11.917V.646Z" transform="translate(-89.027 -0.421)" fill="#0095d5"/>
|
||||
<path id="type_CompoundPathItem_6" data-name="type <CompoundPathItem>" d="M178.044,17.958,184.066.646h2.76l6.021,17.312h-3.086l-1.18-3.588h-6.247l-1.179,3.588Zm5.093-6.1h4.617l-2.308-7Z" transform="translate(-115.851 -0.421)" fill="#0095d5"/>
|
||||
<path id="type_CompoundPathItem_7" data-name="type <CompoundPathItem>" d="M232.654,4.416a4.038,4.038,0,0,0-3.738-1.882c-1.781,0-2.835.8-2.835,2.258,0,1.656,1.3,2.308,3.714,2.835,3.487.753,5.294,2.057,5.294,5.168,0,2.584-1.732,4.968-5.9,4.968-2.96,0-5.043-.9-6.473-2.835L225,13.347a4.634,4.634,0,0,0,4.039,1.882c2.384,0,3.136-1.054,3.136-2.308,0-1.38-.777-2.233-3.788-2.885-3.337-.7-5.219-2.308-5.219-5.244,0-2.609,1.706-4.792,5.771-4.792,2.76,0,4.692.928,5.921,2.835Z" transform="translate(-144.92 0)" fill="#0095d5"/>
|
||||
<path id="type_CompoundPathItem_8" data-name="type <CompoundPathItem>" d="M16.888,61.246a1.006,1.006,0,0,0-.932-.469c-.444,0-.707.2-.707.563,0,.413.325.576.926.707.869.188,1.32.513,1.32,1.289,0,.644-.432,1.238-1.47,1.238a1.846,1.846,0,0,1-1.614-.707l.569-.394a1.156,1.156,0,0,0,1.007.469c.594,0,.782-.263.782-.575,0-.344-.194-.557-.944-.72-.832-.175-1.3-.575-1.3-1.307,0-.651.425-1.195,1.439-1.195a1.61,1.61,0,0,1,1.476.707Z" transform="translate(-9.377 -39.132)" fill="#aeadae"/>
|
||||
<path id="type_CompoundPathItem_9" data-name="type <CompoundPathItem>" d="M29.1,61.551a.821.821,0,0,0-.869-.763c-.575,0-.888.375-.888,1.307v.55c0,.919.313,1.307.888,1.307a.81.81,0,0,0,.869-.763H29.8a1.445,1.445,0,0,1-1.564,1.395c-.963,0-1.614-.582-1.614-1.939V62.1c0-1.357.65-1.939,1.614-1.939a1.47,1.47,0,0,1,1.57,1.395Z" transform="translate(-17.321 -39.143)" fill="#aeadae"/>
|
||||
<path id="type_CompoundPathItem_10" data-name="type <CompoundPathItem>" d="M38.021,64.633l1.5-4.316h.688l1.5,4.316h-.769l-.294-.894H39.091l-.294.894Zm1.27-1.52h1.151l-.575-1.745Z" transform="translate(-24.74 -39.248)" fill="#aeadae"/>
|
||||
<path id="type_CompoundPathItem_11" data-name="type <CompoundPathItem>" d="M52.512,64.008h1.92v.626H51.787V60.317h.726Z" transform="translate(-33.697 -39.248)" fill="#aeadae"/>
|
||||
<path id="type_CompoundPathItem_12" data-name="type <CompoundPathItem>" d="M65.226,60.317v.632h-1.92v1.138h1.733v.625H63.306v1.295h1.92v.626H62.581V60.317Z" transform="translate(-40.72 -39.248)" fill="#aeadae"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
{{- end -}}
|
||||
89
library/ix-dev/test/syncthing/templates/_persistence.tpl
Normal file
89
library/ix-dev/test/syncthing/templates/_persistence.tpl
Normal file
@@ -0,0 +1,89 @@
|
||||
{{- define "syncthing.persistence" -}}
|
||||
persistence:
|
||||
home:
|
||||
enabled: true
|
||||
type: {{ .Values.syncthingStorage.home.type }}
|
||||
datasetName: {{ .Values.syncthingStorage.home.datasetName | default "" }}
|
||||
hostPath: {{ .Values.syncthingStorage.home.hostPath | default "" }}
|
||||
targetSelector:
|
||||
syncthing:
|
||||
syncthing:
|
||||
mountPath: /var/syncthing
|
||||
01-certs:
|
||||
mountPath: /var/syncthing
|
||||
configure:
|
||||
enabled: true
|
||||
type: configmap
|
||||
objectName: syncthing-configure
|
||||
defaultMode: "0770"
|
||||
targetSelector:
|
||||
syncthing:
|
||||
syncthing:
|
||||
mountPath: /configure.sh
|
||||
subPath: configure.sh
|
||||
truenas-logo:
|
||||
enabled: true
|
||||
type: configmap
|
||||
objectName: syncthing-truenas-logo
|
||||
defaultMode: "0770"
|
||||
targetSelector:
|
||||
syncthing:
|
||||
syncthing:
|
||||
mountPath: /var/truenas/assets/gui/default/assets/img/logo-horizontal.svg
|
||||
subPath: logo-horizontal.svg
|
||||
|
||||
{{- if not .Values.syncthingStorage.additionalStorages -}}
|
||||
{{- fail "Syncthing - Expected at least one additional storage defined" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- range $idx, $storage := .Values.syncthingStorage.additionalStorages }}
|
||||
{{ printf "sync-%v" (int $idx) }}:
|
||||
{{- $size := "" -}}
|
||||
{{- if $storage.size -}}
|
||||
{{- $size = (printf "%vGi" $storage.size) -}}
|
||||
{{- end }}
|
||||
enabled: true
|
||||
type: {{ $storage.type }}
|
||||
datasetName: {{ $storage.datasetName | default "" }}
|
||||
hostPath: {{ $storage.hostPath | default "" }}
|
||||
server: {{ $storage.server | default "" }}
|
||||
share: {{ $storage.share | default "" }}
|
||||
username: {{ $storage.username | default "" }}
|
||||
password: {{ $storage.password | default "" }}
|
||||
size: {{ $size }}
|
||||
{{- with $storage.mountOptions }}
|
||||
mountOptions:
|
||||
{{- range $opt := . }}
|
||||
- key: {{ $opt.key | default "" }}
|
||||
value: {{ $opt.value | default "" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
targetSelector:
|
||||
syncthing:
|
||||
syncthing:
|
||||
mountPath: {{ $storage.mountPath }}
|
||||
{{- end }}
|
||||
|
||||
{{- if .Values.syncthingNetwork.certificateID }}
|
||||
certs:
|
||||
enabled: true
|
||||
type: secret
|
||||
objectName: syncthing-cert
|
||||
defaultMode: "0600"
|
||||
items:
|
||||
- key: tls.key
|
||||
path: https-key.pem
|
||||
- key: tls.crt
|
||||
path: https-cert.pem
|
||||
targetSelector:
|
||||
syncthing:
|
||||
01-certs:
|
||||
mountPath: /certs
|
||||
readOnly: true
|
||||
|
||||
scaleCertificate:
|
||||
syncthing-cert:
|
||||
enabled: true
|
||||
id: {{ .Values.syncthingNetwork.certificateID }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
16
library/ix-dev/test/syncthing/templates/_portal.tpl
Normal file
16
library/ix-dev/test/syncthing/templates/_portal.tpl
Normal file
@@ -0,0 +1,16 @@
|
||||
{{- define "syncthing.portal" -}}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: portal
|
||||
data:
|
||||
path: "/"
|
||||
host: "$node_ip"
|
||||
port: {{ .Values.syncthingNetwork.webPort | quote }}
|
||||
{{- if .Values.syncthingNetwork.certificateID }}
|
||||
protocol: https
|
||||
{{- else }}
|
||||
protocol: http
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
47
library/ix-dev/test/syncthing/templates/_service.tpl
Normal file
47
library/ix-dev/test/syncthing/templates/_service.tpl
Normal file
@@ -0,0 +1,47 @@
|
||||
{{- define "syncthing.service" -}}
|
||||
service:
|
||||
syncthing-web:
|
||||
enabled: true
|
||||
primary: true
|
||||
type: NodePort
|
||||
targetSelector: syncthing
|
||||
ports:
|
||||
webui:
|
||||
enabled: true
|
||||
primary: true
|
||||
port: {{ .Values.syncthingNetwork.webPort }}
|
||||
nodePort: {{ .Values.syncthingNetwork.webPort }}
|
||||
targetSelector: syncthing
|
||||
syncthing-discovery:
|
||||
# Only enable this service if local discovery is enabled
|
||||
enabled: {{ .Values.syncthingConfig.localDiscovery }}
|
||||
type: NodePort
|
||||
targetSelector: syncthing
|
||||
ports:
|
||||
discovery:
|
||||
enabled: true
|
||||
port: {{ .Values.syncthingNetwork.localDiscoveryPort }}
|
||||
nodePort: {{ .Values.syncthingNetwork.localDiscoveryPort }}
|
||||
targetPort: 21017
|
||||
protocol: udp
|
||||
targetSelector: syncthing
|
||||
syncthing-transfer:
|
||||
enabled: true
|
||||
type: NodePort
|
||||
targetSelector: syncthing
|
||||
ports:
|
||||
tcp:
|
||||
enabled: true
|
||||
primary: true
|
||||
port: {{ .Values.syncthingNetwork.tcpPort }}
|
||||
nodePort: {{ .Values.syncthingNetwork.tcpPort }}
|
||||
targetPort: 22000
|
||||
targetSelector: syncthing
|
||||
quic:
|
||||
enabled: true
|
||||
port: {{ .Values.syncthingNetwork.quicPort }}
|
||||
nodePort: {{ .Values.syncthingNetwork.quicPort }}
|
||||
targetPort: 22000
|
||||
protocol: udp
|
||||
targetSelector: syncthing
|
||||
{{- end -}}
|
||||
72
library/ix-dev/test/syncthing/templates/_syncthing.tpl
Normal file
72
library/ix-dev/test/syncthing/templates/_syncthing.tpl
Normal file
@@ -0,0 +1,72 @@
|
||||
{{- define "syncthing.workload" -}}
|
||||
workload:
|
||||
syncthing:
|
||||
enabled: true
|
||||
primary: true
|
||||
type: Deployment
|
||||
podSpec:
|
||||
hostNetwork: {{ .Values.syncthingNetwork.hostNetwork }}
|
||||
securityContext:
|
||||
fsGroup: {{ .Values.syncthingID.group }}
|
||||
containers:
|
||||
syncthing:
|
||||
enabled: true
|
||||
primary: true
|
||||
imageSelector: image
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
runAsGroup: 0
|
||||
runAsNonRoot: false
|
||||
readOnlyRootFilesystem: false
|
||||
# This is needed to allow syncthing assign
|
||||
# PCAPs to its child processes
|
||||
allowPrivilegeEscalation: true
|
||||
capabilities:
|
||||
add:
|
||||
- FOWNER
|
||||
- DAC_OVERRIDE
|
||||
- CHOWN
|
||||
- SETUID
|
||||
- SETGID
|
||||
- SETFCAP
|
||||
- SETPCAP
|
||||
- SYS_ADMIN
|
||||
env:
|
||||
PCAP: cap_sys_admin,cap_chown,cap_dac_override,cap_fowner+ep
|
||||
STGUIADDRESS: "0.0.0.0:{{ .Values.syncthingNetwork.webPort }}"
|
||||
# Set a custom override for the GUI assets
|
||||
STGUIASSETS: /var/truenas/assets/gui
|
||||
# Disable automatic upgrades
|
||||
STNOUPGRADE: "true"
|
||||
fixedEnv:
|
||||
PUID: {{ .Values.syncthingID.user }}
|
||||
probes:
|
||||
liveness:
|
||||
enabled: true
|
||||
type: http
|
||||
path: /rest/noauth/health
|
||||
port: "{{ .Values.syncthingNetwork.webPort }}"
|
||||
readiness:
|
||||
enabled: true
|
||||
type: http
|
||||
path: /rest/noauth/health
|
||||
port: "{{ .Values.syncthingNetwork.webPort }}"
|
||||
startup:
|
||||
enabled: true
|
||||
type: http
|
||||
path: /rest/noauth/health
|
||||
port: "{{ .Values.syncthingNetwork.webPort }}"
|
||||
# We use this hook as we need the API
|
||||
# to be running when we run the configure script
|
||||
lifecycle:
|
||||
postStart:
|
||||
type: exec
|
||||
command:
|
||||
- su-exec
|
||||
- "{{ .Values.syncthingID.user }}:{{ .Values.syncthingID.group }}"
|
||||
- /configure.sh
|
||||
{{- if .Values.syncthingNetwork.certificateID }}
|
||||
initContainers:
|
||||
{{- include "syncthing.certContainer" $ | nindent 8 -}}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
12
library/ix-dev/test/syncthing/templates/common.yaml
Normal file
12
library/ix-dev/test/syncthing/templates/common.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
{{- include "ix.v1.common.loader.init" . -}}
|
||||
|
||||
{{/* Merge the templates with Values */}}
|
||||
{{- $_ := mustMergeOverwrite .Values (include "syncthing.workload" $ | fromYaml) -}}
|
||||
{{- $_ := mustMergeOverwrite .Values (include "syncthing.persistence" $ | fromYaml) -}}
|
||||
{{- $_ := mustMergeOverwrite .Values (include "syncthing.service" $ | fromYaml) -}}
|
||||
{{- $_ := mustMergeOverwrite .Values (include "syncthing.configure" $ | fromYaml) -}}
|
||||
|
||||
{{/* Create the configmap for portal manually*/}}
|
||||
{{- include "syncthing.portal" $ -}}
|
||||
|
||||
{{- include "ix.v1.common.loader.apply" . -}}
|
||||
1
library/ix-dev/test/syncthing/upgrade_info.json
Normal file
1
library/ix-dev/test/syncthing/upgrade_info.json
Normal file
@@ -0,0 +1 @@
|
||||
{"filename": "values.yaml", "keys": ["image"]}
|
||||
30
library/ix-dev/test/syncthing/upgrade_strategy_disable
Executable file
30
library/ix-dev/test/syncthing/upgrade_strategy_disable
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/python3
|
||||
import json
|
||||
import re
|
||||
import sys
|
||||
|
||||
from catalog_update.upgrade_strategy import semantic_versioning
|
||||
|
||||
RE_STABLE_VERSION = re.compile(r'[1-9]+\.[0-9]+\.[0-9]+')
|
||||
|
||||
|
||||
def newer_mapping(image_tags):
|
||||
key = list(image_tags.keys())[0]
|
||||
tags = {t: t for t in image_tags[key] if RE_STABLE_VERSION.fullmatch(t)}
|
||||
version = semantic_versioning(list(tags))
|
||||
if not version:
|
||||
return {}
|
||||
|
||||
return {
|
||||
'tags': {key: tags[version]},
|
||||
'app_version': version,
|
||||
}
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
versions_json = json.loads(sys.stdin.read())
|
||||
except ValueError:
|
||||
raise ValueError('Invalid json specified')
|
||||
|
||||
print(json.dumps(newer_mapping(versions_json)))
|
||||
38
library/ix-dev/test/syncthing/values.yaml
Normal file
38
library/ix-dev/test/syncthing/values.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
image:
|
||||
repository: syncthing/syncthing
|
||||
tag: '1.23.3'
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
resources:
|
||||
limits:
|
||||
cpu: 4000m
|
||||
memory: 8Gi
|
||||
|
||||
# Currently not exposed in the UI
|
||||
# But can be exposed in the future
|
||||
syncthingConfig:
|
||||
natTraversal: false
|
||||
localDiscovery: false
|
||||
globalDiscovery: false
|
||||
telemetry: false
|
||||
relaying: false
|
||||
announceLANAddresses: false
|
||||
|
||||
syncthingID:
|
||||
user: 568
|
||||
group: 568
|
||||
|
||||
syncthingNetwork:
|
||||
webPort: 30000
|
||||
certificateID: null
|
||||
hostNetwork: true
|
||||
# Only used if hostNetwork is false
|
||||
localDiscoveryPort: 21027
|
||||
tcpPort: 22000
|
||||
quicPort: 22000
|
||||
|
||||
syncthingStorage:
|
||||
home:
|
||||
type: ixVolume
|
||||
datasetName: home
|
||||
additionalStorages: []
|
||||
Reference in New Issue
Block a user