questions.yaml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  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: localPlayback
  35. label: Enable Local Playback
  36. description: |
  37. Enable local playback for Navidrome.</br>
  38. This will allow you to play music from your local machine, by mounting</br>
  39. the sound card to the container.</br>
  40. Keep in mind that this will make the container to run with elevated privileges</br>
  41. and privilege escalation. Use with caution.
  42. schema:
  43. type: boolean
  44. default: false
  45. - variable: additionalEnvs
  46. label: Additional Environment Variables
  47. description: Configure additional environment variables for Navidrome.
  48. schema:
  49. type: list
  50. default: []
  51. items:
  52. - variable: env
  53. label: Environment Variable
  54. schema:
  55. type: dict
  56. attrs:
  57. - variable: name
  58. label: Name
  59. schema:
  60. type: string
  61. required: true
  62. - variable: value
  63. label: Value
  64. schema:
  65. type: string
  66. required: true
  67. - variable: navidromeRunAs
  68. label: ""
  69. group: User and Group Configuration
  70. schema:
  71. type: dict
  72. attrs:
  73. - variable: user
  74. label: User ID
  75. description: The user id that Navidrome will run as.
  76. schema:
  77. type: int
  78. min: 2
  79. default: 568
  80. required: true
  81. - variable: group
  82. label: Group ID
  83. description: The group id that Navidrome will run as.
  84. schema:
  85. type: int
  86. min: 2
  87. default: 568
  88. required: true
  89. - variable: navidromeNetwork
  90. label: ""
  91. group: Network Configuration
  92. schema:
  93. type: dict
  94. attrs:
  95. - variable: webPort
  96. label: Web Port
  97. description: The port for the Navidrome Web UI.
  98. schema:
  99. type: int
  100. default: 30043
  101. min: 9000
  102. max: 65535
  103. required: true
  104. - variable: hostNetwork
  105. label: Host Network
  106. description: |
  107. Bind to the host network. It's recommended to keep this disabled.</br>
  108. schema:
  109. type: boolean
  110. default: false
  111. - variable: navidromeStorage
  112. label: ""
  113. group: Storage Configuration
  114. schema:
  115. type: dict
  116. attrs:
  117. - variable: data
  118. label: Navidrome Data Storage
  119. description: The path to store Navidrome Data.
  120. schema:
  121. type: dict
  122. attrs:
  123. - variable: type
  124. label: Type
  125. description: |
  126. ixVolume: Is dataset created automatically by the system.</br>
  127. Host Path: Is a path that already exists on the system.
  128. schema:
  129. type: string
  130. required: true
  131. immutable: true
  132. default: "ixVolume"
  133. enum:
  134. - value: "hostPath"
  135. description: Host Path (Path that already exists on the system)
  136. - value: "ixVolume"
  137. description: ixVolume (Dataset created automatically by the system)
  138. - variable: ixVolumeConfig
  139. label: ixVolume Configuration
  140. description: The configuration for the ixVolume dataset.
  141. schema:
  142. type: dict
  143. show_if: [["type", "=", "ixVolume"]]
  144. $ref:
  145. - "normalize/ixVolume"
  146. attrs:
  147. - variable: aclEnable
  148. label: Enable ACL
  149. description: Enable ACL for the dataset.
  150. schema:
  151. type: boolean
  152. default: false
  153. - variable: datasetName
  154. label: Dataset Name
  155. description: The name of the dataset to use for storage.
  156. schema:
  157. type: string
  158. required: true
  159. immutable: true
  160. hidden: true
  161. default: "data"
  162. - variable: aclEntries
  163. label: ACL Configuration
  164. schema:
  165. type: dict
  166. show_if: [["aclEnable", "=", true]]
  167. attrs: []
  168. - variable: hostPathConfig
  169. label: Host Path Configuration
  170. schema:
  171. type: dict
  172. show_if: [["type", "=", "hostPath"]]
  173. attrs:
  174. - variable: aclEnable
  175. label: Enable ACL
  176. description: Enable ACL for the dataset.
  177. schema:
  178. type: boolean
  179. default: false
  180. - variable: acl
  181. label: ACL Configuration
  182. schema:
  183. type: dict
  184. show_if: [["aclEnable", "=", true]]
  185. attrs: []
  186. $ref:
  187. - "normalize/acl"
  188. - variable: hostPath
  189. label: Host Path
  190. description: The host path to use for storage.
  191. schema:
  192. type: hostpath
  193. show_if: [["aclEnable", "=", false]]
  194. required: true
  195. - variable: music
  196. label: Navidrome Music Storage
  197. description: The path to store Navidrome Music.
  198. schema:
  199. type: dict
  200. attrs:
  201. - variable: type
  202. label: Type
  203. description: |
  204. ixVolume: Is dataset created automatically by the system.</br>
  205. Host Path: Is a path that already exists on the system.
  206. schema:
  207. type: string
  208. required: true
  209. immutable: true
  210. default: "ixVolume"
  211. enum:
  212. - value: "hostPath"
  213. description: Host Path (Path that already exists on the system)
  214. - value: "ixVolume"
  215. description: ixVolume (Dataset created automatically by the system)
  216. - variable: ixVolumeConfig
  217. label: ixVolume Configuration
  218. description: The configuration for the ixVolume dataset.
  219. schema:
  220. type: dict
  221. show_if: [["type", "=", "ixVolume"]]
  222. $ref:
  223. - "normalize/ixVolume"
  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: datasetName
  232. label: Dataset Name
  233. description: The name of the dataset to use for storage.
  234. schema:
  235. type: string
  236. required: true
  237. immutable: true
  238. hidden: true
  239. default: "music"
  240. - variable: aclEntries
  241. label: ACL Configuration
  242. schema:
  243. type: dict
  244. show_if: [["aclEnable", "=", true]]
  245. attrs: []
  246. - variable: hostPathConfig
  247. label: Host Path Configuration
  248. schema:
  249. type: dict
  250. show_if: [["type", "=", "hostPath"]]
  251. attrs:
  252. - variable: aclEnable
  253. label: Enable ACL
  254. description: Enable ACL for the dataset.
  255. schema:
  256. type: boolean
  257. default: false
  258. - variable: acl
  259. label: ACL Configuration
  260. schema:
  261. type: dict
  262. show_if: [["aclEnable", "=", true]]
  263. attrs: []
  264. $ref:
  265. - "normalize/acl"
  266. - variable: hostPath
  267. label: Host Path
  268. description: The host path to use for storage.
  269. schema:
  270. type: hostpath
  271. show_if: [["aclEnable", "=", false]]
  272. required: true
  273. - variable: additionalStorages
  274. label: Additional Storage
  275. description: Additional storage for Navidrome.
  276. schema:
  277. type: list
  278. default: []
  279. items:
  280. - variable: storageEntry
  281. label: Storage Entry
  282. schema:
  283. type: dict
  284. attrs:
  285. - variable: type
  286. label: Type
  287. description: |
  288. ixVolume: Is dataset created automatically by the system.</br>
  289. Host Path: Is a path that already exists on the system.</br>
  290. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  291. schema:
  292. type: string
  293. required: true
  294. default: "ixVolume"
  295. immutable: true
  296. enum:
  297. - value: "hostPath"
  298. description: Host Path (Path that already exists on the system)
  299. - value: "ixVolume"
  300. description: ixVolume (Dataset created automatically by the system)
  301. - value: "smb-pv-pvc"
  302. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  303. - variable: readOnly
  304. label: Read Only
  305. description: Mount the volume as read only.
  306. schema:
  307. type: boolean
  308. default: false
  309. - variable: mountPath
  310. label: Mount Path
  311. description: The path inside the container to mount the storage.
  312. schema:
  313. type: path
  314. required: true
  315. - variable: hostPathConfig
  316. label: Host Path Configuration
  317. schema:
  318. type: dict
  319. show_if: [["type", "=", "hostPath"]]
  320. attrs:
  321. - variable: aclEnable
  322. label: Enable ACL
  323. description: Enable ACL for the dataset.
  324. schema:
  325. type: boolean
  326. default: false
  327. - variable: acl
  328. label: ACL Configuration
  329. schema:
  330. type: dict
  331. show_if: [["aclEnable", "=", true]]
  332. attrs: []
  333. $ref:
  334. - "normalize/acl"
  335. - variable: hostPath
  336. label: Host Path
  337. description: The host path to use for storage.
  338. schema:
  339. type: hostpath
  340. show_if: [["aclEnable", "=", false]]
  341. required: true
  342. - variable: ixVolumeConfig
  343. label: ixVolume Configuration
  344. description: The configuration for the ixVolume dataset.
  345. schema:
  346. type: dict
  347. show_if: [["type", "=", "ixVolume"]]
  348. $ref:
  349. - "normalize/ixVolume"
  350. attrs:
  351. - variable: aclEnable
  352. label: Enable ACL
  353. description: Enable ACL for the dataset.
  354. schema:
  355. type: boolean
  356. default: false
  357. - variable: datasetName
  358. label: Dataset Name
  359. description: The name of the dataset to use for storage.
  360. schema:
  361. type: string
  362. required: true
  363. immutable: true
  364. default: "storage_entry"
  365. - variable: aclEntries
  366. label: ACL Configuration
  367. schema:
  368. type: dict
  369. show_if: [["aclEnable", "=", true]]
  370. attrs: []
  371. - variable: smbConfig
  372. label: SMB Share Configuration
  373. description: The configuration for the SMB Share.
  374. schema:
  375. type: dict
  376. show_if: [["type", "=", "smb-pv-pvc"]]
  377. attrs:
  378. - variable: server
  379. label: Server
  380. description: The server for the SMB share.
  381. schema:
  382. type: string
  383. required: true
  384. - variable: share
  385. label: Share
  386. description: The share name for the SMB share.
  387. schema:
  388. type: string
  389. required: true
  390. - variable: domain
  391. label: Domain (Optional)
  392. description: The domain for the SMB share.
  393. schema:
  394. type: string
  395. - variable: username
  396. label: Username
  397. description: The username for the SMB share.
  398. schema:
  399. type: string
  400. required: true
  401. - variable: password
  402. label: Password
  403. description: The password for the SMB share.
  404. schema:
  405. type: string
  406. required: true
  407. private: true
  408. - variable: size
  409. label: Size (in Gi)
  410. description: The size of the volume quota.
  411. schema:
  412. type: int
  413. required: true
  414. min: 1
  415. default: 1
  416. - variable: resources
  417. group: Resources Configuration
  418. label: ""
  419. schema:
  420. type: dict
  421. attrs:
  422. - variable: limits
  423. label: Limits
  424. schema:
  425. type: dict
  426. attrs:
  427. - variable: cpu
  428. label: CPU
  429. description: CPU limit for Navidrome.
  430. schema:
  431. type: string
  432. max_length: 6
  433. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  434. valid_chars_error: |
  435. Valid CPU limit formats are</br>
  436. - Plain Integer - eg. 1</br>
  437. - Float - eg. 0.5</br>
  438. - Milicpu - eg. 500m
  439. default: "4000m"
  440. required: true
  441. - variable: memory
  442. label: Memory
  443. description: Memory limit for Navidrome.
  444. schema:
  445. type: string
  446. max_length: 12
  447. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  448. valid_chars_error: |
  449. Valid Memory limit formats are</br>
  450. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  451. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  452. - Plain Integer in bytes - eg. 1024</br>
  453. - Exponent - eg. 134e6
  454. default: "8Gi"
  455. required: true