questions.yaml 22 KB

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