questions.yaml 18 KB

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