questions.yaml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  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. immutable: true
  139. default: ixVolume
  140. enum:
  141. - value: hostPath
  142. description: Host Path (Path that already exists on the system)
  143. - value: ixVolume
  144. description: ixVolume (Dataset created automatically by the system)
  145. - variable: datasetName
  146. label: Dataset Name
  147. schema:
  148. type: string
  149. show_if: [["type", "=", "ixVolume"]]
  150. required: true
  151. hidden: true
  152. immutable: true
  153. default: "data"
  154. $ref:
  155. - "normalize/ixVolume"
  156. - variable: hostPath
  157. label: Host Path
  158. schema:
  159. type: hostpath
  160. show_if: [["type", "=", "hostPath"]]
  161. immutable: true
  162. required: true
  163. - variable: mariadbData
  164. label: Castopod MariaDB Data Storage
  165. description: The path to store Castopod MariaDB Data.
  166. schema:
  167. type: dict
  168. attrs:
  169. - variable: type
  170. label: Type
  171. description: |
  172. ixVolume: Is dataset created automatically by the system.</br>
  173. Host Path: Is a path that already exists on the system.
  174. schema:
  175. type: string
  176. required: true
  177. immutable: true
  178. default: ixVolume
  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. - variable: datasetName
  185. label: Dataset Name
  186. schema:
  187. type: string
  188. show_if: [["type", "=", "ixVolume"]]
  189. required: true
  190. hidden: true
  191. immutable: true
  192. default: mariadbData
  193. $ref:
  194. - "normalize/ixVolume"
  195. - variable: hostPath
  196. label: Host Path
  197. schema:
  198. type: hostpath
  199. show_if: [["type", "=", "hostPath"]]
  200. immutable: true
  201. required: true
  202. - variable: mariadbBackup
  203. label: Castopod MariaDB Backup Storage
  204. description: The path to store Castopod MariaDB Backup.
  205. schema:
  206. type: dict
  207. attrs:
  208. - variable: type
  209. label: Type
  210. description: |
  211. ixVolume: Is dataset created automatically by the system.</br>
  212. Host Path: Is a path that already exists on the system.
  213. schema:
  214. type: string
  215. required: true
  216. immutable: true
  217. default: ixVolume
  218. enum:
  219. - value: hostPath
  220. description: Host Path (Path that already exists on the system)
  221. - value: ixVolume
  222. description: ixVolume (Dataset created automatically by the system)
  223. - variable: datasetName
  224. label: Dataset Name
  225. schema:
  226. type: string
  227. show_if: [["type", "=", "ixVolume"]]
  228. required: true
  229. hidden: true
  230. immutable: true
  231. default: mariadbBackup
  232. $ref:
  233. - "normalize/ixVolume"
  234. - variable: hostPath
  235. label: Host Path
  236. schema:
  237. type: hostpath
  238. show_if: [["type", "=", "hostPath"]]
  239. immutable: true
  240. required: true
  241. - variable: additionalStorages
  242. label: Additional Storage
  243. description: Additional storage for Castopod.
  244. schema:
  245. type: list
  246. default: []
  247. items:
  248. - variable: storageEntry
  249. label: Storage Entry
  250. schema:
  251. type: dict
  252. attrs:
  253. - variable: type
  254. label: Type
  255. description: |
  256. ixVolume: Is dataset created automatically by the system.</br>
  257. Host Path: Is a path that already exists on the system.</br>
  258. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  259. schema:
  260. type: string
  261. required: true
  262. default: "ixVolume"
  263. immutable: true
  264. enum:
  265. - value: "hostPath"
  266. description: Host Path (Path that already exists on the system)
  267. - value: "ixVolume"
  268. description: ixVolume (Dataset created automatically by the system)
  269. - value: "smb-pv-pvc"
  270. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  271. - variable: mountPath
  272. label: Mount Path
  273. description: The path inside the container to mount the storage.
  274. schema:
  275. type: path
  276. required: true
  277. - variable: hostPath
  278. label: Host Path
  279. description: The host path to use for storage.
  280. schema:
  281. type: hostpath
  282. show_if: [["type", "=", "hostPath"]]
  283. required: true
  284. - variable: datasetName
  285. label: Dataset Name
  286. description: The name of the dataset to use for storage.
  287. schema:
  288. type: string
  289. show_if: [["type", "=", "ixVolume"]]
  290. required: true
  291. immutable: true
  292. default: "storage_entry"
  293. $ref:
  294. - "normalize/ixVolume"
  295. - variable: server
  296. label: Server
  297. description: The server for the SMB share.
  298. schema:
  299. type: string
  300. show_if: [["type", "=", "smb-pv-pvc"]]
  301. required: true
  302. - variable: share
  303. label: Share
  304. description: The share name for the SMB share.
  305. schema:
  306. type: string
  307. show_if: [["type", "=", "smb-pv-pvc"]]
  308. required: true
  309. - variable: domain
  310. label: Domain (Optional)
  311. description: The domain for the SMB share.
  312. schema:
  313. type: string
  314. show_if: [["type", "=", "smb-pv-pvc"]]
  315. - variable: username
  316. label: Username
  317. description: The username for the SMB share.
  318. schema:
  319. type: string
  320. show_if: [["type", "=", "smb-pv-pvc"]]
  321. required: true
  322. - variable: password
  323. label: Password
  324. description: The password for the SMB share.
  325. schema:
  326. type: string
  327. show_if: [["type", "=", "smb-pv-pvc"]]
  328. required: true
  329. private: true
  330. - variable: size
  331. label: Size (in Gi)
  332. description: The size of the volume quota.
  333. schema:
  334. type: int
  335. show_if: [["type", "=", "smb-pv-pvc"]]
  336. required: true
  337. min: 1
  338. default: 1
  339. - variable: resources
  340. label: ""
  341. group: Resources Configuration
  342. schema:
  343. type: dict
  344. attrs:
  345. - variable: limits
  346. label: Limits
  347. schema:
  348. type: dict
  349. attrs:
  350. - variable: cpu
  351. label: CPU
  352. description: CPU limit for Castopod.
  353. schema:
  354. type: string
  355. max_length: 6
  356. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  357. valid_chars_error: |
  358. Valid CPU limit formats are</br>
  359. - Plain Integer - eg. 1</br>
  360. - Float - eg. 0.5</br>
  361. - Milicpu - eg. 500m
  362. default: "4000m"
  363. required: true
  364. - variable: memory
  365. label: Memory
  366. description: Memory limit for Castopod.
  367. schema:
  368. type: string
  369. max_length: 12
  370. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  371. valid_chars_error: |
  372. Valid Memory limit formats are</br>
  373. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  374. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  375. - Plain Integer in bytes - eg. 1024</br>
  376. - Exponent - eg. 134e6
  377. default: "8Gi"
  378. required: true