questions.yaml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  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. immutable: true
  245. enum:
  246. - value: "hostPath"
  247. description: Host Path (Path that already exists on the system)
  248. - value: "ixVolume"
  249. description: ixVolume (Dataset created automatically by the system)
  250. - value: "smb-pv-pvc"
  251. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  252. - variable: mountPath
  253. label: Mount Path
  254. description: The path inside the container to mount the storage.
  255. schema:
  256. type: path
  257. required: true
  258. - variable: hostPath
  259. label: Host Path
  260. description: The host path to use for storage.
  261. schema:
  262. type: hostpath
  263. show_if: [["type", "=", "hostPath"]]
  264. required: true
  265. - variable: datasetName
  266. label: Dataset Name
  267. description: The name of the dataset to use for storage.
  268. schema:
  269. type: string
  270. show_if: [["type", "=", "ixVolume"]]
  271. required: true
  272. immutable: true
  273. default: "storage_entry"
  274. $ref:
  275. - "normalize/ixVolume"
  276. - variable: server
  277. label: Server
  278. description: The server for the SMB share.
  279. schema:
  280. type: string
  281. show_if: [["type", "=", "smb-pv-pvc"]]
  282. required: true
  283. - variable: share
  284. label: Share
  285. description: The share name for the SMB share.
  286. schema:
  287. type: string
  288. show_if: [["type", "=", "smb-pv-pvc"]]
  289. required: true
  290. - variable: domain
  291. label: Domain (Optional)
  292. description: The domain for the SMB share.
  293. schema:
  294. type: string
  295. show_if: [["type", "=", "smb-pv-pvc"]]
  296. - variable: username
  297. label: Username
  298. description: The username for the SMB share.
  299. schema:
  300. type: string
  301. show_if: [["type", "=", "smb-pv-pvc"]]
  302. required: true
  303. - variable: password
  304. label: Password
  305. description: The password for the SMB share.
  306. schema:
  307. type: string
  308. show_if: [["type", "=", "smb-pv-pvc"]]
  309. required: true
  310. private: true
  311. - variable: size
  312. label: Size (in Gi)
  313. description: The size of the volume quota.
  314. schema:
  315. type: int
  316. show_if: [["type", "=", "smb-pv-pvc"]]
  317. required: true
  318. min: 1
  319. default: 1
  320. - variable: resources
  321. label: Resources Configuration
  322. group: Resources Configuration
  323. schema:
  324. type: dict
  325. attrs:
  326. - variable: limits
  327. label: Limits
  328. schema:
  329. type: dict
  330. attrs:
  331. - variable: cpu
  332. label: CPU
  333. description: CPU limit for Transmission.
  334. schema:
  335. type: string
  336. max_length: 6
  337. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  338. valid_chars_error: |
  339. Valid CPU limit formats are</br>
  340. - Plain Integer - eg. 1</br>
  341. - Float - eg. 0.5</br>
  342. - Milicpu - eg. 500m
  343. default: "4000m"
  344. required: true
  345. - variable: memory
  346. label: Memory
  347. description: Memory limit for Transmission.
  348. schema:
  349. type: string
  350. max_length: 12
  351. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  352. valid_chars_error: |
  353. Valid Memory limit formats are</br>
  354. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  355. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  356. - Plain Integer in bytes - eg. 1024</br>
  357. - Exponent - eg. 134e6
  358. default: "8Gi"
  359. required: true