questions.yaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  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: Advanced Pod Configuration
  7. description: Configure Advanced Pod Options for Syncthing
  8. - name: Network Configuration
  9. description: Configure Network for Syncthing
  10. - name: Storage Configuration
  11. description: Configure Storage for Syncthing
  12. - name: Resources Configuration
  13. description: Configure Resources for Syncthing
  14. portals:
  15. web_portal:
  16. protocols:
  17. - "$kubernetes-resource_configmap_portal_protocol"
  18. host:
  19. - "$kubernetes-resource_configmap_portal_host"
  20. ports:
  21. - "$kubernetes-resource_configmap_portal_port"
  22. path: "$kubernetes-resource_configmap_portal_path"
  23. questions:
  24. - variable: syncthingConfig
  25. label: ""
  26. group: Syncthing Configuration
  27. schema:
  28. type: dict
  29. attrs:
  30. - variable: additionalEnvs
  31. label: Additional Environment Variables
  32. description: Configure additional environment variables for Syncthing.
  33. schema:
  34. type: list
  35. default: []
  36. items:
  37. - variable: env
  38. label: Environment Variable
  39. schema:
  40. type: dict
  41. attrs:
  42. - variable: name
  43. label: Name
  44. schema:
  45. type: string
  46. required: true
  47. - variable: value
  48. label: Value
  49. schema:
  50. type: string
  51. required: true
  52. - variable: syncthingID
  53. label: ""
  54. group: User and Group Configuration
  55. schema:
  56. type: dict
  57. attrs:
  58. - variable: user
  59. label: User ID
  60. description: The user id that Syncthing files will be owned by.
  61. schema:
  62. type: int
  63. min: 0
  64. default: 568
  65. required: true
  66. - variable: group
  67. label: Group ID
  68. description: The group id that Syncthing files will be owned by.
  69. schema:
  70. type: int
  71. min: 0
  72. default: 568
  73. required: true
  74. - variable: podOptions
  75. label: ""
  76. group: Advanced Pod Configuration
  77. schema:
  78. type: dict
  79. attrs:
  80. - variable: dnsConfig
  81. label: Advanced DNS Configuration
  82. schema:
  83. type: dict
  84. attrs:
  85. - variable: options
  86. label: DNS Options
  87. schema:
  88. type: list
  89. items:
  90. - variable: optionsEntry
  91. label: DNS Option Entry
  92. schema:
  93. type: dict
  94. attrs:
  95. - variable: name
  96. label: Option Name
  97. schema:
  98. type: string
  99. required: true
  100. - variable: value
  101. label: Option Value
  102. schema:
  103. type: string
  104. required: true
  105. - variable: syncthingNetwork
  106. label: ""
  107. group: Network Configuration
  108. schema:
  109. type: dict
  110. attrs:
  111. - variable: webPort
  112. label: Web Port
  113. description: The port for the Syncthing Web UI.
  114. schema:
  115. type: int
  116. default: 20910
  117. min: 9000
  118. max: 65535
  119. required: true
  120. - variable: tcpPort
  121. label: TCP Port
  122. description: The port for the Syncthing TCP connection.
  123. schema:
  124. type: int
  125. default: 20978
  126. show_if: [["hostNetwork", "=", false]]
  127. min: 9000
  128. max: 65535
  129. required: true
  130. - variable: udpPort
  131. label: UDP Port
  132. description: The port for the Syncthing UDP connection.
  133. schema:
  134. type: int
  135. default: 20979
  136. show_if: [["hostNetwork", "=", false]]
  137. min: 9000
  138. max: 65535
  139. required: true
  140. - variable: hostNetwork
  141. label: Host Network
  142. description: |
  143. Enabling this will use the host network for Syncthing.</br>
  144. The TCP and UDP ports will listen on port 22000. </br>
  145. Web UI will listen on the port specified above.
  146. schema:
  147. type: boolean
  148. default: false
  149. - variable: syncthingStorage
  150. label: ""
  151. group: Storage Configuration
  152. schema:
  153. type: dict
  154. attrs:
  155. - variable: config
  156. label: Syncthing Config Storage
  157. description: The path to store Syncthing Configuration.
  158. schema:
  159. type: dict
  160. attrs:
  161. - variable: type
  162. label: Type
  163. description: |
  164. ixVolume: Is dataset created automatically by the system.</br>
  165. Host Path: Is a path that already exists on the system.
  166. schema:
  167. type: string
  168. required: true
  169. immutable: true
  170. default: "ixVolume"
  171. enum:
  172. - value: "hostPath"
  173. description: Host Path (Path that already exists on the system)
  174. - value: "ixVolume"
  175. description: ixVolume (Dataset created automatically by the system)
  176. - variable: ixVolumeConfig
  177. label: ixVolume Configuration
  178. description: The configuration for the ixVolume dataset.
  179. schema:
  180. type: dict
  181. show_if: [["type", "=", "ixVolume"]]
  182. $ref:
  183. - "normalize/ixVolume"
  184. attrs:
  185. - variable: aclEnable
  186. label: Enable ACL
  187. description: Enable ACL for the dataset.
  188. schema:
  189. type: boolean
  190. default: false
  191. - variable: datasetName
  192. label: Dataset Name
  193. description: The name of the dataset to use for storage.
  194. schema:
  195. type: string
  196. required: true
  197. immutable: true
  198. hidden: true
  199. default: "config"
  200. - variable: aclEntries
  201. label: ACL Configuration
  202. schema:
  203. type: dict
  204. show_if: [["aclEnable", "=", true]]
  205. attrs: []
  206. - variable: hostPathConfig
  207. label: Host Path Config
  208. schema:
  209. type: dict
  210. show_if: [["type", "=", "hostPath"]]
  211. attrs:
  212. - variable: aclEnable
  213. label: Enable ACL
  214. description: Enable ACL for the dataset.
  215. schema:
  216. type: boolean
  217. default: false
  218. - variable: acl
  219. label: ACL Configuration
  220. schema:
  221. type: dict
  222. show_if: [["aclEnable", "=", true]]
  223. attrs: []
  224. $ref:
  225. - "normalize/acl"
  226. - variable: hostPath
  227. label: Host Path
  228. description: The host path to use for storage.
  229. schema:
  230. type: hostpath
  231. show_if: [["aclEnable", "=", false]]
  232. required: true
  233. - variable: additionalStorages
  234. label: Additional Storage
  235. description: Additional storage for Syncthing.
  236. schema:
  237. type: list
  238. default: []
  239. items:
  240. - variable: storageEntry
  241. label: Storage Entry
  242. schema:
  243. type: dict
  244. attrs:
  245. - variable: type
  246. label: Type
  247. description: |
  248. ixVolume: Is dataset created automatically by the system.</br>
  249. Host Path: Is a path that already exists on the system.</br>
  250. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  251. schema:
  252. type: string
  253. required: true
  254. default: "ixVolume"
  255. immutable: true
  256. enum:
  257. - value: "hostPath"
  258. description: Host Path (Path that already exists on the system)
  259. - value: "ixVolume"
  260. description: ixVolume (Dataset created automatically by the system)
  261. - value: "smb-pv-pvc"
  262. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  263. - variable: readOnly
  264. label: Read Only
  265. description: Mount the volume as read only.
  266. schema:
  267. type: boolean
  268. default: false
  269. - variable: mountPath
  270. label: Mount Path
  271. description: The path inside the container to mount the storage.
  272. schema:
  273. type: path
  274. required: true
  275. - variable: hostPathConfig
  276. label: Host Path Config
  277. schema:
  278. type: dict
  279. show_if: [["type", "=", "hostPath"]]
  280. attrs:
  281. - variable: aclEnable
  282. label: Enable ACL
  283. description: Enable ACL for the dataset.
  284. schema:
  285. type: boolean
  286. default: false
  287. - variable: acl
  288. label: ACL Configuration
  289. schema:
  290. type: dict
  291. show_if: [["aclEnable", "=", true]]
  292. attrs: []
  293. $ref:
  294. - "normalize/acl"
  295. - variable: hostPath
  296. label: Host Path
  297. description: The host path to use for storage.
  298. schema:
  299. type: hostpath
  300. show_if: [["aclEnable", "=", false]]
  301. required: true
  302. - variable: ixVolumeConfig
  303. label: ixVolume Configuration
  304. description: The configuration for the ixVolume dataset.
  305. schema:
  306. type: dict
  307. show_if: [["type", "=", "ixVolume"]]
  308. $ref:
  309. - "normalize/ixVolume"
  310. attrs:
  311. - variable: aclEnable
  312. label: Enable ACL
  313. description: Enable ACL for the dataset.
  314. schema:
  315. type: boolean
  316. default: false
  317. - variable: datasetName
  318. label: Dataset Name
  319. description: The name of the dataset to use for storage.
  320. schema:
  321. type: string
  322. required: true
  323. immutable: true
  324. default: "storage_entry"
  325. - variable: aclEntries
  326. label: ACL Configuration
  327. schema:
  328. type: dict
  329. show_if: [["aclEnable", "=", true]]
  330. attrs: []
  331. - variable: smbConfig
  332. label: SMB Share Configuration
  333. description: The configuration for the SMB Share.
  334. schema:
  335. type: dict
  336. show_if: [["type", "=", "smb-pv-pvc"]]
  337. attrs:
  338. - variable: server
  339. label: Server
  340. description: The server for the SMB share.
  341. schema:
  342. type: string
  343. required: true
  344. - variable: share
  345. label: Share
  346. description: The share name for the SMB share.
  347. schema:
  348. type: string
  349. required: true
  350. - variable: domain
  351. label: Domain (Optional)
  352. description: The domain for the SMB share.
  353. schema:
  354. type: string
  355. - variable: username
  356. label: Username
  357. description: The username for the SMB share.
  358. schema:
  359. type: string
  360. required: true
  361. - variable: password
  362. label: Password
  363. description: The password for the SMB share.
  364. schema:
  365. type: string
  366. required: true
  367. private: true
  368. - variable: size
  369. label: Size (in Gi)
  370. description: The size of the volume quota.
  371. schema:
  372. type: int
  373. required: true
  374. min: 1
  375. default: 1
  376. - variable: resources
  377. group: Resources Configuration
  378. label: ""
  379. schema:
  380. type: dict
  381. attrs:
  382. - variable: limits
  383. label: Limits
  384. schema:
  385. type: dict
  386. attrs:
  387. - variable: cpu
  388. label: CPU
  389. description: CPU limit for Syncthing.
  390. schema:
  391. type: string
  392. max_length: 6
  393. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  394. valid_chars_error: |
  395. Valid CPU limit formats are</br>
  396. - Plain Integer - eg. 1</br>
  397. - Float - eg. 0.5</br>
  398. - Milicpu - eg. 500m
  399. default: "4000m"
  400. required: true
  401. - variable: memory
  402. label: Memory
  403. description: Memory limit for Syncthing.
  404. schema:
  405. type: string
  406. max_length: 12
  407. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  408. valid_chars_error: |
  409. Valid Memory limit formats are</br>
  410. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  411. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  412. - Plain Integer in bytes - eg. 1024</br>
  413. - Exponent - eg. 134e6
  414. default: "8Gi"
  415. required: true