questions.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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. default: ixVolume
  124. enum:
  125. - value: hostPath
  126. description: Host Path (Path that already exists on the system)
  127. - value: ixVolume
  128. description: ixVolume (Dataset created automatically by the system)
  129. - variable: datasetName
  130. label: Dataset Name
  131. schema:
  132. type: string
  133. show_if: [["type", "=", "ixVolume"]]
  134. required: true
  135. hidden: true
  136. immutable: true
  137. default: "config"
  138. $ref:
  139. - "normalize/ixVolume"
  140. - variable: hostPath
  141. label: Host Path
  142. schema:
  143. type: hostpath
  144. show_if: [["type", "=", "hostPath"]]
  145. immutable: true
  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. default: ixVolume
  162. enum:
  163. - value: hostPath
  164. description: Host Path (Path that already exists on the system)
  165. - value: ixVolume
  166. description: ixVolume (Dataset created automatically by the system)
  167. - variable: datasetName
  168. label: Dataset Name
  169. schema:
  170. type: string
  171. show_if: [["type", "=", "ixVolume"]]
  172. required: true
  173. hidden: true
  174. immutable: true
  175. default: "downloads-complete"
  176. $ref:
  177. - "normalize/ixVolume"
  178. - variable: hostPath
  179. label: Host Path
  180. schema:
  181. type: hostpath
  182. show_if: [["type", "=", "hostPath"]]
  183. immutable: true
  184. required: true
  185. - variable: downloadsIncomplete
  186. label: Transmission Incomplete Downloads Storage
  187. description: The path to store Transmission Incomplete Downloads.
  188. schema:
  189. type: dict
  190. attrs:
  191. - variable: type
  192. label: Type
  193. description: |
  194. ixVolume: Is dataset created automatically by the system.</br>
  195. Host Path: Is a path that already exists on the system.
  196. schema:
  197. type: string
  198. required: true
  199. default: ixVolume
  200. enum:
  201. - value: hostPath
  202. description: Host Path (Path that already exists on the system)
  203. - value: ixVolume
  204. description: ixVolume (Dataset created automatically by the system)
  205. - variable: datasetName
  206. label: Dataset Name
  207. schema:
  208. type: string
  209. show_if: [["type", "=", "ixVolume"]]
  210. required: true
  211. hidden: true
  212. immutable: true
  213. default: "downloads-incomplete"
  214. $ref:
  215. - "normalize/ixVolume"
  216. - variable: hostPath
  217. label: Host Path
  218. schema:
  219. type: hostpath
  220. show_if: [["type", "=", "hostPath"]]
  221. immutable: true
  222. required: true
  223. - variable: additionalStorages
  224. label: Additional Storage
  225. description: Transmission additional storage
  226. schema:
  227. type: list
  228. default: []
  229. items:
  230. - variable: storageEntry
  231. label: Storage Entry
  232. schema:
  233. type: dict
  234. attrs:
  235. - variable: type
  236. label: Type
  237. description: |
  238. ixVolume: Is dataset created automatically by the system.</br>
  239. Host Path: Is a path that already exists on the system.
  240. schema:
  241. type: string
  242. required: true
  243. default: "ixVolume"
  244. enum:
  245. - value: "hostPath"
  246. description: Host Path (Path that already exists on the system)
  247. - value: "ixVolume"
  248. description: ixVolume (Dataset created automatically by the system)
  249. - variable: mountPath
  250. label: Mount Path
  251. description: The path inside the container to mount the storage.
  252. schema:
  253. type: path
  254. required: true
  255. - variable: hostPath
  256. label: Host Path
  257. description: The host path to use for storage.
  258. schema:
  259. type: hostpath
  260. show_if: [["type", "=", "hostPath"]]
  261. required: true
  262. - variable: datasetName
  263. label: Dataset Name
  264. description: The name of the dataset to use for storage.
  265. schema:
  266. type: string
  267. show_if: [["type", "=", "ixVolume"]]
  268. required: true
  269. immutable: true
  270. default: "storage_entry"
  271. $ref:
  272. - "normalize/ixVolume"
  273. - variable: resources
  274. label: Resources Configuration
  275. group: Resources Configuration
  276. schema:
  277. type: dict
  278. attrs:
  279. - variable: limits
  280. label: Limits
  281. schema:
  282. type: dict
  283. attrs:
  284. - variable: cpu
  285. label: CPU
  286. description: CPU limit for Transmission.
  287. schema:
  288. type: string
  289. max_length: 6
  290. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  291. valid_chars_error: |
  292. Valid CPU limit formats are</br>
  293. - Plain Integer - eg. 1</br>
  294. - Float - eg. 0.5</br>
  295. - Milicpu - eg. 500m
  296. default: "4000m"
  297. required: true
  298. - variable: memory
  299. label: Memory
  300. description: Memory limit for Transmission.
  301. schema:
  302. type: string
  303. max_length: 12
  304. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  305. valid_chars_error: |
  306. Valid Memory limit formats are</br>
  307. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  308. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  309. - Plain Integer in bytes - eg. 1024</br>
  310. - Exponent - eg. 134e6
  311. default: "8Gi"
  312. required: true