questions.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  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: syncthingID
  32. label: ""
  33. group: User and Group Configuration
  34. schema:
  35. type: dict
  36. attrs:
  37. - variable: user
  38. label: User ID
  39. description: The user id that Syncthing files will be owned by.
  40. schema:
  41. type: int
  42. min: 568
  43. default: 568
  44. immutable: true
  45. required: true
  46. - variable: group
  47. label: Group ID
  48. description: The group id that Syncthing files will be owned by.
  49. schema:
  50. type: int
  51. min: 568
  52. default: 568
  53. immutable: true
  54. required: true
  55. - variable: syncthingNetwork
  56. label: ""
  57. group: Network Configuration
  58. schema:
  59. type: dict
  60. attrs:
  61. - variable: hostNetwork
  62. label: Host Network
  63. description: |
  64. Bind to the host network.</br></br>
  65. If this is disabled, you will need to add your local networks in CIDR format to the Syncthing WebUI.</br>
  66. In the Syncthing WebUI, go to Advanced Settings > Options > Always Local Nets</br>
  67. Separate each CIDR network with a comma.</br>
  68. Example: 192.168.0.0/24,192.168.1.0/24
  69. schema:
  70. type: boolean
  71. default: true
  72. - variable: webPort
  73. label: Web Port
  74. description: The port for the Syncthing WebUI.
  75. schema:
  76. type: int
  77. default: 31000
  78. min: 9000
  79. max: 65535
  80. required: true
  81. - variable: tcpPort
  82. label: TCP Port (File Transfers)
  83. description: The TCP port for Syncthing transfers.
  84. schema:
  85. type: int
  86. show_if: [["hostNetwork", "=", false]]
  87. default: 22000
  88. min: 9000
  89. max: 65535
  90. required: true
  91. - variable: quicPort
  92. label: QUIC (UDP) Port (File Transfers)
  93. description: The QUIC (UDP) port for Syncthing transfers.
  94. schema:
  95. type: int
  96. show_if: [["hostNetwork", "=", false]]
  97. default: 22000
  98. min: 9000
  99. max: 65535
  100. required: true
  101. - variable: certificateID
  102. label: Certificate
  103. description: The certificate to use for Syncthing GUI.
  104. schema:
  105. type: int
  106. "null": true
  107. $ref:
  108. - "definitions/certificate"
  109. - variable: syncthingStorage
  110. label: ""
  111. group: Storage Configuration
  112. schema:
  113. type: dict
  114. attrs:
  115. - variable: home
  116. label: Syncthing Home Storage
  117. description: The path to store Syncthing Home Directory.
  118. schema:
  119. type: dict
  120. attrs:
  121. - variable: type
  122. label: Type
  123. description: |
  124. ixVolume: Is dataset created automatically by the system.</br>
  125. Host Path: Is a path that already exists on the system.
  126. schema:
  127. type: string
  128. required: true
  129. default: "ixVolume"
  130. enum:
  131. - value: "hostPath"
  132. description: Host Path (Path that already exists on the system)
  133. - value: "ixVolume"
  134. description: ixVolume (Dataset created automatically by the system)
  135. - variable: datasetName
  136. label: Dataset Name
  137. schema:
  138. type: string
  139. show_if: [["type", "=", "ixVolume"]]
  140. required: true
  141. hidden: true
  142. immutable: true
  143. default: "home"
  144. $ref:
  145. - "normalize/ixVolume"
  146. - variable: hostPath
  147. label: Host Path
  148. schema:
  149. type: hostpath
  150. show_if: [["type", "=", "hostPath"]]
  151. immutable: true
  152. required: true
  153. - variable: additionalStorages
  154. label: Additional Storage
  155. description: Additional storage for Syncthing.
  156. schema:
  157. type: list
  158. required: true
  159. empty: false
  160. default:
  161. - type: "hostPath"
  162. mountPath: "/data1"
  163. hostPath": ""
  164. items:
  165. - variable: storageEntry
  166. label: Storage Entry
  167. schema:
  168. type: dict
  169. attrs:
  170. - variable: type
  171. label: Type
  172. description: |
  173. Host Path: Is a path that already exists on the system.
  174. schema:
  175. type: string
  176. required: true
  177. default: "hostPath"
  178. enum:
  179. - value: "hostPath"
  180. description: Host Path (Path that already exists on the system)
  181. - value: "smb-pv-pvc"
  182. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  183. - variable: mountPath
  184. label: Mount Path
  185. description: The path inside the container to mount the storage.
  186. schema:
  187. type: path
  188. required: true
  189. - variable: hostPath
  190. label: Host Path
  191. description: The host path to use for storage.
  192. schema:
  193. type: hostpath
  194. show_if: [["type", "=", "hostPath"]]
  195. required: true
  196. - variable: server
  197. label: Server
  198. description: The server for the SMB share.
  199. schema:
  200. type: string
  201. show_if: [["type", "=", "smb-pv-pvc"]]
  202. required: true
  203. - variable: share
  204. label: Share
  205. description: The share name for the SMB share.
  206. schema:
  207. type: string
  208. show_if: [["type", "=", "smb-pv-pvc"]]
  209. required: true
  210. - variable: username
  211. label: Username
  212. description: The username for the SMB share.
  213. schema:
  214. type: string
  215. show_if: [["type", "=", "smb-pv-pvc"]]
  216. required: true
  217. - variable: password
  218. label: Password
  219. description: The password for the SMB share.
  220. schema:
  221. type: string
  222. show_if: [["type", "=", "smb-pv-pvc"]]
  223. required: true
  224. private: true
  225. - variable: size
  226. label: Size (in Gi)
  227. description: The size of the volume quota.
  228. schema:
  229. type: int
  230. show_if: [["type", "=", "smb-pv-pvc"]]
  231. required: true
  232. min: 1
  233. default: 1
  234. - variable: mountOptions
  235. label: Mount Options
  236. description: Mount options for the SMB share.
  237. schema:
  238. type: list
  239. show_if: [["type", "=", "smb-pv-pvc"]]
  240. items:
  241. - variable: mountOption
  242. label: Mount Option
  243. schema:
  244. type: dict
  245. attrs:
  246. - variable: key
  247. label: Key
  248. schema:
  249. type: string
  250. required: true
  251. - variable: value
  252. label: Value
  253. schema:
  254. type: string
  255. - variable: resources
  256. group: Resources Configuration
  257. label: ""
  258. schema:
  259. type: dict
  260. attrs:
  261. - variable: limits
  262. label: Limits
  263. schema:
  264. type: dict
  265. attrs:
  266. - variable: cpu
  267. label: CPU
  268. description: CPU limit for Syncthing.
  269. schema:
  270. type: string
  271. max_length: 6
  272. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  273. valid_chars_error: |
  274. Valid CPU limit formats are</br>
  275. - Plain Integer - eg. 1</br>
  276. - Float - eg. 0.5</br>
  277. - Milicpu - eg. 500m
  278. default: "4000m"
  279. required: true
  280. - variable: memory
  281. label: Memory
  282. description: Memory limit for Syncthing.
  283. schema:
  284. type: string
  285. max_length: 12
  286. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  287. valid_chars_error: |
  288. Valid Memory limit formats are</br>
  289. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  290. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  291. - Plain Integer in bytes - eg. 1024</br>
  292. - Exponent - eg. 134e6
  293. default: "8Gi"
  294. required: true