questions.yaml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  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: datasetName
  164. label: Dataset Name
  165. schema:
  166. type: string
  167. show_if: [["type", "=", "ixVolume"]]
  168. required: true
  169. hidden: true
  170. immutable: true
  171. default: "config"
  172. $ref:
  173. - "normalize/ixVolume"
  174. - variable: hostPath
  175. label: Host Path
  176. schema:
  177. type: hostpath
  178. show_if: [["type", "=", "hostPath"]]
  179. immutable: true
  180. required: true
  181. - variable: downloads
  182. label: Deluge Downloads Storage
  183. description: The path to store Deluge Downloads.
  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: "downloads"
  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 Deluge.
  223. schema:
  224. type: list
  225. default: []
  226. items:
  227. - variable: storageEntry
  228. label: Storage Entry
  229. schema:
  230. type: dict
  231. attrs:
  232. - variable: type
  233. label: Type
  234. description: |
  235. ixVolume: Is dataset created automatically by the system.</br>
  236. Host Path: Is a path that already exists on the system.</br>
  237. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  238. schema:
  239. type: string
  240. required: true
  241. default: "ixVolume"
  242. immutable: true
  243. enum:
  244. - value: "hostPath"
  245. description: Host Path (Path that already exists on the system)
  246. - value: "ixVolume"
  247. description: ixVolume (Dataset created automatically by the system)
  248. - value: "smb-pv-pvc"
  249. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  250. - variable: mountPath
  251. label: Mount Path
  252. description: The path inside the container to mount the storage.
  253. schema:
  254. type: path
  255. required: true
  256. - variable: hostPath
  257. label: Host Path
  258. description: The host path to use for storage.
  259. schema:
  260. type: hostpath
  261. show_if: [["type", "=", "hostPath"]]
  262. required: true
  263. - variable: datasetName
  264. label: Dataset Name
  265. description: The name of the dataset to use for storage.
  266. schema:
  267. type: string
  268. show_if: [["type", "=", "ixVolume"]]
  269. required: true
  270. immutable: true
  271. default: "storage_entry"
  272. $ref:
  273. - "normalize/ixVolume"
  274. - variable: server
  275. label: Server
  276. description: The server for the SMB share.
  277. schema:
  278. type: string
  279. show_if: [["type", "=", "smb-pv-pvc"]]
  280. required: true
  281. - variable: share
  282. label: Share
  283. description: The share name for the SMB share.
  284. schema:
  285. type: string
  286. show_if: [["type", "=", "smb-pv-pvc"]]
  287. required: true
  288. - variable: domain
  289. label: Domain (Optional)
  290. description: The domain for the SMB share.
  291. schema:
  292. type: string
  293. show_if: [["type", "=", "smb-pv-pvc"]]
  294. - variable: username
  295. label: Username
  296. description: The username for the SMB share.
  297. schema:
  298. type: string
  299. show_if: [["type", "=", "smb-pv-pvc"]]
  300. required: true
  301. - variable: password
  302. label: Password
  303. description: The password for the SMB share.
  304. schema:
  305. type: string
  306. show_if: [["type", "=", "smb-pv-pvc"]]
  307. required: true
  308. private: true
  309. - variable: size
  310. label: Size (in Gi)
  311. description: The size of the volume quota.
  312. schema:
  313. type: int
  314. show_if: [["type", "=", "smb-pv-pvc"]]
  315. required: true
  316. min: 1
  317. default: 1
  318. - variable: resources
  319. group: Resources Configuration
  320. label: ""
  321. schema:
  322. type: dict
  323. attrs:
  324. - variable: limits
  325. label: Limits
  326. schema:
  327. type: dict
  328. attrs:
  329. - variable: cpu
  330. label: CPU
  331. description: CPU limit for Deluge.
  332. schema:
  333. type: string
  334. max_length: 6
  335. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  336. valid_chars_error: |
  337. Valid CPU limit formats are</br>
  338. - Plain Integer - eg. 1</br>
  339. - Float - eg. 0.5</br>
  340. - Milicpu - eg. 500m
  341. default: "4000m"
  342. required: true
  343. - variable: memory
  344. label: Memory
  345. description: Memory limit for Deluge.
  346. schema:
  347. type: string
  348. max_length: 12
  349. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  350. valid_chars_error: |
  351. Valid Memory limit formats are</br>
  352. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  353. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  354. - Plain Integer in bytes - eg. 1024</br>
  355. - Exponent - eg. 134e6
  356. default: "8Gi"
  357. required: true