questions.yaml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  1. groups:
  2. - name: Briefkasten Configuration
  3. description: Configure Briefkasten
  4. - name: Network Configuration
  5. description: Configure Network for Briefkasten
  6. - name: Storage Configuration
  7. description: Configure Storage for Briefkasten
  8. - name: Resources Configuration
  9. description: Configure Resources for Briefkasten
  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. questions:
  20. - variable: briefkastenConfig
  21. label: ""
  22. group: Briefkasten Configuration
  23. schema:
  24. type: dict
  25. attrs:
  26. - variable: url
  27. label: BaseURL
  28. description: |
  29. The URL that Briefkasten will be accessible from.</br>
  30. Example: </br>
  31. http://server.ip:30080</br>
  32. https://Briefkasten.example.com
  33. schema:
  34. type: uri
  35. default: ""
  36. required: true
  37. - variable: smtp
  38. label: SMTP Auth Provider
  39. description: Configure SMTP for Briefkasten.
  40. schema:
  41. type: dict
  42. attrs:
  43. - variable: enabled
  44. label: Enabled
  45. description: Enable SMTP for auth.
  46. schema:
  47. type: boolean
  48. default: false
  49. show_subquestions_if: true
  50. subquestions:
  51. - variable: server
  52. label: SMTP Server
  53. description: The SMTP server to use.
  54. schema:
  55. type: string
  56. default: ""
  57. required: true
  58. - variable: from
  59. label: SMTP From
  60. description: The SMTP from address to use.
  61. schema:
  62. type: string
  63. default: ""
  64. required: true
  65. - variable: github
  66. label: GitHub Auth Provider
  67. description: Configure GitHub for Briefkasten.
  68. schema:
  69. type: dict
  70. attrs:
  71. - variable: enabled
  72. label: Enabled
  73. description: Enable GitHub for auth.
  74. schema:
  75. type: boolean
  76. default: false
  77. show_subquestions_if: true
  78. subquestions:
  79. - variable: id
  80. label: GitHub Client ID
  81. description: The GitHub Client ID.
  82. schema:
  83. type: string
  84. default: ""
  85. required: true
  86. - variable: secret
  87. label: GitHub Client Secret
  88. description: The GitHub Client Secret.
  89. schema:
  90. type: string
  91. default: ""
  92. private: true
  93. required: true
  94. - variable: google
  95. label: Google Auth Provider
  96. description: Configure Google for Briefkasten.
  97. schema:
  98. type: dict
  99. attrs:
  100. - variable: enabled
  101. label: Enabled
  102. description: Enable Google for auth.
  103. schema:
  104. type: boolean
  105. default: false
  106. show_subquestions_if: true
  107. subquestions:
  108. - variable: id
  109. label: Google Client ID
  110. description: The Google Client ID.
  111. schema:
  112. type: string
  113. default: ""
  114. required: true
  115. - variable: secret
  116. label: Google Client Secret
  117. description: The Google Client Secret.
  118. schema:
  119. type: string
  120. default: ""
  121. private: true
  122. required: true
  123. - variable: keycloak
  124. label: Keycloak Auth Provider
  125. description: Configure Keycloak for Briefkasten.
  126. schema:
  127. type: dict
  128. attrs:
  129. - variable: enabled
  130. label: Enabled
  131. description: Enable Keycloak for auth.
  132. schema:
  133. type: boolean
  134. default: false
  135. show_subquestions_if: true
  136. subquestions:
  137. - variable: name
  138. label: Keycloak Name
  139. description: The Keycloak Name.
  140. schema:
  141. type: string
  142. default: ""
  143. required: true
  144. - variable: id
  145. label: Keycloak Client ID
  146. description: The Keycloak Client ID.
  147. schema:
  148. type: string
  149. default: ""
  150. required: true
  151. - variable: secret
  152. label: Keycloak Client Secret
  153. description: The Keycloak Client Secret.
  154. schema:
  155. type: string
  156. default: ""
  157. private: true
  158. required: true
  159. - variable: issuer
  160. label: Keycloak Issuer
  161. description: The Keycloak Issuer.
  162. schema:
  163. type: string
  164. default: ""
  165. required: true
  166. - variable: authentik
  167. label: Authentik Auth Provider
  168. description: Configure Authentik for Briefkasten.
  169. schema:
  170. type: dict
  171. attrs:
  172. - variable: enabled
  173. label: Enabled
  174. description: Enable Authentik for auth.
  175. schema:
  176. type: boolean
  177. default: false
  178. show_subquestions_if: true
  179. subquestions:
  180. - variable: name
  181. label: Authentik Name
  182. description: The Authentik Name.
  183. schema:
  184. type: string
  185. default: ""
  186. required: true
  187. - variable: id
  188. label: Authentik Client ID
  189. description: The Authentik Client ID.
  190. schema:
  191. type: string
  192. default: ""
  193. required: true
  194. - variable: secret
  195. label: Authentik Client Secret
  196. description: The Authentik Client Secret.
  197. schema:
  198. type: string
  199. default: ""
  200. private: true
  201. required: true
  202. - variable: issuer
  203. label: Authentik Issuer
  204. description: The Authentik Issuer.
  205. schema:
  206. type: string
  207. default: ""
  208. required: true
  209. - variable: additionalEnvs
  210. label: Additional Environment Variables
  211. description: Configure additional environment variables for Briefkasten.
  212. schema:
  213. type: list
  214. default: []
  215. items:
  216. - variable: env
  217. label: Environment Variable
  218. schema:
  219. type: dict
  220. attrs:
  221. - variable: name
  222. label: Name
  223. schema:
  224. type: string
  225. required: true
  226. - variable: value
  227. label: Value
  228. schema:
  229. type: string
  230. required: true
  231. - variable: briefkastenNetwork
  232. label: ""
  233. group: Network Configuration
  234. schema:
  235. type: dict
  236. attrs:
  237. - variable: webPort
  238. label: Web Port
  239. description: The port for the Briefkasten Web UI.
  240. schema:
  241. type: int
  242. default: 30080
  243. min: 9000
  244. max: 65535
  245. required: true
  246. - variable: hostNetwork
  247. label: Host Network
  248. description: |
  249. Bind to the host network. It's recommended to keep this disabled.</br>
  250. schema:
  251. type: boolean
  252. default: false
  253. - variable: briefkastenStorage
  254. label: ""
  255. group: Storage Configuration
  256. schema:
  257. type: dict
  258. attrs:
  259. - variable: pgData
  260. label: Postgres Data Storage
  261. description: The path to store Postgres Data.
  262. schema:
  263. type: dict
  264. attrs:
  265. - variable: type
  266. label: Type
  267. description: |
  268. ixVolume: Is dataset created automatically by the system.</br>
  269. Host Path: Is a path that already exists on the system.
  270. schema:
  271. type: string
  272. required: true
  273. immutable: true
  274. default: "ixVolume"
  275. enum:
  276. - value: "hostPath"
  277. description: Host Path (Path that already exists on the system)
  278. - value: "ixVolume"
  279. description: ixVolume (Dataset created automatically by the system)
  280. - variable: ixVolumeConfig
  281. label: ixVolume Configuration
  282. description: The configuration for the ixVolume dataset.
  283. schema:
  284. type: dict
  285. # Nothing to show for the user
  286. hidden: true
  287. show_if: [["type", "=", "ixVolume"]]
  288. $ref:
  289. - "normalize/ixVolume"
  290. attrs:
  291. - variable: aclEnable
  292. label: Enable ACL
  293. description: Enable ACL for the dataset.
  294. schema:
  295. type: boolean
  296. # Postgres does a CHMOD at startup
  297. # Which fails with ACL
  298. hidden: true
  299. default: false
  300. - variable: datasetName
  301. label: Dataset Name
  302. description: The name of the dataset to use for storage.
  303. schema:
  304. type: string
  305. required: true
  306. immutable: true
  307. hidden: true
  308. default: "pgData"
  309. - variable: aclEntries
  310. label: ACL Configuration
  311. schema:
  312. type: dict
  313. show_if: [["aclEnable", "=", true]]
  314. attrs: []
  315. - variable: hostPathConfig
  316. label: Host Path Configuration
  317. schema:
  318. type: dict
  319. show_if: [["type", "=", "hostPath"]]
  320. attrs:
  321. - variable: aclEnable
  322. label: Enable ACL
  323. description: Enable ACL for the dataset.
  324. schema:
  325. type: boolean
  326. # Postgres does a CHMOD at startup
  327. # Which fails with ACL
  328. hidden: true
  329. default: false
  330. - variable: acl
  331. label: ACL Configuration
  332. schema:
  333. type: dict
  334. show_if: [["aclEnable", "=", true]]
  335. attrs: []
  336. $ref:
  337. - "normalize/acl"
  338. - variable: hostPath
  339. label: Host Path
  340. description: The host path to use for storage.
  341. schema:
  342. type: hostpath
  343. show_if: [["aclEnable", "=", false]]
  344. required: true
  345. - variable: pgBackup
  346. label: Postgres Backup Storage
  347. description: The path to store Postgres Backup.
  348. schema:
  349. type: dict
  350. attrs:
  351. - variable: type
  352. label: Type
  353. description: |
  354. ixVolume: Is dataset created automatically by the system.</br>
  355. Host Path: Is a path that already exists on the system.
  356. schema:
  357. type: string
  358. required: true
  359. immutable: true
  360. default: "ixVolume"
  361. enum:
  362. - value: "hostPath"
  363. description: Host Path (Path that already exists on the system)
  364. - value: "ixVolume"
  365. description: ixVolume (Dataset created automatically by the system)
  366. - variable: ixVolumeConfig
  367. label: ixVolume Configuration
  368. description: The configuration for the ixVolume dataset.
  369. schema:
  370. type: dict
  371. # Nothing to show for the user
  372. hidden: true
  373. show_if: [["type", "=", "ixVolume"]]
  374. $ref:
  375. - "normalize/ixVolume"
  376. attrs:
  377. - variable: aclEnable
  378. label: Enable ACL
  379. description: Enable ACL for the dataset.
  380. schema:
  381. type: boolean
  382. # Postgres does a CHMOD at startup
  383. # Which fails with ACL
  384. hidden: true
  385. default: false
  386. - variable: datasetName
  387. label: Dataset Name
  388. description: The name of the dataset to use for storage.
  389. schema:
  390. type: string
  391. required: true
  392. immutable: true
  393. hidden: true
  394. default: "pgBackup"
  395. - variable: aclEntries
  396. label: ACL Configuration
  397. schema:
  398. type: dict
  399. show_if: [["aclEnable", "=", true]]
  400. attrs: []
  401. - variable: hostPathConfig
  402. label: Host Path Configuration
  403. schema:
  404. type: dict
  405. show_if: [["type", "=", "hostPath"]]
  406. attrs:
  407. - variable: aclEnable
  408. label: Enable ACL
  409. description: Enable ACL for the dataset.
  410. schema:
  411. type: boolean
  412. # Postgres does a CHMOD at startup
  413. # Which fails with ACL
  414. hidden: true
  415. default: false
  416. - variable: acl
  417. label: ACL Configuration
  418. schema:
  419. type: dict
  420. show_if: [["aclEnable", "=", true]]
  421. attrs: []
  422. $ref:
  423. - "normalize/acl"
  424. - variable: hostPath
  425. label: Host Path
  426. description: The host path to use for storage.
  427. schema:
  428. type: hostpath
  429. show_if: [["aclEnable", "=", false]]
  430. required: true
  431. - variable: additionalStorages
  432. label: Additional Storage
  433. description: Additional storage for Briefkasten.
  434. schema:
  435. type: list
  436. default: []
  437. items:
  438. - variable: storageEntry
  439. label: Storage Entry
  440. schema:
  441. type: dict
  442. attrs:
  443. - variable: type
  444. label: Type
  445. description: |
  446. ixVolume: Is dataset created automatically by the system.</br>
  447. Host Path: Is a path that already exists on the system.</br>
  448. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  449. schema:
  450. type: string
  451. required: true
  452. default: "ixVolume"
  453. immutable: true
  454. enum:
  455. - value: "hostPath"
  456. description: Host Path (Path that already exists on the system)
  457. - value: "ixVolume"
  458. description: ixVolume (Dataset created automatically by the system)
  459. - value: "smb-pv-pvc"
  460. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  461. - variable: readOnly
  462. label: Read Only
  463. description: Mount the volume as read only.
  464. schema:
  465. type: boolean
  466. default: false
  467. - variable: mountPath
  468. label: Mount Path
  469. description: The path inside the container to mount the storage.
  470. schema:
  471. type: path
  472. required: true
  473. - variable: hostPathConfig
  474. label: Host Path Configuration
  475. schema:
  476. type: dict
  477. show_if: [["type", "=", "hostPath"]]
  478. attrs:
  479. - variable: aclEnable
  480. label: Enable ACL
  481. description: Enable ACL for the dataset.
  482. schema:
  483. type: boolean
  484. default: false
  485. - variable: acl
  486. label: ACL Configuration
  487. schema:
  488. type: dict
  489. show_if: [["aclEnable", "=", true]]
  490. attrs: []
  491. $ref:
  492. - "normalize/acl"
  493. - variable: hostPath
  494. label: Host Path
  495. description: The host path to use for storage.
  496. schema:
  497. type: hostpath
  498. show_if: [["aclEnable", "=", false]]
  499. required: true
  500. - variable: ixVolumeConfig
  501. label: ixVolume Configuration
  502. description: The configuration for the ixVolume dataset.
  503. schema:
  504. type: dict
  505. show_if: [["type", "=", "ixVolume"]]
  506. $ref:
  507. - "normalize/ixVolume"
  508. attrs:
  509. - variable: aclEnable
  510. label: Enable ACL
  511. description: Enable ACL for the dataset.
  512. schema:
  513. type: boolean
  514. default: false
  515. - variable: datasetName
  516. label: Dataset Name
  517. description: The name of the dataset to use for storage.
  518. schema:
  519. type: string
  520. required: true
  521. immutable: true
  522. default: "storage_entry"
  523. - variable: aclEntries
  524. label: ACL Configuration
  525. schema:
  526. type: dict
  527. show_if: [["aclEnable", "=", true]]
  528. attrs: []
  529. - variable: smbConfig
  530. label: SMB Share Configuration
  531. description: The configuration for the SMB Share.
  532. schema:
  533. type: dict
  534. show_if: [["type", "=", "smb-pv-pvc"]]
  535. attrs:
  536. - variable: server
  537. label: Server
  538. description: The server for the SMB share.
  539. schema:
  540. type: string
  541. required: true
  542. - variable: share
  543. label: Share
  544. description: The share name for the SMB share.
  545. schema:
  546. type: string
  547. required: true
  548. - variable: domain
  549. label: Domain (Optional)
  550. description: The domain for the SMB share.
  551. schema:
  552. type: string
  553. - variable: username
  554. label: Username
  555. description: The username for the SMB share.
  556. schema:
  557. type: string
  558. required: true
  559. - variable: password
  560. label: Password
  561. description: The password for the SMB share.
  562. schema:
  563. type: string
  564. required: true
  565. private: true
  566. - variable: size
  567. label: Size (in Gi)
  568. description: The size of the volume quota.
  569. schema:
  570. type: int
  571. required: true
  572. min: 1
  573. default: 1
  574. - variable: resources
  575. group: Resources Configuration
  576. label: ""
  577. schema:
  578. type: dict
  579. attrs:
  580. - variable: limits
  581. label: Limits
  582. schema:
  583. type: dict
  584. attrs:
  585. - variable: cpu
  586. label: CPU
  587. description: CPU limit for Briefkasten.
  588. schema:
  589. type: string
  590. max_length: 6
  591. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  592. valid_chars_error: |
  593. Valid CPU limit formats are</br>
  594. - Plain Integer - eg. 1</br>
  595. - Float - eg. 0.5</br>
  596. - Milicpu - eg. 500m
  597. default: "4000m"
  598. required: true
  599. - variable: memory
  600. label: Memory
  601. description: Memory limit for Briefkasten.
  602. schema:
  603. type: string
  604. max_length: 12
  605. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  606. valid_chars_error: |
  607. Valid Memory limit formats are</br>
  608. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  609. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  610. - Plain Integer in bytes - eg. 1024</br>
  611. - Exponent - eg. 134e6
  612. default: "8Gi"
  613. required: true