questions.yaml 18 KB

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