questions.yaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. groups:
  2. - name: Castopod Configuration
  3. description: Configure Castopod
  4. - name: Network Configuration
  5. description: Configure Network for Castopod
  6. - name: Storage Configuration
  7. description: Configure Storage for Castopod
  8. - name: Resources Configuration
  9. description: Configure Resources for Castopod
  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. admin:
  20. protocols:
  21. - "$kubernetes-resource_configmap_portal_protocol"
  22. host:
  23. - "$kubernetes-resource_configmap_portal_host"
  24. ports:
  25. - "$kubernetes-resource_configmap_portal_port"
  26. path: "$kubernetes-resource_configmap_portal_admin"
  27. questions:
  28. - variable: castopodConfig
  29. label: ""
  30. group: Castopod Configuration
  31. schema:
  32. type: dict
  33. attrs:
  34. - variable: baseUrl
  35. label: Base URL
  36. description: |
  37. The base URL for Castopod.</br>
  38. Example: http://your.server.ip:30085
  39. schema:
  40. type: uri
  41. required: true
  42. default: ""
  43. - variable: webTimeout
  44. label: Web Timeout
  45. description: The timeout for Castopod requests in seconds.
  46. schema:
  47. type: int
  48. required: true
  49. default: 900
  50. min: 1
  51. - variable: webMaxBodySize
  52. label: Web Max Body Size
  53. description: The maximum body size for Castopod requests in megabytes.
  54. schema:
  55. type: int
  56. required: true
  57. default: 512
  58. min: 1
  59. - variable: phpMemoryLimit
  60. label: PHP Memory Limit
  61. description: The PHP memory limit for Castopod.
  62. schema:
  63. type: int
  64. required: true
  65. default: 512
  66. min: 1
  67. - variable: enable2fa
  68. label: Enable 2FA
  69. description: Enable 2FA for Castopod.
  70. schema:
  71. type: boolean
  72. default: false
  73. - variable: disableHttpsRedirect
  74. label: Disable HTTPS Redirect
  75. description: |
  76. Disable HTTPS redirect for Castopod. </br>
  77. This is useful if you are using a reverse proxy with HTTPS.
  78. schema:
  79. type: boolean
  80. default: true
  81. - variable: additionalEnvs
  82. label: Additional Environment Variables
  83. description: Configure additional environment variables for Castopod.
  84. schema:
  85. type: list
  86. default: []
  87. items:
  88. - variable: env
  89. label: Environment Variable
  90. schema:
  91. type: dict
  92. attrs:
  93. - variable: name
  94. label: Name
  95. schema:
  96. type: string
  97. required: true
  98. - variable: value
  99. label: Value
  100. schema:
  101. type: string
  102. required: true
  103. - variable: castopodNetwork
  104. label: ""
  105. group: Network Configuration
  106. schema:
  107. type: dict
  108. attrs:
  109. - variable: webPort
  110. label: Web Port
  111. description: The port for the Castopod WebUI.
  112. schema:
  113. type: int
  114. default: 30085
  115. min: 9000
  116. max: 65535
  117. required: true
  118. - variable: castopodStorage
  119. label: ""
  120. group: Storage Configuration
  121. schema:
  122. type: dict
  123. attrs:
  124. - variable: data
  125. label: Castopod Data Storage
  126. description: The path to store Castopod data.
  127. schema:
  128. type: dict
  129. attrs:
  130. - variable: type
  131. label: Type
  132. description: |
  133. ixVolume: Is dataset created automatically by the system.</br>
  134. Host Path: Is a path that already exists on the system.
  135. schema:
  136. type: string
  137. required: true
  138. default: ixVolume
  139. enum:
  140. - value: hostPath
  141. description: Host Path (Path that already exists on the system)
  142. - value: ixVolume
  143. description: ixVolume (Dataset created automatically by the system)
  144. - variable: datasetName
  145. label: Dataset Name
  146. schema:
  147. type: string
  148. show_if: [["type", "=", "ixVolume"]]
  149. required: true
  150. hidden: true
  151. immutable: true
  152. default: "data"
  153. $ref:
  154. - "normalize/ixVolume"
  155. - variable: hostPath
  156. label: Host Path
  157. schema:
  158. type: hostpath
  159. show_if: [["type", "=", "hostPath"]]
  160. immutable: true
  161. required: true
  162. - variable: mariadbData
  163. label: Castopod MariaDB Data Storage
  164. description: The path to store Castopod MariaDB Data.
  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.
  173. schema:
  174. type: string
  175. required: true
  176. default: ixVolume
  177. enum:
  178. - value: hostPath
  179. description: Host Path (Path that already exists on the system)
  180. - value: ixVolume
  181. description: ixVolume (Dataset created automatically by the system)
  182. - variable: datasetName
  183. label: Dataset Name
  184. schema:
  185. type: string
  186. show_if: [["type", "=", "ixVolume"]]
  187. required: true
  188. hidden: true
  189. immutable: true
  190. default: mariadbData
  191. $ref:
  192. - "normalize/ixVolume"
  193. - variable: hostPath
  194. label: Host Path
  195. schema:
  196. type: hostpath
  197. show_if: [["type", "=", "hostPath"]]
  198. immutable: true
  199. required: true
  200. - variable: mariadbBackup
  201. label: Castopod MariaDB Backup Storage
  202. description: The path to store Castopod MariaDB Backup.
  203. schema:
  204. type: dict
  205. attrs:
  206. - variable: type
  207. label: Type
  208. description: |
  209. ixVolume: Is dataset created automatically by the system.</br>
  210. Host Path: Is a path that already exists on the system.
  211. schema:
  212. type: string
  213. required: true
  214. default: ixVolume
  215. enum:
  216. - value: hostPath
  217. description: Host Path (Path that already exists on the system)
  218. - value: ixVolume
  219. description: ixVolume (Dataset created automatically by the system)
  220. - variable: datasetName
  221. label: Dataset Name
  222. schema:
  223. type: string
  224. show_if: [["type", "=", "ixVolume"]]
  225. required: true
  226. hidden: true
  227. immutable: true
  228. default: mariadbBackup
  229. $ref:
  230. - "normalize/ixVolume"
  231. - variable: hostPath
  232. label: Host Path
  233. schema:
  234. type: hostpath
  235. show_if: [["type", "=", "hostPath"]]
  236. immutable: true
  237. required: true
  238. - variable: additionalStorages
  239. label: Additional Storage
  240. description: Additional storage for Castopod.
  241. schema:
  242. type: list
  243. default: []
  244. items:
  245. - variable: storageEntry
  246. label: Storage Entry
  247. schema:
  248. type: dict
  249. attrs:
  250. - variable: type
  251. label: Type
  252. description: |
  253. ixVolume: Is dataset created automatically by the system.</br>
  254. Host Path: Is a path that already exists on the system.
  255. schema:
  256. type: string
  257. required: true
  258. default: "ixVolume"
  259. enum:
  260. - value: "hostPath"
  261. description: Host Path (Path that already exists on the system)
  262. - value: "ixVolume"
  263. description: ixVolume (Dataset created automatically by the system)
  264. - variable: mountPath
  265. label: Mount Path
  266. description: The path inside the container to mount the storage.
  267. schema:
  268. type: path
  269. required: true
  270. - variable: hostPath
  271. label: Host Path
  272. description: The host path to use for storage.
  273. schema:
  274. type: hostpath
  275. show_if: [["type", "=", "hostPath"]]
  276. required: true
  277. - variable: datasetName
  278. label: Dataset Name
  279. description: The name of the dataset to use for storage.
  280. schema:
  281. type: string
  282. show_if: [["type", "=", "ixVolume"]]
  283. required: true
  284. immutable: true
  285. default: "storage_entry"
  286. $ref:
  287. - "normalize/ixVolume"
  288. - variable: resources
  289. label: ""
  290. group: Resources Configuration
  291. schema:
  292. type: dict
  293. attrs:
  294. - variable: limits
  295. label: Limits
  296. schema:
  297. type: dict
  298. attrs:
  299. - variable: cpu
  300. label: CPU
  301. description: CPU limit for Castopod.
  302. schema:
  303. type: string
  304. max_length: 6
  305. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  306. valid_chars_error: |
  307. Valid CPU limit formats are</br>
  308. - Plain Integer - eg. 1</br>
  309. - Float - eg. 0.5</br>
  310. - Milicpu - eg. 500m
  311. default: "4000m"
  312. required: true
  313. - variable: memory
  314. label: Memory
  315. description: Memory limit for Castopod.
  316. schema:
  317. type: string
  318. max_length: 12
  319. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  320. valid_chars_error: |
  321. Valid Memory limit formats are</br>
  322. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  323. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  324. - Plain Integer in bytes - eg. 1024</br>
  325. - Exponent - eg. 134e6
  326. default: "8Gi"
  327. required: true