questions.yaml 14 KB

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