questions.yaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. groups:
  2. - name: Syncthing Configuration
  3. description: Configure Syncthing
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Syncthing
  6. - name: Network Configuration
  7. description: Configure Network for Syncthing
  8. - name: Storage Configuration
  9. description: Configure Storage for Syncthing
  10. - name: Resources Configuration
  11. description: Configure Resources for Syncthing
  12. portals:
  13. web_portal:
  14. protocols:
  15. - "$kubernetes-resource_configmap_portal_protocol"
  16. host:
  17. - "$kubernetes-resource_configmap_portal_host"
  18. ports:
  19. - "$kubernetes-resource_configmap_portal_port"
  20. path: "$kubernetes-resource_configmap_portal_path"
  21. questions:
  22. - variable: TZ
  23. group: Syncthing Configuration
  24. label: Timezone
  25. schema:
  26. type: string
  27. default: Etc/UTC
  28. required: true
  29. $ref:
  30. - definitions/timezone
  31. - variable: syncthingConfig
  32. label: ""
  33. group: Syncthing Configuration
  34. schema:
  35. type: dict
  36. attrs:
  37. # Boolean flags are currently
  38. # not exposed to the user
  39. - variable: natTraversal
  40. label: NAT Traversal
  41. schema:
  42. type: boolean
  43. default: false
  44. hidden: true
  45. - variable: localDiscovery
  46. label: Local Discovery
  47. schema:
  48. type: boolean
  49. default: false
  50. hidden: true
  51. - variable: globalDiscovery
  52. label: Global Discovery
  53. schema:
  54. type: boolean
  55. default: false
  56. hidden: true
  57. - variable: telemetry
  58. label: Telemetry
  59. schema:
  60. type: boolean
  61. default: false
  62. hidden: true
  63. - variable: relaying
  64. label: Relaying
  65. schema:
  66. type: boolean
  67. default: false
  68. hidden: true
  69. - variable: announceLANAddresses
  70. label: Announce LAN Addresses
  71. schema:
  72. type: boolean
  73. default: false
  74. hidden: true
  75. - variable: additionalEnvs
  76. label: Additional Environment Variables
  77. description: Configure additional environment variables for Syncthing.
  78. schema:
  79. type: list
  80. default: []
  81. items:
  82. - variable: env
  83. label: Environment Variable
  84. schema:
  85. type: dict
  86. attrs:
  87. - variable: name
  88. label: Name
  89. schema:
  90. type: string
  91. required: true
  92. - variable: value
  93. label: Value
  94. schema:
  95. type: string
  96. required: true
  97. - variable: syncthingID
  98. label: ""
  99. group: User and Group Configuration
  100. schema:
  101. type: dict
  102. attrs:
  103. - variable: user
  104. label: User ID
  105. description: The user id that Syncthing files will be owned by.
  106. schema:
  107. type: int
  108. min: 568
  109. default: 568
  110. immutable: true
  111. required: true
  112. - variable: group
  113. label: Group ID
  114. description: The group id that Syncthing files will be owned by.
  115. schema:
  116. type: int
  117. min: 568
  118. default: 568
  119. immutable: true
  120. required: true
  121. - variable: syncthingNetwork
  122. label: ""
  123. group: Network Configuration
  124. schema:
  125. type: dict
  126. attrs:
  127. - variable: hostNetwork
  128. label: Host Network
  129. description: |
  130. Bind to the host network.</br></br>
  131. If this is disabled, you will need to add your local networks in CIDR format to the Syncthing WebUI.</br>
  132. In the Syncthing WebUI, go to Advanced Settings > Options > Always Local Nets</br>
  133. Separate each CIDR network with a comma.</br>
  134. Example: 192.168.0.0/24,192.168.1.0/24
  135. schema:
  136. type: boolean
  137. default: true
  138. - variable: webPort
  139. label: Web Port
  140. description: The port for the Syncthing WebUI.
  141. schema:
  142. type: int
  143. default: 31000
  144. min: 9000
  145. max: 65535
  146. required: true
  147. - variable: tcpPort
  148. label: TCP Port (File Transfers)
  149. description: The TCP port for Syncthing transfers.
  150. schema:
  151. type: int
  152. show_if: [["hostNetwork", "=", false]]
  153. default: 22000
  154. min: 9000
  155. max: 65535
  156. required: true
  157. - variable: quicPort
  158. label: QUIC (UDP) Port (File Transfers)
  159. description: The QUIC (UDP) port for Syncthing transfers.
  160. schema:
  161. type: int
  162. show_if: [["hostNetwork", "=", false]]
  163. default: 22000
  164. min: 9000
  165. max: 65535
  166. required: true
  167. - variable: certificateID
  168. label: Certificate
  169. description: The certificate to use for Syncthing GUI.
  170. schema:
  171. type: int
  172. "null": true
  173. $ref:
  174. - "definitions/certificate"
  175. - variable: syncthingStorage
  176. label: ""
  177. group: Storage Configuration
  178. schema:
  179. type: dict
  180. attrs:
  181. - variable: home
  182. label: Syncthing Home Storage
  183. description: The path to store Syncthing Home Directory.
  184. schema:
  185. type: dict
  186. attrs:
  187. - variable: type
  188. label: Type
  189. description: |
  190. ixVolume: Is dataset created automatically by the system.</br>
  191. Host Path: Is a path that already exists on the system.
  192. schema:
  193. type: string
  194. required: true
  195. immutable: true
  196. default: "ixVolume"
  197. enum:
  198. - value: "hostPath"
  199. description: Host Path (Path that already exists on the system)
  200. - value: "ixVolume"
  201. description: ixVolume (Dataset created automatically by the system)
  202. - variable: datasetName
  203. label: Dataset Name
  204. schema:
  205. type: string
  206. show_if: [["type", "=", "ixVolume"]]
  207. required: true
  208. hidden: true
  209. immutable: true
  210. default: "home"
  211. $ref:
  212. - "normalize/ixVolume"
  213. - variable: hostPath
  214. label: Host Path
  215. schema:
  216. type: hostpath
  217. show_if: [["type", "=", "hostPath"]]
  218. immutable: true
  219. required: true
  220. - variable: additionalStorages
  221. label: Additional Storage
  222. description: Additional storage for Syncthing.
  223. schema:
  224. type: list
  225. required: true
  226. empty: false
  227. default:
  228. - type: "hostPath"
  229. mountPath: "/data1"
  230. hostPath": ""
  231. items:
  232. - variable: storageEntry
  233. label: Storage Entry
  234. schema:
  235. type: dict
  236. attrs:
  237. - variable: type
  238. label: Type
  239. description: |
  240. Host Path: Is a path that already exists on the system.</br>
  241. SMB Share: Mounts a persistent volume claim to a SMB share.
  242. schema:
  243. type: string
  244. required: true
  245. default: "hostPath"
  246. immutable: true
  247. enum:
  248. - value: "hostPath"
  249. description: Host Path (Path that already exists on the system)
  250. - value: "smb-pv-pvc"
  251. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  252. - variable: mountPath
  253. label: Mount Path
  254. description: The path inside the container to mount the storage.
  255. schema:
  256. type: path
  257. required: true
  258. - variable: hostPath
  259. label: Host Path
  260. description: The host path to use for storage.
  261. schema:
  262. type: hostpath
  263. show_if: [["type", "=", "hostPath"]]
  264. required: true
  265. - variable: server
  266. label: Server
  267. description: The server for the SMB share.
  268. schema:
  269. type: string
  270. show_if: [["type", "=", "smb-pv-pvc"]]
  271. required: true
  272. - variable: share
  273. label: Share
  274. description: The share name for the SMB share.
  275. schema:
  276. type: string
  277. show_if: [["type", "=", "smb-pv-pvc"]]
  278. required: true
  279. - variable: domain
  280. label: Domain (Optional)
  281. description: The domain for the SMB share.
  282. schema:
  283. type: string
  284. show_if: [["type", "=", "smb-pv-pvc"]]
  285. - variable: username
  286. label: Username
  287. description: The username for the SMB share.
  288. schema:
  289. type: string
  290. show_if: [["type", "=", "smb-pv-pvc"]]
  291. required: true
  292. - variable: password
  293. label: Password
  294. description: The password for the SMB share.
  295. schema:
  296. type: string
  297. show_if: [["type", "=", "smb-pv-pvc"]]
  298. required: true
  299. private: true
  300. - variable: size
  301. label: Size (in Gi)
  302. description: The size of the volume quota.
  303. schema:
  304. type: int
  305. show_if: [["type", "=", "smb-pv-pvc"]]
  306. required: true
  307. min: 1
  308. default: 1
  309. - variable: resources
  310. group: Resources Configuration
  311. label: ""
  312. schema:
  313. type: dict
  314. attrs:
  315. - variable: limits
  316. label: Limits
  317. schema:
  318. type: dict
  319. attrs:
  320. - variable: cpu
  321. label: CPU
  322. description: CPU limit for Syncthing.
  323. schema:
  324. type: string
  325. max_length: 6
  326. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  327. valid_chars_error: |
  328. Valid CPU limit formats are</br>
  329. - Plain Integer - eg. 1</br>
  330. - Float - eg. 0.5</br>
  331. - Milicpu - eg. 500m
  332. default: "4000m"
  333. required: true
  334. - variable: memory
  335. label: Memory
  336. description: Memory limit for Syncthing.
  337. schema:
  338. type: string
  339. max_length: 12
  340. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  341. valid_chars_error: |
  342. Valid Memory limit formats are</br>
  343. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  344. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  345. - Plain Integer in bytes - eg. 1024</br>
  346. - Exponent - eg. 134e6
  347. default: "8Gi"
  348. required: true