questions.yaml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. groups:
  2. - name: Kavita Configuration
  3. description: Configure Kavita
  4. - name: Network Configuration
  5. description: Configure Network for Kavita
  6. - name: Storage Configuration
  7. description: Configure Storage for Kavita
  8. - name: Resources Configuration
  9. description: Configure Resources for Kavita
  10. portals:
  11. web_portal:
  12. protocols:
  13. - "$kubernetes-resource_configmap_portal_protocol"
  14. host:
  15. - "$kubernetes-resource_configmap_portal_host"
  16. ports:
  17. - "$kubernetes-resource_configmap_portal_port"
  18. path: "$kubernetes-resource_configmap_portal_path"
  19. questions:
  20. - variable: TZ
  21. group: Kavita Configuration
  22. label: Timezone
  23. schema:
  24. type: string
  25. default: Etc/UTC
  26. required: true
  27. $ref:
  28. - definitions/timezone
  29. - variable: kavitaConfig
  30. label: ""
  31. group: Kavita Configuration
  32. schema:
  33. type: dict
  34. attrs:
  35. - variable: additionalEnvs
  36. label: Additional Environment Variables
  37. description: Configure additional environment variables for Kavita.
  38. schema:
  39. type: list
  40. default: []
  41. items:
  42. - variable: env
  43. label: Environment Variable
  44. schema:
  45. type: dict
  46. attrs:
  47. - variable: name
  48. label: Name
  49. schema:
  50. type: string
  51. required: true
  52. - variable: value
  53. label: Value
  54. schema:
  55. type: string
  56. required: true
  57. - variable: kavitaNetwork
  58. label: ""
  59. group: Network Configuration
  60. schema:
  61. type: dict
  62. attrs:
  63. - variable: webPort
  64. label: Web Port
  65. description: The port for the Kavita Web UI.
  66. schema:
  67. type: int
  68. default: 30069
  69. min: 9000
  70. max: 65535
  71. required: true
  72. - variable: kavitaStorage
  73. label: ""
  74. group: Storage Configuration
  75. schema:
  76. type: dict
  77. attrs:
  78. - variable: config
  79. label: Kavita Config Storage
  80. description: The path to store Kavita Configuration.
  81. schema:
  82. type: dict
  83. attrs:
  84. - variable: type
  85. label: Type
  86. description: |
  87. ixVolume: Is dataset created automatically by the system.</br>
  88. Host Path: Is a path that already exists on the system.
  89. schema:
  90. type: string
  91. required: true
  92. immutable: true
  93. default: "ixVolume"
  94. enum:
  95. - value: "hostPath"
  96. description: Host Path (Path that already exists on the system)
  97. - value: "ixVolume"
  98. description: ixVolume (Dataset created automatically by the system)
  99. - variable: ixVolumeConfig
  100. label: ixVolume Configuration
  101. description: The configuration for the ixVolume dataset.
  102. schema:
  103. type: dict
  104. show_if: [["type", "=", "ixVolume"]]
  105. $ref:
  106. - "normalize/ixVolume"
  107. attrs:
  108. - variable: aclEnable
  109. label: Enable ACL
  110. description: Enable ACL for the dataset.
  111. schema:
  112. type: boolean
  113. default: false
  114. - variable: datasetName
  115. label: Dataset Name
  116. description: The name of the dataset to use for storage.
  117. schema:
  118. type: string
  119. required: true
  120. immutable: true
  121. hidden: true
  122. default: "config"
  123. - variable: aclEntries
  124. label: ACL Configuration
  125. schema:
  126. type: dict
  127. show_if: [["aclEnable", "=", true]]
  128. attrs: []
  129. - variable: hostPathConfig
  130. label: Host Path Configuration
  131. schema:
  132. type: dict
  133. show_if: [["type", "=", "hostPath"]]
  134. attrs:
  135. - variable: aclEnable
  136. label: Enable ACL
  137. description: Enable ACL for the dataset.
  138. schema:
  139. type: boolean
  140. default: false
  141. - variable: acl
  142. label: ACL Configuration
  143. schema:
  144. type: dict
  145. show_if: [["aclEnable", "=", true]]
  146. attrs: []
  147. $ref:
  148. - "normalize/acl"
  149. - variable: hostPath
  150. label: Host Path
  151. description: The host path to use for storage.
  152. schema:
  153. type: hostpath
  154. show_if: [["aclEnable", "=", false]]
  155. required: true
  156. - variable: additionalStorages
  157. label: Additional Storage
  158. description: Additional storage for Kavita.
  159. schema:
  160. type: list
  161. default: []
  162. items:
  163. - variable: storageEntry
  164. label: Storage Entry
  165. schema:
  166. type: dict
  167. attrs:
  168. - variable: type
  169. label: Type
  170. description: |
  171. ixVolume: Is dataset created automatically by the system.</br>
  172. Host Path: Is a path that already exists on the system.</br>
  173. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  174. schema:
  175. type: string
  176. required: true
  177. default: "ixVolume"
  178. immutable: true
  179. enum:
  180. - value: "hostPath"
  181. description: Host Path (Path that already exists on the system)
  182. - value: "ixVolume"
  183. description: ixVolume (Dataset created automatically by the system)
  184. - value: "smb-pv-pvc"
  185. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  186. - variable: readOnly
  187. label: Read Only
  188. description: Mount the volume as read only.
  189. schema:
  190. type: boolean
  191. default: false
  192. - variable: mountPath
  193. label: Mount Path
  194. description: The path inside the container to mount the storage.
  195. schema:
  196. type: path
  197. required: true
  198. - variable: hostPathConfig
  199. label: Host Path Configuration
  200. schema:
  201. type: dict
  202. show_if: [["type", "=", "hostPath"]]
  203. attrs:
  204. - variable: aclEnable
  205. label: Enable ACL
  206. description: Enable ACL for the dataset.
  207. schema:
  208. type: boolean
  209. default: false
  210. - variable: acl
  211. label: ACL Configuration
  212. schema:
  213. type: dict
  214. show_if: [["aclEnable", "=", true]]
  215. attrs: []
  216. $ref:
  217. - "normalize/acl"
  218. - variable: hostPath
  219. label: Host Path
  220. description: The host path to use for storage.
  221. schema:
  222. type: hostpath
  223. show_if: [["aclEnable", "=", false]]
  224. required: true
  225. - variable: ixVolumeConfig
  226. label: ixVolume Configuration
  227. description: The configuration for the ixVolume dataset.
  228. schema:
  229. type: dict
  230. show_if: [["type", "=", "ixVolume"]]
  231. $ref:
  232. - "normalize/ixVolume"
  233. attrs:
  234. - variable: aclEnable
  235. label: Enable ACL
  236. description: Enable ACL for the dataset.
  237. schema:
  238. type: boolean
  239. default: false
  240. - variable: datasetName
  241. label: Dataset Name
  242. description: The name of the dataset to use for storage.
  243. schema:
  244. type: string
  245. required: true
  246. immutable: true
  247. default: "storage_entry"
  248. - variable: aclEntries
  249. label: ACL Configuration
  250. schema:
  251. type: dict
  252. show_if: [["aclEnable", "=", true]]
  253. attrs: []
  254. - variable: smbConfig
  255. label: SMB Share Configuration
  256. description: The configuration for the SMB Share.
  257. schema:
  258. type: dict
  259. show_if: [["type", "=", "smb-pv-pvc"]]
  260. attrs:
  261. - variable: server
  262. label: Server
  263. description: The server for the SMB share.
  264. schema:
  265. type: string
  266. required: true
  267. - variable: share
  268. label: Share
  269. description: The share name for the SMB share.
  270. schema:
  271. type: string
  272. required: true
  273. - variable: domain
  274. label: Domain (Optional)
  275. description: The domain for the SMB share.
  276. schema:
  277. type: string
  278. - variable: username
  279. label: Username
  280. description: The username for the SMB share.
  281. schema:
  282. type: string
  283. required: true
  284. - variable: password
  285. label: Password
  286. description: The password for the SMB share.
  287. schema:
  288. type: string
  289. required: true
  290. private: true
  291. - variable: size
  292. label: Size (in Gi)
  293. description: The size of the volume quota.
  294. schema:
  295. type: int
  296. required: true
  297. min: 1
  298. default: 1
  299. - variable: resources
  300. group: Resources Configuration
  301. label: ""
  302. schema:
  303. type: dict
  304. attrs:
  305. - variable: limits
  306. label: Limits
  307. schema:
  308. type: dict
  309. attrs:
  310. - variable: cpu
  311. label: CPU
  312. description: CPU limit for Kavita.
  313. schema:
  314. type: string
  315. max_length: 6
  316. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  317. valid_chars_error: |
  318. Valid CPU limit formats are</br>
  319. - Plain Integer - eg. 1</br>
  320. - Float - eg. 0.5</br>
  321. - Milicpu - eg. 500m
  322. default: "4000m"
  323. required: true
  324. - variable: memory
  325. label: Memory
  326. description: Memory limit for Kavita.
  327. schema:
  328. type: string
  329. max_length: 12
  330. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  331. valid_chars_error: |
  332. Valid Memory limit formats are</br>
  333. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  334. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  335. - Plain Integer in bytes - eg. 1024</br>
  336. - Exponent - eg. 134e6
  337. default: "8Gi"
  338. required: true