questions.yaml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  1. groups:
  2. - name: MeTube Configuration
  3. description: Configure MeTube
  4. - name: User and Group Configuration
  5. description: Configure User and Group for MeTube
  6. - name: Network Configuration
  7. description: Configure Network for MeTube
  8. - name: Storage Configuration
  9. description: Configure Storage for MeTube
  10. - name: Resources Configuration
  11. description: Configure Resources for MeTube
  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: metubeConfig
  23. label: ""
  24. group: MeTube Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: defaultTheme
  29. label: Default Theme
  30. description: The default theme for MeTube.
  31. schema:
  32. type: string
  33. default: auto
  34. required: true
  35. enum:
  36. - value: "auto"
  37. description: Auto
  38. - value: "dark"
  39. description: Dark
  40. - value: "light"
  41. description: Light
  42. - variable: additionalEnvs
  43. label: Additional Environment Variables
  44. description: Configure additional environment variables for MeTube.
  45. schema:
  46. type: list
  47. default: []
  48. items:
  49. - variable: env
  50. label: Environment Variable
  51. schema:
  52. type: dict
  53. attrs:
  54. - variable: name
  55. label: Name
  56. schema:
  57. type: string
  58. required: true
  59. - variable: value
  60. label: Value
  61. schema:
  62. type: string
  63. required: true
  64. - variable: metubeRunAs
  65. label: ""
  66. group: User and Group Configuration
  67. schema:
  68. type: dict
  69. attrs:
  70. - variable: user
  71. label: User ID
  72. description: The user id that MeTube will run as.
  73. schema:
  74. type: int
  75. min: 2
  76. default: 568
  77. required: true
  78. - variable: group
  79. label: Group ID
  80. description: The group id that MeTube will run as.
  81. schema:
  82. type: int
  83. min: 2
  84. default: 568
  85. required: true
  86. - variable: metubeNetwork
  87. label: ""
  88. group: Network Configuration
  89. schema:
  90. type: dict
  91. attrs:
  92. - variable: webPort
  93. label: Web Port
  94. description: The port for the MeTube Web UI.
  95. schema:
  96. type: int
  97. default: 30094
  98. min: 9000
  99. max: 65535
  100. required: true
  101. - variable: hostNetwork
  102. label: Host Network
  103. description: |
  104. Bind to the host network. It's recommended to keep this disabled.</br>
  105. schema:
  106. type: boolean
  107. default: false
  108. - variable: metubeStorage
  109. label: ""
  110. group: Storage Configuration
  111. schema:
  112. type: dict
  113. attrs:
  114. - variable: downloads
  115. label: MeTube Downloads Storage
  116. description: The path to store MeTube Downloads.
  117. schema:
  118. type: dict
  119. attrs:
  120. - variable: type
  121. label: Type
  122. description: |
  123. ixVolume: Is dataset created automatically by the system.</br>
  124. Host Path: Is a path that already exists on the system.
  125. schema:
  126. type: string
  127. required: true
  128. immutable: true
  129. default: "ixVolume"
  130. enum:
  131. - value: "hostPath"
  132. description: Host Path (Path that already exists on the system)
  133. - value: "ixVolume"
  134. description: ixVolume (Dataset created automatically by the system)
  135. - variable: ixVolumeConfig
  136. label: ixVolume Configuration
  137. description: The configuration for the ixVolume dataset.
  138. schema:
  139. type: dict
  140. show_if: [["type", "=", "ixVolume"]]
  141. $ref:
  142. - "normalize/ixVolume"
  143. attrs:
  144. - variable: aclEnable
  145. label: Enable ACL
  146. description: Enable ACL for the dataset.
  147. schema:
  148. type: boolean
  149. default: false
  150. - variable: datasetName
  151. label: Dataset Name
  152. description: The name of the dataset to use for storage.
  153. schema:
  154. type: string
  155. required: true
  156. immutable: true
  157. hidden: true
  158. default: "downloads"
  159. - variable: aclEntries
  160. label: ACL Configuration
  161. schema:
  162. type: dict
  163. show_if: [["aclEnable", "=", true]]
  164. attrs: []
  165. - variable: hostPathConfig
  166. label: Host Path Configuration
  167. schema:
  168. type: dict
  169. show_if: [["type", "=", "hostPath"]]
  170. attrs:
  171. - variable: aclEnable
  172. label: Enable ACL
  173. description: Enable ACL for the dataset.
  174. schema:
  175. type: boolean
  176. default: false
  177. - variable: acl
  178. label: ACL Configuration
  179. schema:
  180. type: dict
  181. show_if: [["aclEnable", "=", true]]
  182. attrs: []
  183. $ref:
  184. - "normalize/acl"
  185. - variable: hostPath
  186. label: Host Path
  187. description: The host path to use for storage.
  188. schema:
  189. type: hostpath
  190. show_if: [["aclEnable", "=", false]]
  191. required: true
  192. - variable: additionalStorages
  193. label: Additional Storage
  194. description: Additional storage for MeTube.
  195. schema:
  196. type: list
  197. default: []
  198. items:
  199. - variable: storageEntry
  200. label: Storage Entry
  201. schema:
  202. type: dict
  203. attrs:
  204. - variable: type
  205. label: Type
  206. description: |
  207. ixVolume: Is dataset created automatically by the system.</br>
  208. Host Path: Is a path that already exists on the system.</br>
  209. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  210. schema:
  211. type: string
  212. required: true
  213. default: "ixVolume"
  214. immutable: true
  215. enum:
  216. - value: "hostPath"
  217. description: Host Path (Path that already exists on the system)
  218. - value: "ixVolume"
  219. description: ixVolume (Dataset created automatically by the system)
  220. - value: "smb-pv-pvc"
  221. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  222. - variable: readOnly
  223. label: Read Only
  224. description: Mount the volume as read only.
  225. schema:
  226. type: boolean
  227. default: false
  228. - variable: mountPath
  229. label: Mount Path
  230. description: The path inside the container to mount the storage.
  231. schema:
  232. type: path
  233. required: true
  234. - variable: hostPathConfig
  235. label: Host Path Configuration
  236. schema:
  237. type: dict
  238. show_if: [["type", "=", "hostPath"]]
  239. attrs:
  240. - variable: aclEnable
  241. label: Enable ACL
  242. description: Enable ACL for the dataset.
  243. schema:
  244. type: boolean
  245. default: false
  246. - variable: acl
  247. label: ACL Configuration
  248. schema:
  249. type: dict
  250. show_if: [["aclEnable", "=", true]]
  251. attrs: []
  252. $ref:
  253. - "normalize/acl"
  254. - variable: hostPath
  255. label: Host Path
  256. description: The host path to use for storage.
  257. schema:
  258. type: hostpath
  259. show_if: [["aclEnable", "=", false]]
  260. required: true
  261. - variable: ixVolumeConfig
  262. label: ixVolume Configuration
  263. description: The configuration for the ixVolume dataset.
  264. schema:
  265. type: dict
  266. show_if: [["type", "=", "ixVolume"]]
  267. $ref:
  268. - "normalize/ixVolume"
  269. attrs:
  270. - variable: aclEnable
  271. label: Enable ACL
  272. description: Enable ACL for the dataset.
  273. schema:
  274. type: boolean
  275. default: false
  276. - variable: datasetName
  277. label: Dataset Name
  278. description: The name of the dataset to use for storage.
  279. schema:
  280. type: string
  281. required: true
  282. immutable: true
  283. default: "storage_entry"
  284. - variable: aclEntries
  285. label: ACL Configuration
  286. schema:
  287. type: dict
  288. show_if: [["aclEnable", "=", true]]
  289. attrs: []
  290. - variable: smbConfig
  291. label: SMB Share Configuration
  292. description: The configuration for the SMB Share.
  293. schema:
  294. type: dict
  295. show_if: [["type", "=", "smb-pv-pvc"]]
  296. attrs:
  297. - variable: server
  298. label: Server
  299. description: The server for the SMB share.
  300. schema:
  301. type: string
  302. required: true
  303. - variable: share
  304. label: Share
  305. description: The share name for the SMB share.
  306. schema:
  307. type: string
  308. required: true
  309. - variable: domain
  310. label: Domain (Optional)
  311. description: The domain for the SMB share.
  312. schema:
  313. type: string
  314. - variable: username
  315. label: Username
  316. description: The username for the SMB share.
  317. schema:
  318. type: string
  319. required: true
  320. - variable: password
  321. label: Password
  322. description: The password for the SMB share.
  323. schema:
  324. type: string
  325. required: true
  326. private: true
  327. - variable: size
  328. label: Size (in Gi)
  329. description: The size of the volume quota.
  330. schema:
  331. type: int
  332. required: true
  333. min: 1
  334. default: 1
  335. - variable: resources
  336. group: Resources Configuration
  337. label: ""
  338. schema:
  339. type: dict
  340. attrs:
  341. - variable: limits
  342. label: Limits
  343. schema:
  344. type: dict
  345. attrs:
  346. - variable: cpu
  347. label: CPU
  348. description: CPU limit for MeTube.
  349. schema:
  350. type: string
  351. max_length: 6
  352. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  353. valid_chars_error: |
  354. Valid CPU limit formats are</br>
  355. - Plain Integer - eg. 1</br>
  356. - Float - eg. 0.5</br>
  357. - Milicpu - eg. 500m
  358. default: "4000m"
  359. required: true
  360. - variable: memory
  361. label: Memory
  362. description: Memory limit for MeTube.
  363. schema:
  364. type: string
  365. max_length: 12
  366. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  367. valid_chars_error: |
  368. Valid Memory limit formats are</br>
  369. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  370. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  371. - Plain Integer in bytes - eg. 1024</br>
  372. - Exponent - eg. 134e6
  373. default: "8Gi"
  374. required: true