questions.yaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. groups:
  2. - name: Navidrome Configuration
  3. description: Configure Navidrome
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Navidrome
  6. - name: Network Configuration
  7. description: Configure Network for Navidrome
  8. - name: Storage Configuration
  9. description: Configure Storage for Navidrome
  10. - name: Resources Configuration
  11. description: Configure Resources for Navidrome
  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: navidromeConfig
  23. label: ""
  24. group: Navidrome Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: uiWelcomeMessage
  29. label: Login Screen Welcome Message
  30. description: The welcome message to display on the Navidrome Login Screen.
  31. schema:
  32. type: string
  33. default: ""
  34. - variable: additionalEnvs
  35. label: Additional Environment Variables
  36. description: Configure additional environment variables for Navidrome.
  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: navidromeRunAs
  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 Navidrome will run as.
  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 Navidrome will run as.
  73. schema:
  74. type: int
  75. min: 2
  76. default: 568
  77. required: true
  78. - variable: navidromeNetwork
  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 Navidrome Web UI.
  87. schema:
  88. type: int
  89. default: 30043
  90. min: 9000
  91. max: 65535
  92. required: true
  93. - variable: hostNetwork
  94. label: Host Network
  95. description: |
  96. Bind to the host network. It's recommended to keep this disabled.</br>
  97. schema:
  98. type: boolean
  99. default: false
  100. - variable: navidromeStorage
  101. label: ""
  102. group: Storage Configuration
  103. schema:
  104. type: dict
  105. attrs:
  106. - variable: data
  107. label: Navidrome Data Storage
  108. description: The path to store Navidrome Data.
  109. schema:
  110. type: dict
  111. attrs:
  112. - variable: type
  113. label: Type
  114. description: |
  115. ixVolume: Is dataset created automatically by the system.</br>
  116. Host Path: Is a path that already exists on the system.
  117. schema:
  118. type: string
  119. required: true
  120. immutable: true
  121. default: "ixVolume"
  122. enum:
  123. - value: "hostPath"
  124. description: Host Path (Path that already exists on the system)
  125. - value: "ixVolume"
  126. description: ixVolume (Dataset created automatically by the system)
  127. - variable: datasetName
  128. label: Dataset Name
  129. schema:
  130. type: string
  131. show_if: [["type", "=", "ixVolume"]]
  132. required: true
  133. hidden: true
  134. immutable: true
  135. default: "data"
  136. $ref:
  137. - "normalize/ixVolume"
  138. - variable: hostPath
  139. label: Host Path
  140. schema:
  141. type: hostpath
  142. show_if: [["type", "=", "hostPath"]]
  143. immutable: true
  144. required: true
  145. - variable: music
  146. label: Navidrome Music Storage
  147. description: The path to store Navidrome Music.
  148. schema:
  149. type: dict
  150. attrs:
  151. - variable: type
  152. label: Type
  153. description: |
  154. ixVolume: Is dataset created automatically by the system.</br>
  155. Host Path: Is a path that already exists on the system.
  156. schema:
  157. type: string
  158. required: true
  159. immutable: true
  160. default: "ixVolume"
  161. enum:
  162. - value: "hostPath"
  163. description: Host Path (Path that already exists on the system)
  164. - value: "ixVolume"
  165. description: ixVolume (Dataset created automatically by the system)
  166. - variable: datasetName
  167. label: Dataset Name
  168. schema:
  169. type: string
  170. show_if: [["type", "=", "ixVolume"]]
  171. required: true
  172. hidden: true
  173. immutable: true
  174. default: "music"
  175. $ref:
  176. - "normalize/ixVolume"
  177. - variable: hostPath
  178. label: Host Path
  179. schema:
  180. type: hostpath
  181. show_if: [["type", "=", "hostPath"]]
  182. immutable: true
  183. required: true
  184. - variable: additionalStorages
  185. label: Additional Storage
  186. description: Additional storage for Navidrome.
  187. schema:
  188. type: list
  189. default: []
  190. items:
  191. - variable: storageEntry
  192. label: Storage Entry
  193. schema:
  194. type: dict
  195. attrs:
  196. - variable: type
  197. label: Type
  198. description: |
  199. ixVolume: Is dataset created automatically by the system.</br>
  200. Host Path: Is a path that already exists on the system.</br>
  201. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  202. schema:
  203. type: string
  204. required: true
  205. default: "ixVolume"
  206. immutable: true
  207. enum:
  208. - value: "hostPath"
  209. description: Host Path (Path that already exists on the system)
  210. - value: "ixVolume"
  211. description: ixVolume (Dataset created automatically by the system)
  212. - value: "smb-pv-pvc"
  213. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  214. - variable: mountPath
  215. label: Mount Path
  216. description: The path inside the container to mount the storage.
  217. schema:
  218. type: path
  219. required: true
  220. - variable: hostPath
  221. label: Host Path
  222. description: The host path to use for storage.
  223. schema:
  224. type: hostpath
  225. show_if: [["type", "=", "hostPath"]]
  226. required: true
  227. - variable: datasetName
  228. label: Dataset Name
  229. description: The name of the dataset to use for storage.
  230. schema:
  231. type: string
  232. show_if: [["type", "=", "ixVolume"]]
  233. required: true
  234. immutable: true
  235. default: "storage_entry"
  236. $ref:
  237. - "normalize/ixVolume"
  238. - variable: server
  239. label: Server
  240. description: The server for the SMB share.
  241. schema:
  242. type: string
  243. show_if: [["type", "=", "smb-pv-pvc"]]
  244. required: true
  245. - variable: share
  246. label: Share
  247. description: The share name for the SMB share.
  248. schema:
  249. type: string
  250. show_if: [["type", "=", "smb-pv-pvc"]]
  251. required: true
  252. - variable: domain
  253. label: Domain (Optional)
  254. description: The domain for the SMB share.
  255. schema:
  256. type: string
  257. show_if: [["type", "=", "smb-pv-pvc"]]
  258. - variable: username
  259. label: Username
  260. description: The username for the SMB share.
  261. schema:
  262. type: string
  263. show_if: [["type", "=", "smb-pv-pvc"]]
  264. required: true
  265. - variable: password
  266. label: Password
  267. description: The password for the SMB share.
  268. schema:
  269. type: string
  270. show_if: [["type", "=", "smb-pv-pvc"]]
  271. required: true
  272. private: true
  273. - variable: size
  274. label: Size (in Gi)
  275. description: The size of the volume quota.
  276. schema:
  277. type: int
  278. show_if: [["type", "=", "smb-pv-pvc"]]
  279. required: true
  280. min: 1
  281. default: 1
  282. - variable: resources
  283. group: Resources Configuration
  284. label: ""
  285. schema:
  286. type: dict
  287. attrs:
  288. - variable: limits
  289. label: Limits
  290. schema:
  291. type: dict
  292. attrs:
  293. - variable: cpu
  294. label: CPU
  295. description: CPU limit for Navidrome.
  296. schema:
  297. type: string
  298. max_length: 6
  299. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  300. valid_chars_error: |
  301. Valid CPU limit formats are</br>
  302. - Plain Integer - eg. 1</br>
  303. - Float - eg. 0.5</br>
  304. - Milicpu - eg. 500m
  305. default: "4000m"
  306. required: true
  307. - variable: memory
  308. label: Memory
  309. description: Memory limit for Navidrome.
  310. schema:
  311. type: string
  312. max_length: 12
  313. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  314. valid_chars_error: |
  315. Valid Memory limit formats are</br>
  316. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  317. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  318. - Plain Integer in bytes - eg. 1024</br>
  319. - Exponent - eg. 134e6
  320. default: "8Gi"
  321. required: true