questions.yaml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. groups:
  2. - name: Transmission Configuration
  3. description: Configure Transmission
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Transmission
  6. - name: Network Configuration
  7. description: Configure Network for Transmission
  8. - name: Storage Configuration
  9. description: Configure Storage for Transmission
  10. - name: Resources Configuration
  11. description: Configure Resources for Transmission
  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: transmissionConfig
  23. label: ""
  24. group: Transmission Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: additionalEnvs
  29. label: Additional Environment Variables
  30. description: Configure additional environment variables for Transmission.
  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: transmissionRunAs
  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 Transmission 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 Transmission will run as.
  67. schema:
  68. type: int
  69. min: 2
  70. default: 568
  71. required: true
  72. - variable: transmissionNetwork
  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 Transmission Web UI.
  81. schema:
  82. type: int
  83. default: 30096
  84. min: 9000
  85. max: 65535
  86. required: true
  87. - variable: peerPort
  88. label: Peer Port
  89. description: The port for the Transmission Torrent 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: transmissionStorage
  104. label: ""
  105. group: Storage Configuration
  106. schema:
  107. type: dict
  108. attrs:
  109. - variable: config
  110. label: Transmission Config Storage
  111. description: The path to store Transmission Configuration.
  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: datasetName
  131. label: Dataset Name
  132. schema:
  133. type: string
  134. show_if: [["type", "=", "ixVolume"]]
  135. required: true
  136. hidden: true
  137. immutable: true
  138. default: "config"
  139. $ref:
  140. - "normalize/ixVolume"
  141. - variable: hostPath
  142. label: Host Path
  143. schema:
  144. type: hostpath
  145. show_if: [["type", "=", "hostPath"]]
  146. immutable: true
  147. required: true
  148. - variable: downloadsComplete
  149. label: Transmission Complete Downloads Storage
  150. description: The path to store Transmission Complete Downloads.
  151. schema:
  152. type: dict
  153. attrs:
  154. - variable: type
  155. label: Type
  156. description: |
  157. ixVolume: Is dataset created automatically by the system.</br>
  158. Host Path: Is a path that already exists on the system.
  159. schema:
  160. type: string
  161. required: true
  162. immutable: true
  163. default: ixVolume
  164. enum:
  165. - value: hostPath
  166. description: Host Path (Path that already exists on the system)
  167. - value: ixVolume
  168. description: ixVolume (Dataset created automatically by the system)
  169. - variable: datasetName
  170. label: Dataset Name
  171. schema:
  172. type: string
  173. show_if: [["type", "=", "ixVolume"]]
  174. required: true
  175. hidden: true
  176. immutable: true
  177. default: "downloads-complete"
  178. $ref:
  179. - "normalize/ixVolume"
  180. - variable: hostPath
  181. label: Host Path
  182. schema:
  183. type: hostpath
  184. show_if: [["type", "=", "hostPath"]]
  185. immutable: true
  186. required: true
  187. - variable: downloadsDir
  188. label: Downloads Directory (In-Container)
  189. description: The directory inside the container to store downloads.
  190. schema:
  191. type: path
  192. default: /downloads/complete
  193. required: true
  194. immutable: true
  195. - variable: enableIncompleteDir
  196. label: Enable Incomplete Directory
  197. description: Enable incomplete directory.
  198. schema:
  199. type: boolean
  200. default: true
  201. immutable: true
  202. - variable: downloadsIncomplete
  203. label: Transmission Incomplete Downloads Storage
  204. description: The path to store Transmission Incomplete Downloads.
  205. schema:
  206. type: dict
  207. show_if: [["enableIncompleteDir", "=", true]]
  208. attrs:
  209. - variable: type
  210. label: Type
  211. description: |
  212. ixVolume: Is dataset created automatically by the system.</br>
  213. Host Path: Is a path that already exists on the system.
  214. schema:
  215. type: string
  216. required: true
  217. immutable: true
  218. default: ixVolume
  219. enum:
  220. - value: hostPath
  221. description: Host Path (Path that already exists on the system)
  222. - value: ixVolume
  223. description: ixVolume (Dataset created automatically by the system)
  224. - variable: datasetName
  225. label: Dataset Name
  226. schema:
  227. type: string
  228. show_if: [["type", "=", "ixVolume"]]
  229. required: true
  230. hidden: true
  231. immutable: true
  232. default: "downloads-incomplete"
  233. $ref:
  234. - "normalize/ixVolume"
  235. - variable: hostPath
  236. label: Host Path
  237. schema:
  238. type: hostpath
  239. show_if: [["type", "=", "hostPath"]]
  240. immutable: true
  241. required: true
  242. - variable: incompleteDir
  243. label: Incomplete Directory (In-Container)
  244. description: The directory inside the container to store incomplete downloads.
  245. schema:
  246. type: path
  247. default: /downloads/incomplete
  248. show_if: [["enableIncompleteDir", "=", true]]
  249. required: true
  250. immutable: true
  251. - variable: additionalStorages
  252. label: Additional Storage
  253. description: Transmission additional storage
  254. schema:
  255. type: list
  256. default: []
  257. items:
  258. - variable: storageEntry
  259. label: Storage Entry
  260. schema:
  261. type: dict
  262. attrs:
  263. - variable: type
  264. label: Type
  265. description: |
  266. ixVolume: Is dataset created automatically by the system.</br>
  267. Host Path: Is a path that already exists on the system.</br>
  268. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  269. schema:
  270. type: string
  271. required: true
  272. default: "ixVolume"
  273. immutable: true
  274. enum:
  275. - value: "hostPath"
  276. description: Host Path (Path that already exists on the system)
  277. - value: "ixVolume"
  278. description: ixVolume (Dataset created automatically by the system)
  279. - value: "smb-pv-pvc"
  280. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  281. - variable: mountPath
  282. label: Mount Path
  283. description: The path inside the container to mount the storage.
  284. schema:
  285. type: path
  286. required: true
  287. - variable: hostPath
  288. label: Host Path
  289. description: The host path to use for storage.
  290. schema:
  291. type: hostpath
  292. show_if: [["type", "=", "hostPath"]]
  293. required: true
  294. - variable: datasetName
  295. label: Dataset Name
  296. description: The name of the dataset to use for storage.
  297. schema:
  298. type: string
  299. show_if: [["type", "=", "ixVolume"]]
  300. required: true
  301. immutable: true
  302. default: "storage_entry"
  303. $ref:
  304. - "normalize/ixVolume"
  305. - variable: server
  306. label: Server
  307. description: The server for the SMB share.
  308. schema:
  309. type: string
  310. show_if: [["type", "=", "smb-pv-pvc"]]
  311. required: true
  312. - variable: share
  313. label: Share
  314. description: The share name for the SMB share.
  315. schema:
  316. type: string
  317. show_if: [["type", "=", "smb-pv-pvc"]]
  318. required: true
  319. - variable: domain
  320. label: Domain (Optional)
  321. description: The domain for the SMB share.
  322. schema:
  323. type: string
  324. show_if: [["type", "=", "smb-pv-pvc"]]
  325. - variable: username
  326. label: Username
  327. description: The username for the SMB share.
  328. schema:
  329. type: string
  330. show_if: [["type", "=", "smb-pv-pvc"]]
  331. required: true
  332. - variable: password
  333. label: Password
  334. description: The password for the SMB share.
  335. schema:
  336. type: string
  337. show_if: [["type", "=", "smb-pv-pvc"]]
  338. required: true
  339. private: true
  340. - variable: size
  341. label: Size (in Gi)
  342. description: The size of the volume quota.
  343. schema:
  344. type: int
  345. show_if: [["type", "=", "smb-pv-pvc"]]
  346. required: true
  347. min: 1
  348. default: 1
  349. - variable: resources
  350. label: Resources Configuration
  351. group: Resources Configuration
  352. schema:
  353. type: dict
  354. attrs:
  355. - variable: limits
  356. label: Limits
  357. schema:
  358. type: dict
  359. attrs:
  360. - variable: cpu
  361. label: CPU
  362. description: CPU limit for Transmission.
  363. schema:
  364. type: string
  365. max_length: 6
  366. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  367. valid_chars_error: |
  368. Valid CPU limit formats are</br>
  369. - Plain Integer - eg. 1</br>
  370. - Float - eg. 0.5</br>
  371. - Milicpu - eg. 500m
  372. default: "4000m"
  373. required: true
  374. - variable: memory
  375. label: Memory
  376. description: Memory limit for Transmission.
  377. schema:
  378. type: string
  379. max_length: 12
  380. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  381. valid_chars_error: |
  382. Valid Memory limit formats are</br>
  383. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  384. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  385. - Plain Integer in bytes - eg. 1024</br>
  386. - Exponent - eg. 134e6
  387. default: "8Gi"
  388. required: true