questions.yaml 22 KB

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