questions.yaml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  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. immutable: true
  260. enum:
  261. - value: "hostPath"
  262. description: Host Path (Path that already exists on the system)
  263. - value: "ixVolume"
  264. description: ixVolume (Dataset created automatically by the system)
  265. - value: "smb-pv-pvc"
  266. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  267. - variable: mountPath
  268. label: Mount Path
  269. description: The path inside the container to mount the storage.
  270. schema:
  271. type: path
  272. required: true
  273. - variable: hostPath
  274. label: Host Path
  275. description: The host path to use for storage.
  276. schema:
  277. type: hostpath
  278. show_if: [["type", "=", "hostPath"]]
  279. required: true
  280. - variable: datasetName
  281. label: Dataset Name
  282. description: The name of the dataset to use for storage.
  283. schema:
  284. type: string
  285. show_if: [["type", "=", "ixVolume"]]
  286. required: true
  287. immutable: true
  288. default: "storage_entry"
  289. $ref:
  290. - "normalize/ixVolume"
  291. - variable: server
  292. label: Server
  293. description: The server for the SMB share.
  294. schema:
  295. type: string
  296. show_if: [["type", "=", "smb-pv-pvc"]]
  297. required: true
  298. - variable: share
  299. label: Share
  300. description: The share name for the SMB share.
  301. schema:
  302. type: string
  303. show_if: [["type", "=", "smb-pv-pvc"]]
  304. required: true
  305. - variable: domain
  306. label: Domain (Optional)
  307. description: The domain for the SMB share.
  308. schema:
  309. type: string
  310. show_if: [["type", "=", "smb-pv-pvc"]]
  311. - variable: username
  312. label: Username
  313. description: The username for the SMB share.
  314. schema:
  315. type: string
  316. show_if: [["type", "=", "smb-pv-pvc"]]
  317. required: true
  318. - variable: password
  319. label: Password
  320. description: The password for the SMB share.
  321. schema:
  322. type: string
  323. show_if: [["type", "=", "smb-pv-pvc"]]
  324. required: true
  325. private: true
  326. - variable: size
  327. label: Size (in Gi)
  328. description: The size of the volume quota.
  329. schema:
  330. type: int
  331. show_if: [["type", "=", "smb-pv-pvc"]]
  332. required: true
  333. min: 1
  334. default: 1
  335. - variable: resources
  336. label: ""
  337. group: Resources Configuration
  338. schema:
  339. type: dict
  340. attrs:
  341. - variable: limits
  342. label: Limits
  343. schema:
  344. type: dict
  345. attrs:
  346. - variable: cpu
  347. label: CPU
  348. description: CPU limit for Castopod.
  349. schema:
  350. type: string
  351. max_length: 6
  352. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  353. valid_chars_error: |
  354. Valid CPU limit formats are</br>
  355. - Plain Integer - eg. 1</br>
  356. - Float - eg. 0.5</br>
  357. - Milicpu - eg. 500m
  358. default: "4000m"
  359. required: true
  360. - variable: memory
  361. label: Memory
  362. description: Memory limit for Castopod.
  363. schema:
  364. type: string
  365. max_length: 12
  366. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  367. valid_chars_error: |
  368. Valid Memory limit formats are</br>
  369. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  370. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  371. - Plain Integer in bytes - eg. 1024</br>
  372. - Exponent - eg. 134e6
  373. default: "8Gi"
  374. required: true