questions.yaml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  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: ixVolumeConfig
  146. label: ixVolume Configuration
  147. description: The configuration for the ixVolume dataset.
  148. schema:
  149. type: dict
  150. show_if: [["type", "=", "ixVolume"]]
  151. $ref:
  152. - "normalize/ixVolume"
  153. attrs:
  154. - variable: aclEnable
  155. label: Enable ACL
  156. description: Enable ACL for the dataset.
  157. schema:
  158. type: boolean
  159. default: false
  160. - variable: datasetName
  161. label: Dataset Name
  162. description: The name of the dataset to use for storage.
  163. schema:
  164. type: string
  165. required: true
  166. immutable: true
  167. hidden: true
  168. default: "data"
  169. - variable: aclEntries
  170. label: ACL Configuration
  171. schema:
  172. type: dict
  173. show_if: [["aclEnable", "=", true]]
  174. attrs: []
  175. - variable: hostPathConfig
  176. label: Host Path Configuration
  177. schema:
  178. type: dict
  179. show_if: [["type", "=", "hostPath"]]
  180. attrs:
  181. - variable: aclEnable
  182. label: Enable ACL
  183. description: Enable ACL for the dataset.
  184. schema:
  185. type: boolean
  186. default: false
  187. - variable: acl
  188. label: ACL Configuration
  189. schema:
  190. type: dict
  191. show_if: [["aclEnable", "=", true]]
  192. attrs: []
  193. $ref:
  194. - "normalize/acl"
  195. - variable: hostPath
  196. label: Host Path
  197. description: The host path to use for storage.
  198. schema:
  199. type: hostpath
  200. show_if: [["aclEnable", "=", false]]
  201. required: true
  202. - variable: mariadbData
  203. label: Castopod MariaDB Data Storage
  204. description: The path to store Castopod MariaDB Data.
  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: ixVolumeConfig
  224. label: ixVolume Configuration
  225. description: The configuration for the ixVolume dataset.
  226. schema:
  227. type: dict
  228. # Nothing to show for the user
  229. hidden: true
  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. # MariaDB does a CHMOD at startup
  240. # Which fails with ACL
  241. hidden: true
  242. default: false
  243. - variable: datasetName
  244. label: Dataset Name
  245. description: The name of the dataset to use for storage.
  246. schema:
  247. type: string
  248. required: true
  249. immutable: true
  250. hidden: true
  251. default: mariadbData
  252. - variable: aclEntries
  253. label: ACL Configuration
  254. schema:
  255. type: dict
  256. show_if: [["aclEnable", "=", true]]
  257. attrs: []
  258. - variable: hostPathConfig
  259. label: Host Path Configuration
  260. schema:
  261. type: dict
  262. show_if: [["type", "=", "hostPath"]]
  263. attrs:
  264. - variable: aclEnable
  265. label: Enable ACL
  266. description: Enable ACL for the dataset.
  267. schema:
  268. type: boolean
  269. # MariaDB does a CHMOD at startup
  270. # Which fails with ACL
  271. hidden: true
  272. default: false
  273. - variable: acl
  274. label: ACL Configuration
  275. schema:
  276. type: dict
  277. show_if: [["aclEnable", "=", true]]
  278. attrs: []
  279. $ref:
  280. - "normalize/acl"
  281. - variable: hostPath
  282. label: Host Path
  283. description: The host path to use for storage.
  284. schema:
  285. type: hostpath
  286. show_if: [["aclEnable", "=", false]]
  287. required: true
  288. - variable: mariadbBackup
  289. label: Castopod MariaDB Backup Storage
  290. description: The path to store Castopod MariaDB Backup.
  291. schema:
  292. type: dict
  293. attrs:
  294. - variable: type
  295. label: Type
  296. description: |
  297. ixVolume: Is dataset created automatically by the system.</br>
  298. Host Path: Is a path that already exists on the system.
  299. schema:
  300. type: string
  301. required: true
  302. immutable: true
  303. default: ixVolume
  304. enum:
  305. - value: hostPath
  306. description: Host Path (Path that already exists on the system)
  307. - value: ixVolume
  308. description: ixVolume (Dataset created automatically by the system)
  309. - variable: ixVolumeConfig
  310. label: ixVolume Configuration
  311. description: The configuration for the ixVolume dataset.
  312. schema:
  313. type: dict
  314. # Nothing to show for the user
  315. hidden: true
  316. show_if: [["type", "=", "ixVolume"]]
  317. $ref:
  318. - "normalize/ixVolume"
  319. attrs:
  320. - variable: aclEnable
  321. label: Enable ACL
  322. description: Enable ACL for the dataset.
  323. schema:
  324. type: boolean
  325. # MariaDB does a CHMOD at startup
  326. # Which fails with ACL
  327. hidden: true
  328. default: false
  329. - variable: datasetName
  330. label: Dataset Name
  331. description: The name of the dataset to use for storage.
  332. schema:
  333. type: string
  334. required: true
  335. immutable: true
  336. hidden: true
  337. default: mariadbBackup
  338. - variable: aclEntries
  339. label: ACL Configuration
  340. schema:
  341. type: dict
  342. show_if: [["aclEnable", "=", true]]
  343. attrs: []
  344. - variable: hostPathConfig
  345. label: Host Path Configuration
  346. schema:
  347. type: dict
  348. show_if: [["type", "=", "hostPath"]]
  349. attrs:
  350. - variable: aclEnable
  351. label: Enable ACL
  352. description: Enable ACL for the dataset.
  353. schema:
  354. type: boolean
  355. # MariaDB does a CHMOD at startup
  356. # Which fails with ACL
  357. hidden: true
  358. default: false
  359. - variable: acl
  360. label: ACL Configuration
  361. schema:
  362. type: dict
  363. show_if: [["aclEnable", "=", true]]
  364. attrs: []
  365. $ref:
  366. - "normalize/acl"
  367. - variable: hostPath
  368. label: Host Path
  369. description: The host path to use for storage.
  370. schema:
  371. type: hostpath
  372. show_if: [["aclEnable", "=", false]]
  373. required: true
  374. - variable: additionalStorages
  375. label: Additional Storage
  376. description: Additional storage for Castopod.
  377. schema:
  378. type: list
  379. default: []
  380. items:
  381. - variable: storageEntry
  382. label: Storage Entry
  383. schema:
  384. type: dict
  385. attrs:
  386. - variable: type
  387. label: Type
  388. description: |
  389. ixVolume: Is dataset created automatically by the system.</br>
  390. Host Path: Is a path that already exists on the system.</br>
  391. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  392. schema:
  393. type: string
  394. required: true
  395. default: "ixVolume"
  396. immutable: true
  397. enum:
  398. - value: "hostPath"
  399. description: Host Path (Path that already exists on the system)
  400. - value: "ixVolume"
  401. description: ixVolume (Dataset created automatically by the system)
  402. - value: "smb-pv-pvc"
  403. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  404. - variable: readOnly
  405. label: Read Only
  406. description: Mount the volume as read only.
  407. schema:
  408. type: boolean
  409. default: false
  410. - variable: mountPath
  411. label: Mount Path
  412. description: The path inside the container to mount the storage.
  413. schema:
  414. type: path
  415. required: true
  416. - variable: hostPathConfig
  417. label: Host Path Configuration
  418. schema:
  419. type: dict
  420. show_if: [["type", "=", "hostPath"]]
  421. attrs:
  422. - variable: aclEnable
  423. label: Enable ACL
  424. description: Enable ACL for the dataset.
  425. schema:
  426. type: boolean
  427. default: false
  428. - variable: acl
  429. label: ACL Configuration
  430. schema:
  431. type: dict
  432. show_if: [["aclEnable", "=", true]]
  433. attrs: []
  434. $ref:
  435. - "normalize/acl"
  436. - variable: hostPath
  437. label: Host Path
  438. description: The host path to use for storage.
  439. schema:
  440. type: hostpath
  441. show_if: [["aclEnable", "=", false]]
  442. required: true
  443. - variable: ixVolumeConfig
  444. label: ixVolume Configuration
  445. description: The configuration for the ixVolume dataset.
  446. schema:
  447. type: dict
  448. show_if: [["type", "=", "ixVolume"]]
  449. $ref:
  450. - "normalize/ixVolume"
  451. attrs:
  452. - variable: aclEnable
  453. label: Enable ACL
  454. description: Enable ACL for the dataset.
  455. schema:
  456. type: boolean
  457. default: false
  458. - variable: datasetName
  459. label: Dataset Name
  460. description: The name of the dataset to use for storage.
  461. schema:
  462. type: string
  463. required: true
  464. immutable: true
  465. default: "storage_entry"
  466. - variable: aclEntries
  467. label: ACL Configuration
  468. schema:
  469. type: dict
  470. show_if: [["aclEnable", "=", true]]
  471. attrs: []
  472. - variable: smbConfig
  473. label: SMB Share Configuration
  474. description: The configuration for the SMB Share.
  475. schema:
  476. type: dict
  477. show_if: [["type", "=", "smb-pv-pvc"]]
  478. attrs:
  479. - variable: server
  480. label: Server
  481. description: The server for the SMB share.
  482. schema:
  483. type: string
  484. required: true
  485. - variable: share
  486. label: Share
  487. description: The share name for the SMB share.
  488. schema:
  489. type: string
  490. required: true
  491. - variable: domain
  492. label: Domain (Optional)
  493. description: The domain for the SMB share.
  494. schema:
  495. type: string
  496. - variable: username
  497. label: Username
  498. description: The username for the SMB share.
  499. schema:
  500. type: string
  501. required: true
  502. - variable: password
  503. label: Password
  504. description: The password for the SMB share.
  505. schema:
  506. type: string
  507. required: true
  508. private: true
  509. - variable: size
  510. label: Size (in Gi)
  511. description: The size of the volume quota.
  512. schema:
  513. type: int
  514. required: true
  515. min: 1
  516. default: 1
  517. - variable: resources
  518. label: ""
  519. group: Resources Configuration
  520. schema:
  521. type: dict
  522. attrs:
  523. - variable: limits
  524. label: Limits
  525. schema:
  526. type: dict
  527. attrs:
  528. - variable: cpu
  529. label: CPU
  530. description: CPU limit for Castopod.
  531. schema:
  532. type: string
  533. max_length: 6
  534. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  535. valid_chars_error: |
  536. Valid CPU limit formats are</br>
  537. - Plain Integer - eg. 1</br>
  538. - Float - eg. 0.5</br>
  539. - Milicpu - eg. 500m
  540. default: "4000m"
  541. required: true
  542. - variable: memory
  543. label: Memory
  544. description: Memory limit for Castopod.
  545. schema:
  546. type: string
  547. max_length: 12
  548. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  549. valid_chars_error: |
  550. Valid Memory limit formats are</br>
  551. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  552. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  553. - Plain Integer in bytes - eg. 1024</br>
  554. - Exponent - eg. 134e6
  555. default: "8Gi"
  556. required: true