questions.yaml 12 KB

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