questions.yaml 13 KB

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