questions.yaml 14 KB

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