questions.yaml 13 KB

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