questions.yaml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  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: ixVolumeConfig
  131. label: ixVolume Configuration
  132. description: The configuration for the ixVolume dataset.
  133. schema:
  134. type: dict
  135. show_if: [["type", "=", "ixVolume"]]
  136. $ref:
  137. - "normalize/ixVolume"
  138. attrs:
  139. - variable: aclEnable
  140. label: Enable ACL
  141. description: Enable ACL for the dataset.
  142. schema:
  143. type: boolean
  144. default: false
  145. - variable: datasetName
  146. label: Dataset Name
  147. description: The name of the dataset to use for storage.
  148. schema:
  149. type: string
  150. required: true
  151. immutable: true
  152. hidden: true
  153. default: "config"
  154. - variable: aclEntries
  155. label: ACL Configuration
  156. schema:
  157. type: dict
  158. show_if: [["aclEnable", "=", true]]
  159. attrs: []
  160. - variable: hostPathConfig
  161. label: Host Path Configuration
  162. schema:
  163. type: dict
  164. show_if: [["type", "=", "hostPath"]]
  165. attrs:
  166. - variable: aclEnable
  167. label: Enable ACL
  168. description: Enable ACL for the dataset.
  169. schema:
  170. type: boolean
  171. default: false
  172. - variable: acl
  173. label: ACL Configuration
  174. schema:
  175. type: dict
  176. show_if: [["aclEnable", "=", true]]
  177. attrs: []
  178. $ref:
  179. - "normalize/acl"
  180. - variable: hostPath
  181. label: Host Path
  182. description: The host path to use for storage.
  183. schema:
  184. type: hostpath
  185. show_if: [["aclEnable", "=", false]]
  186. required: true
  187. - variable: downloadsComplete
  188. label: Transmission Complete Downloads Storage
  189. description: The path to store Transmission Complete 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: ixVolumeConfig
  209. label: ixVolume Configuration
  210. description: The configuration for the ixVolume dataset.
  211. schema:
  212. type: dict
  213. show_if: [["type", "=", "ixVolume"]]
  214. $ref:
  215. - "normalize/ixVolume"
  216. attrs:
  217. - variable: aclEnable
  218. label: Enable ACL
  219. description: Enable ACL for the dataset.
  220. schema:
  221. type: boolean
  222. default: false
  223. - variable: datasetName
  224. label: Dataset Name
  225. description: The name of the dataset to use for storage.
  226. schema:
  227. type: string
  228. required: true
  229. immutable: true
  230. hidden: true
  231. default: "downloads-complete"
  232. - variable: aclEntries
  233. label: ACL Configuration
  234. schema:
  235. type: dict
  236. show_if: [["aclEnable", "=", true]]
  237. attrs: []
  238. - variable: hostPathConfig
  239. label: Host Path Configuration
  240. schema:
  241. type: dict
  242. show_if: [["type", "=", "hostPath"]]
  243. attrs:
  244. - variable: aclEnable
  245. label: Enable ACL
  246. description: Enable ACL for the dataset.
  247. schema:
  248. type: boolean
  249. default: false
  250. - variable: acl
  251. label: ACL Configuration
  252. schema:
  253. type: dict
  254. show_if: [["aclEnable", "=", true]]
  255. attrs: []
  256. $ref:
  257. - "normalize/acl"
  258. - variable: hostPath
  259. label: Host Path
  260. description: The host path to use for storage.
  261. schema:
  262. type: hostpath
  263. show_if: [["aclEnable", "=", false]]
  264. required: true
  265. - variable: downloadsDir
  266. label: Downloads Directory (In-Container)
  267. description: The directory inside the container to store downloads.
  268. schema:
  269. type: path
  270. default: /downloads/complete
  271. required: true
  272. immutable: true
  273. - variable: enableIncompleteDir
  274. label: Enable Incomplete Directory
  275. description: Enable incomplete directory.
  276. schema:
  277. type: boolean
  278. default: true
  279. immutable: true
  280. - variable: downloadsIncomplete
  281. label: Transmission Incomplete Downloads Storage
  282. description: The path to store Transmission Incomplete Downloads.
  283. schema:
  284. type: dict
  285. show_if: [["enableIncompleteDir", "=", true]]
  286. attrs:
  287. - variable: type
  288. label: Type
  289. description: |
  290. ixVolume: Is dataset created automatically by the system.</br>
  291. Host Path: Is a path that already exists on the system.
  292. schema:
  293. type: string
  294. required: true
  295. immutable: true
  296. default: ixVolume
  297. enum:
  298. - value: hostPath
  299. description: Host Path (Path that already exists on the system)
  300. - value: ixVolume
  301. description: ixVolume (Dataset created automatically by the system)
  302. - variable: ixVolumeConfig
  303. label: ixVolume Configuration
  304. description: The configuration for the ixVolume dataset.
  305. schema:
  306. type: dict
  307. show_if: [["type", "=", "ixVolume"]]
  308. $ref:
  309. - "normalize/ixVolume"
  310. attrs:
  311. - variable: aclEnable
  312. label: Enable ACL
  313. description: Enable ACL for the dataset.
  314. schema:
  315. type: boolean
  316. default: false
  317. - variable: datasetName
  318. label: Dataset Name
  319. description: The name of the dataset to use for storage.
  320. schema:
  321. type: string
  322. required: true
  323. immutable: true
  324. hidden: true
  325. default: "downloads-incomplete"
  326. - variable: aclEntries
  327. label: ACL Configuration
  328. schema:
  329. type: dict
  330. show_if: [["aclEnable", "=", true]]
  331. attrs: []
  332. - variable: hostPathConfig
  333. label: Host Path Configuration
  334. schema:
  335. type: dict
  336. show_if: [["type", "=", "hostPath"]]
  337. attrs:
  338. - variable: aclEnable
  339. label: Enable ACL
  340. description: Enable ACL for the dataset.
  341. schema:
  342. type: boolean
  343. default: false
  344. - variable: acl
  345. label: ACL Configuration
  346. schema:
  347. type: dict
  348. show_if: [["aclEnable", "=", true]]
  349. attrs: []
  350. $ref:
  351. - "normalize/acl"
  352. - variable: hostPath
  353. label: Host Path
  354. description: The host path to use for storage.
  355. schema:
  356. type: hostpath
  357. show_if: [["aclEnable", "=", false]]
  358. required: true
  359. - variable: incompleteDir
  360. label: Incomplete Directory (In-Container)
  361. description: The directory inside the container to store incomplete downloads.
  362. schema:
  363. type: path
  364. default: /downloads/incomplete
  365. show_if: [["enableIncompleteDir", "=", true]]
  366. required: true
  367. immutable: true
  368. - variable: additionalStorages
  369. label: Additional Storage
  370. description: Transmission additional storage
  371. schema:
  372. type: list
  373. default: []
  374. items:
  375. - variable: storageEntry
  376. label: Storage Entry
  377. schema:
  378. type: dict
  379. attrs:
  380. - variable: type
  381. label: Type
  382. description: |
  383. ixVolume: Is dataset created automatically by the system.</br>
  384. Host Path: Is a path that already exists on the system.</br>
  385. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  386. schema:
  387. type: string
  388. required: true
  389. default: "ixVolume"
  390. immutable: true
  391. enum:
  392. - value: "hostPath"
  393. description: Host Path (Path that already exists on the system)
  394. - value: "ixVolume"
  395. description: ixVolume (Dataset created automatically by the system)
  396. - value: "smb-pv-pvc"
  397. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  398. - variable: readOnly
  399. label: Read Only
  400. description: Mount the volume as read only.
  401. schema:
  402. type: boolean
  403. default: false
  404. - variable: mountPath
  405. label: Mount Path
  406. description: The path inside the container to mount the storage.
  407. schema:
  408. type: path
  409. required: true
  410. - variable: hostPathConfig
  411. label: Host Path Configuration
  412. schema:
  413. type: dict
  414. show_if: [["type", "=", "hostPath"]]
  415. attrs:
  416. - variable: aclEnable
  417. label: Enable ACL
  418. description: Enable ACL for the dataset.
  419. schema:
  420. type: boolean
  421. default: false
  422. - variable: acl
  423. label: ACL Configuration
  424. schema:
  425. type: dict
  426. show_if: [["aclEnable", "=", true]]
  427. attrs: []
  428. $ref:
  429. - "normalize/acl"
  430. - variable: hostPath
  431. label: Host Path
  432. description: The host path to use for storage.
  433. schema:
  434. type: hostpath
  435. show_if: [["aclEnable", "=", false]]
  436. required: true
  437. - variable: ixVolumeConfig
  438. label: ixVolume Configuration
  439. description: The configuration for the ixVolume dataset.
  440. schema:
  441. type: dict
  442. show_if: [["type", "=", "ixVolume"]]
  443. $ref:
  444. - "normalize/ixVolume"
  445. attrs:
  446. - variable: aclEnable
  447. label: Enable ACL
  448. description: Enable ACL for the dataset.
  449. schema:
  450. type: boolean
  451. default: false
  452. - variable: datasetName
  453. label: Dataset Name
  454. description: The name of the dataset to use for storage.
  455. schema:
  456. type: string
  457. required: true
  458. immutable: true
  459. default: "storage_entry"
  460. - variable: aclEntries
  461. label: ACL Configuration
  462. schema:
  463. type: dict
  464. show_if: [["aclEnable", "=", true]]
  465. attrs: []
  466. - variable: smbConfig
  467. label: SMB Share Configuration
  468. description: The configuration for the SMB Share.
  469. schema:
  470. type: dict
  471. show_if: [["type", "=", "smb-pv-pvc"]]
  472. attrs:
  473. - variable: server
  474. label: Server
  475. description: The server for the SMB share.
  476. schema:
  477. type: string
  478. required: true
  479. - variable: share
  480. label: Share
  481. description: The share name for the SMB share.
  482. schema:
  483. type: string
  484. required: true
  485. - variable: domain
  486. label: Domain (Optional)
  487. description: The domain for the SMB share.
  488. schema:
  489. type: string
  490. - variable: username
  491. label: Username
  492. description: The username for the SMB share.
  493. schema:
  494. type: string
  495. required: true
  496. - variable: password
  497. label: Password
  498. description: The password for the SMB share.
  499. schema:
  500. type: string
  501. required: true
  502. private: true
  503. - variable: size
  504. label: Size (in Gi)
  505. description: The size of the volume quota.
  506. schema:
  507. type: int
  508. required: true
  509. min: 1
  510. default: 1
  511. - variable: resources
  512. label: Resources Configuration
  513. group: Resources Configuration
  514. schema:
  515. type: dict
  516. attrs:
  517. - variable: limits
  518. label: Limits
  519. schema:
  520. type: dict
  521. attrs:
  522. - variable: cpu
  523. label: CPU
  524. description: CPU limit for Transmission.
  525. schema:
  526. type: string
  527. max_length: 6
  528. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  529. valid_chars_error: |
  530. Valid CPU limit formats are</br>
  531. - Plain Integer - eg. 1</br>
  532. - Float - eg. 0.5</br>
  533. - Milicpu - eg. 500m
  534. default: "4000m"
  535. required: true
  536. - variable: memory
  537. label: Memory
  538. description: Memory limit for Transmission.
  539. schema:
  540. type: string
  541. max_length: 12
  542. valid_chars: "^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$"
  543. valid_chars_error: |
  544. Valid Memory limit formats are</br>
  545. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  546. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  547. - Plain Integer in bytes - eg. 1024</br>
  548. - Exponent - eg. 134e6
  549. default: "8Gi"
  550. required: true