questions.yaml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. groups:
  2. - name: tinyMediaManager Configuration
  3. description: Configure tinyMediaManager
  4. - name: User and Group Configuration
  5. description: Configure User and Group for tinyMediaManager
  6. - name: Network Configuration
  7. description: Configure Network for tinyMediaManager
  8. - name: Storage Configuration
  9. description: Configure Storage for tinyMediaManager
  10. - name: Resources Configuration
  11. description: Configure Resources for tinyMediaManager
  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: tmmConfig
  23. label: ""
  24. group: tinyMediaManager Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: password
  29. label: Password (Optional)
  30. description: The password for tinyMediaManager.
  31. schema:
  32. type: string
  33. default: ""
  34. - variable: additionalEnvs
  35. label: Additional Environment Variables
  36. description: Configure additional environment variables for tinyMediaManager.
  37. schema:
  38. type: list
  39. default: []
  40. items:
  41. - variable: env
  42. label: Environment Variable
  43. schema:
  44. type: dict
  45. attrs:
  46. - variable: name
  47. label: Name
  48. schema:
  49. type: string
  50. required: true
  51. - variable: value
  52. label: Value
  53. schema:
  54. type: string
  55. required: true
  56. - variable: tmmID
  57. label: ""
  58. group: User and Group Configuration
  59. schema:
  60. type: dict
  61. attrs:
  62. - variable: user
  63. label: User ID
  64. description: The user id that tinyMediaManager files will be owned by.
  65. schema:
  66. type: int
  67. min: 2
  68. default: 568
  69. required: true
  70. - variable: group
  71. label: Group ID
  72. description: The group id that tinyMediaManager files will be owned by.
  73. schema:
  74. type: int
  75. min: 2
  76. default: 568
  77. required: true
  78. - variable: tmmNetwork
  79. label: ""
  80. group: Network Configuration
  81. schema:
  82. type: dict
  83. attrs:
  84. - variable: webPort
  85. label: Web Port
  86. description: The port for the tinyMediaManager Web UI.
  87. schema:
  88. type: int
  89. default: 30057
  90. min: 9000
  91. max: 65535
  92. required: true
  93. - variable: tmmStorage
  94. label: ""
  95. group: Storage Configuration
  96. schema:
  97. type: dict
  98. attrs:
  99. - variable: data
  100. label: tinyMediaManager Data Storage
  101. description: The path to store tinyMediaManager Data.
  102. schema:
  103. type: dict
  104. attrs:
  105. - variable: type
  106. label: Type
  107. description: |
  108. ixVolume: Is dataset created automatically by the system.</br>
  109. Host Path: Is a path that already exists on the system.
  110. schema:
  111. type: string
  112. required: true
  113. immutable: true
  114. default: "ixVolume"
  115. enum:
  116. - value: "hostPath"
  117. description: Host Path (Path that already exists on the system)
  118. - value: "ixVolume"
  119. description: ixVolume (Dataset created automatically by the system)
  120. - variable: ixVolumeConfig
  121. label: ixVolume Configuration
  122. description: The configuration for the ixVolume dataset.
  123. schema:
  124. type: dict
  125. show_if: [["type", "=", "ixVolume"]]
  126. $ref:
  127. - "normalize/ixVolume"
  128. attrs:
  129. - variable: aclEnable
  130. label: Enable ACL
  131. description: Enable ACL for the dataset.
  132. schema:
  133. type: boolean
  134. default: false
  135. - variable: datasetName
  136. label: Dataset Name
  137. description: The name of the dataset to use for storage.
  138. schema:
  139. type: string
  140. required: true
  141. immutable: true
  142. hidden: true
  143. default: "data"
  144. - variable: aclEntries
  145. label: ACL Configuration
  146. schema:
  147. type: dict
  148. show_if: [["aclEnable", "=", true]]
  149. attrs: []
  150. - variable: hostPathConfig
  151. label: Host Path Configuration
  152. schema:
  153. type: dict
  154. show_if: [["type", "=", "hostPath"]]
  155. attrs:
  156. - variable: aclEnable
  157. label: Enable ACL
  158. description: Enable ACL for the dataset.
  159. schema:
  160. type: boolean
  161. default: false
  162. - variable: acl
  163. label: ACL Configuration
  164. schema:
  165. type: dict
  166. show_if: [["aclEnable", "=", true]]
  167. attrs: []
  168. $ref:
  169. - "normalize/acl"
  170. - variable: hostPath
  171. label: Host Path
  172. description: The host path to use for storage.
  173. schema:
  174. type: hostpath
  175. show_if: [["aclEnable", "=", false]]
  176. required: true
  177. - variable: additionalStorages
  178. label: Additional Storage
  179. description: Additional storage for tinyMediaManager.
  180. schema:
  181. type: list
  182. default: []
  183. items:
  184. - variable: storageEntry
  185. label: Storage Entry
  186. schema:
  187. type: dict
  188. attrs:
  189. - variable: type
  190. label: Type
  191. description: |
  192. ixVolume: Is dataset created automatically by the system.</br>
  193. Host Path: Is a path that already exists on the system.</br>
  194. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  195. schema:
  196. type: string
  197. required: true
  198. default: "ixVolume"
  199. immutable: true
  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. - value: "smb-pv-pvc"
  206. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  207. - variable: readOnly
  208. label: Read Only
  209. description: Mount the volume as read only.
  210. schema:
  211. type: boolean
  212. default: false
  213. - variable: mountPath
  214. label: Mount Path
  215. description: The path inside the container to mount the storage.
  216. schema:
  217. type: path
  218. required: true
  219. - variable: hostPathConfig
  220. label: Host Path Configuration
  221. schema:
  222. type: dict
  223. show_if: [["type", "=", "hostPath"]]
  224. attrs:
  225. - variable: aclEnable
  226. label: Enable ACL
  227. description: Enable ACL for the dataset.
  228. schema:
  229. type: boolean
  230. default: false
  231. - variable: acl
  232. label: ACL Configuration
  233. schema:
  234. type: dict
  235. show_if: [["aclEnable", "=", true]]
  236. attrs: []
  237. $ref:
  238. - "normalize/acl"
  239. - variable: hostPath
  240. label: Host Path
  241. description: The host path to use for storage.
  242. schema:
  243. type: hostpath
  244. show_if: [["aclEnable", "=", false]]
  245. required: true
  246. - variable: ixVolumeConfig
  247. label: ixVolume Configuration
  248. description: The configuration for the ixVolume dataset.
  249. schema:
  250. type: dict
  251. show_if: [["type", "=", "ixVolume"]]
  252. $ref:
  253. - "normalize/ixVolume"
  254. attrs:
  255. - variable: aclEnable
  256. label: Enable ACL
  257. description: Enable ACL for the dataset.
  258. schema:
  259. type: boolean
  260. default: false
  261. - variable: datasetName
  262. label: Dataset Name
  263. description: The name of the dataset to use for storage.
  264. schema:
  265. type: string
  266. required: true
  267. immutable: true
  268. default: "storage_entry"
  269. - variable: aclEntries
  270. label: ACL Configuration
  271. schema:
  272. type: dict
  273. show_if: [["aclEnable", "=", true]]
  274. attrs: []
  275. - variable: smbConfig
  276. label: SMB Share Configuration
  277. description: The configuration for the SMB Share.
  278. schema:
  279. type: dict
  280. show_if: [["type", "=", "smb-pv-pvc"]]
  281. attrs:
  282. - variable: server
  283. label: Server
  284. description: The server for the SMB share.
  285. schema:
  286. type: string
  287. required: true
  288. - variable: share
  289. label: Share
  290. description: The share name for the SMB share.
  291. schema:
  292. type: string
  293. required: true
  294. - variable: domain
  295. label: Domain (Optional)
  296. description: The domain for the SMB share.
  297. schema:
  298. type: string
  299. - variable: username
  300. label: Username
  301. description: The username for the SMB share.
  302. schema:
  303. type: string
  304. required: true
  305. - variable: password
  306. label: Password
  307. description: The password for the SMB share.
  308. schema:
  309. type: string
  310. required: true
  311. private: true
  312. - variable: size
  313. label: Size (in Gi)
  314. description: The size of the volume quota.
  315. schema:
  316. type: int
  317. required: true
  318. min: 1
  319. default: 1
  320. - variable: resources
  321. group: Resources Configuration
  322. label: ""
  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 tinyMediaManager.
  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 tinyMediaManager.
  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