questions.yaml 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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. default: "ixVolume"
  114. enum:
  115. - value: "hostPath"
  116. description: Host Path (Path that already exists on the system)
  117. - value: "ixVolume"
  118. description: ixVolume (Dataset created automatically by the system)
  119. - variable: datasetName
  120. label: Dataset Name
  121. schema:
  122. type: string
  123. show_if: [["type", "=", "ixVolume"]]
  124. required: true
  125. hidden: true
  126. immutable: true
  127. default: "data"
  128. $ref:
  129. - "normalize/ixVolume"
  130. - variable: hostPath
  131. label: Host Path
  132. schema:
  133. type: hostpath
  134. show_if: [["type", "=", "hostPath"]]
  135. immutable: true
  136. required: true
  137. - variable: additionalStorages
  138. label: Additional Storage
  139. description: Additional storage for tinyMediaManager.
  140. schema:
  141. type: list
  142. default: []
  143. items:
  144. - variable: storageEntry
  145. label: Storage Entry
  146. schema:
  147. type: dict
  148. attrs:
  149. - variable: type
  150. label: Type
  151. description: |
  152. ixVolume: Is dataset created automatically by the system.</br>
  153. Host Path: Is a path that already exists on the system.
  154. schema:
  155. type: string
  156. required: true
  157. default: "ixVolume"
  158. immutable: true
  159. enum:
  160. - value: "hostPath"
  161. description: Host Path (Path that already exists on the system)
  162. - value: "ixVolume"
  163. description: ixVolume (Dataset created automatically by the system)
  164. - value: "smb-pv-pvc"
  165. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  166. - variable: mountPath
  167. label: Mount Path
  168. description: The path inside the container to mount the storage.
  169. schema:
  170. type: path
  171. required: true
  172. - variable: hostPath
  173. label: Host Path
  174. description: The host path to use for storage.
  175. schema:
  176. type: hostpath
  177. show_if: [["type", "=", "hostPath"]]
  178. required: true
  179. - variable: datasetName
  180. label: Dataset Name
  181. description: The name of the dataset to use for storage.
  182. schema:
  183. type: string
  184. show_if: [["type", "=", "ixVolume"]]
  185. required: true
  186. immutable: true
  187. default: "storage_entry"
  188. $ref:
  189. - "normalize/ixVolume"
  190. - variable: server
  191. label: Server
  192. description: The server for the SMB share.
  193. schema:
  194. type: string
  195. show_if: [["type", "=", "smb-pv-pvc"]]
  196. required: true
  197. - variable: share
  198. label: Share
  199. description: The share name for the SMB share.
  200. schema:
  201. type: string
  202. show_if: [["type", "=", "smb-pv-pvc"]]
  203. required: true
  204. - variable: domain
  205. label: Domain (Optional)
  206. description: The domain for the SMB share.
  207. schema:
  208. type: string
  209. show_if: [["type", "=", "smb-pv-pvc"]]
  210. - variable: username
  211. label: Username
  212. description: The username for the SMB share.
  213. schema:
  214. type: string
  215. show_if: [["type", "=", "smb-pv-pvc"]]
  216. required: true
  217. - variable: password
  218. label: Password
  219. description: The password for the SMB share.
  220. schema:
  221. type: string
  222. show_if: [["type", "=", "smb-pv-pvc"]]
  223. required: true
  224. private: true
  225. - variable: size
  226. label: Size (in Gi)
  227. description: The size of the volume quota.
  228. schema:
  229. type: int
  230. show_if: [["type", "=", "smb-pv-pvc"]]
  231. required: true
  232. min: 1
  233. default: 1
  234. - variable: resources
  235. group: Resources Configuration
  236. label: ""
  237. schema:
  238. type: dict
  239. attrs:
  240. - variable: limits
  241. label: Limits
  242. schema:
  243. type: dict
  244. attrs:
  245. - variable: cpu
  246. label: CPU
  247. description: CPU limit for tinyMediaManager.
  248. schema:
  249. type: string
  250. max_length: 6
  251. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  252. valid_chars_error: |
  253. Valid CPU limit formats are</br>
  254. - Plain Integer - eg. 1</br>
  255. - Float - eg. 0.5</br>
  256. - Milicpu - eg. 500m
  257. default: "4000m"
  258. required: true
  259. - variable: memory
  260. label: Memory
  261. description: Memory limit for tinyMediaManager.
  262. schema:
  263. type: string
  264. max_length: 12
  265. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  266. valid_chars_error: |
  267. Valid Memory limit formats are</br>
  268. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  269. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  270. - Plain Integer in bytes - eg. 1024</br>
  271. - Exponent - eg. 134e6
  272. default: "8Gi"
  273. required: true