questions.yaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  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. enum:
  240. - value: "hostPath"
  241. description: Host Path (Path that already exists on the system)
  242. - value: "ixVolume"
  243. description: ixVolume (Dataset created automatically by the system)
  244. - variable: mountPath
  245. label: Mount Path
  246. description: The path inside the container to mount the storage.
  247. schema:
  248. type: path
  249. required: true
  250. - variable: hostPath
  251. label: Host Path
  252. description: The host path to use for storage.
  253. schema:
  254. type: hostpath
  255. show_if: [["type", "=", "hostPath"]]
  256. required: true
  257. - variable: datasetName
  258. label: Dataset Name
  259. description: The name of the dataset to use for storage.
  260. schema:
  261. type: string
  262. show_if: [["type", "=", "ixVolume"]]
  263. required: true
  264. immutable: true
  265. default: "storage_entry"
  266. $ref:
  267. - "normalize/ixVolume"
  268. - variable: resources
  269. group: Resources Configuration
  270. label: ""
  271. schema:
  272. type: dict
  273. attrs:
  274. - variable: limits
  275. label: Limits
  276. schema:
  277. type: dict
  278. attrs:
  279. - variable: cpu
  280. label: CPU
  281. description: CPU limit for Deluge.
  282. schema:
  283. type: string
  284. max_length: 6
  285. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  286. valid_chars_error: |
  287. Valid CPU limit formats are</br>
  288. - Plain Integer - eg. 1</br>
  289. - Float - eg. 0.5</br>
  290. - Milicpu - eg. 500m
  291. default: "4000m"
  292. required: true
  293. - variable: memory
  294. label: Memory
  295. description: Memory limit for Deluge.
  296. schema:
  297. type: string
  298. max_length: 12
  299. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  300. valid_chars_error: |
  301. Valid Memory limit formats are</br>
  302. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  303. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  304. - Plain Integer in bytes - eg. 1024</br>
  305. - Exponent - eg. 134e6
  306. default: "8Gi"
  307. required: true