questions.yaml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  1. groups:
  2. - name: Joplin Configuration
  3. description: Configure Joplin
  4. - name: Network Configuration
  5. description: Configure Network for Joplin
  6. - name: Storage Configuration
  7. description: Configure Storage for Joplin
  8. - name: Resources Configuration
  9. description: Configure Resources for Joplin
  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: joplinConfig
  21. label: ""
  22. group: Joplin Configuration
  23. schema:
  24. type: dict
  25. attrs:
  26. - variable: baseUrl
  27. label: Base URL
  28. description: |
  29. The base URL for Joplin.</br>
  30. Examples:</br>
  31. https://joplin.example.com
  32. http://192.168.1.100:30062
  33. schema:
  34. type: uri
  35. default: ""
  36. required: true
  37. - variable: additionalEnvs
  38. label: Additional Environment Variables
  39. description: Configure additional environment variables for Joplin.
  40. schema:
  41. type: list
  42. default: []
  43. items:
  44. - variable: env
  45. label: Environment Variable
  46. schema:
  47. type: dict
  48. attrs:
  49. - variable: name
  50. label: Name
  51. schema:
  52. type: string
  53. required: true
  54. - variable: value
  55. label: Value
  56. schema:
  57. type: string
  58. required: true
  59. - variable: joplinNetwork
  60. label: ""
  61. group: Network Configuration
  62. schema:
  63. type: dict
  64. attrs:
  65. - variable: webPort
  66. label: Web Port
  67. description: The port for the Joplin Web UI.
  68. schema:
  69. type: int
  70. default: 30062
  71. min: 9000
  72. max: 65535
  73. required: true
  74. - variable: hostNetwork
  75. label: Host Network
  76. description: |
  77. Bind to the host network. It's recommended to keep this disabled.</br>
  78. schema:
  79. type: boolean
  80. default: false
  81. - variable: joplinStorage
  82. label: ""
  83. group: Storage Configuration
  84. schema:
  85. type: dict
  86. attrs:
  87. - variable: pgData
  88. label: Joplin Postgres Data Storage
  89. description: The path to store Joplin Postgres Data.
  90. schema:
  91. type: dict
  92. attrs:
  93. - variable: type
  94. label: Type
  95. description: |
  96. ixVolume: Is dataset created automatically by the system.</br>
  97. Host Path: Is a path that already exists on the system.
  98. schema:
  99. type: string
  100. required: true
  101. immutable: true
  102. default: ixVolume
  103. enum:
  104. - value: hostPath
  105. description: Host Path (Path that already exists on the system)
  106. - value: ixVolume
  107. description: ixVolume (Dataset created automatically by the system)
  108. - variable: ixVolumeConfig
  109. label: ixVolume Configuration
  110. description: The configuration for the ixVolume dataset.
  111. schema:
  112. type: dict
  113. # Nothing to show for the user
  114. hidden: true
  115. show_if: [["type", "=", "ixVolume"]]
  116. $ref:
  117. - "normalize/ixVolume"
  118. attrs:
  119. - variable: aclEnable
  120. label: Enable ACL
  121. description: Enable ACL for the dataset.
  122. schema:
  123. type: boolean
  124. # Postgres does a CHMOD at startup
  125. # Which fails with ACL
  126. hidden: true
  127. default: false
  128. - variable: datasetName
  129. label: Dataset Name
  130. description: The name of the dataset to use for storage.
  131. schema:
  132. type: string
  133. required: true
  134. immutable: true
  135. hidden: true
  136. default: "pgData"
  137. - variable: aclEntries
  138. label: ACL Configuration
  139. schema:
  140. type: dict
  141. show_if: [["aclEnable", "=", true]]
  142. attrs: []
  143. - variable: hostPathConfig
  144. label: Host Path Configuration
  145. schema:
  146. type: dict
  147. show_if: [["type", "=", "hostPath"]]
  148. attrs:
  149. - variable: aclEnable
  150. label: Enable ACL
  151. description: Enable ACL for the dataset.
  152. schema:
  153. type: boolean
  154. # Postgres does a CHMOD at startup
  155. # Which fails with ACL
  156. hidden: true
  157. default: false
  158. - variable: acl
  159. label: ACL Configuration
  160. schema:
  161. type: dict
  162. show_if: [["aclEnable", "=", true]]
  163. attrs: []
  164. $ref:
  165. - "normalize/acl"
  166. - variable: hostPath
  167. label: Host Path
  168. description: The host path to use for storage.
  169. schema:
  170. type: hostpath
  171. show_if: [["aclEnable", "=", false]]
  172. required: true
  173. - variable: pgBackup
  174. label: Joplin Postgres Backup Storage
  175. description: The path to store Joplin Postgres Backup.
  176. schema:
  177. type: dict
  178. attrs:
  179. - variable: type
  180. label: Type
  181. description: |
  182. ixVolume: Is dataset created automatically by the system.</br>
  183. Host Path: Is a path that already exists on the system.
  184. schema:
  185. type: string
  186. required: true
  187. immutable: true
  188. default: ixVolume
  189. enum:
  190. - value: hostPath
  191. description: Host Path (Path that already exists on the system)
  192. - value: ixVolume
  193. description: ixVolume (Dataset created automatically by the system)
  194. - variable: ixVolumeConfig
  195. label: ixVolume Configuration
  196. description: The configuration for the ixVolume dataset.
  197. schema:
  198. type: dict
  199. # Nothing to show for the user
  200. hidden: true
  201. show_if: [["type", "=", "ixVolume"]]
  202. $ref:
  203. - "normalize/ixVolume"
  204. attrs:
  205. - variable: aclEnable
  206. label: Enable ACL
  207. description: Enable ACL for the dataset.
  208. schema:
  209. type: boolean
  210. # Postgres does a CHMOD at startup
  211. # Which fails with ACL
  212. hidden: true
  213. default: false
  214. - variable: datasetName
  215. label: Dataset Name
  216. description: The name of the dataset to use for storage.
  217. schema:
  218. type: string
  219. required: true
  220. immutable: true
  221. hidden: true
  222. default: "pgBackup"
  223. - variable: aclEntries
  224. label: ACL Configuration
  225. schema:
  226. type: dict
  227. show_if: [["aclEnable", "=", true]]
  228. attrs: []
  229. - variable: hostPathConfig
  230. label: Host Path Configuration
  231. schema:
  232. type: dict
  233. show_if: [["type", "=", "hostPath"]]
  234. attrs:
  235. - variable: aclEnable
  236. label: Enable ACL
  237. description: Enable ACL for the dataset.
  238. schema:
  239. type: boolean
  240. # Postgres does a CHMOD at startup
  241. # Which fails with ACL
  242. hidden: true
  243. default: false
  244. - variable: acl
  245. label: ACL Configuration
  246. schema:
  247. type: dict
  248. show_if: [["aclEnable", "=", true]]
  249. attrs: []
  250. $ref:
  251. - "normalize/acl"
  252. - variable: hostPath
  253. label: Host Path
  254. description: The host path to use for storage.
  255. schema:
  256. type: hostpath
  257. show_if: [["aclEnable", "=", false]]
  258. required: true
  259. - variable: additionalStorages
  260. label: Additional Storage
  261. description: Additional storage for Joplin.
  262. schema:
  263. type: list
  264. default: []
  265. items:
  266. - variable: storageEntry
  267. label: Storage Entry
  268. schema:
  269. type: dict
  270. attrs:
  271. - variable: type
  272. label: Type
  273. description: |
  274. ixVolume: Is dataset created automatically by the system.</br>
  275. Host Path: Is a path that already exists on the system.</br>
  276. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  277. schema:
  278. type: string
  279. required: true
  280. default: "ixVolume"
  281. immutable: true
  282. enum:
  283. - value: "hostPath"
  284. description: Host Path (Path that already exists on the system)
  285. - value: "ixVolume"
  286. description: ixVolume (Dataset created automatically by the system)
  287. - value: "smb-pv-pvc"
  288. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  289. - variable: readOnly
  290. label: Read Only
  291. description: Mount the volume as read only.
  292. schema:
  293. type: boolean
  294. default: false
  295. - variable: mountPath
  296. label: Mount Path
  297. description: The path inside the container to mount the storage.
  298. schema:
  299. type: path
  300. required: true
  301. - variable: hostPathConfig
  302. label: Host Path Configuration
  303. schema:
  304. type: dict
  305. show_if: [["type", "=", "hostPath"]]
  306. attrs:
  307. - variable: aclEnable
  308. label: Enable ACL
  309. description: Enable ACL for the dataset.
  310. schema:
  311. type: boolean
  312. default: false
  313. - variable: acl
  314. label: ACL Configuration
  315. schema:
  316. type: dict
  317. show_if: [["aclEnable", "=", true]]
  318. attrs: []
  319. $ref:
  320. - "normalize/acl"
  321. - variable: hostPath
  322. label: Host Path
  323. description: The host path to use for storage.
  324. schema:
  325. type: hostpath
  326. show_if: [["aclEnable", "=", false]]
  327. required: true
  328. - variable: ixVolumeConfig
  329. label: ixVolume Configuration
  330. description: The configuration for the ixVolume dataset.
  331. schema:
  332. type: dict
  333. show_if: [["type", "=", "ixVolume"]]
  334. $ref:
  335. - "normalize/ixVolume"
  336. attrs:
  337. - variable: aclEnable
  338. label: Enable ACL
  339. description: Enable ACL for the dataset.
  340. schema:
  341. type: boolean
  342. default: false
  343. - variable: datasetName
  344. label: Dataset Name
  345. description: The name of the dataset to use for storage.
  346. schema:
  347. type: string
  348. required: true
  349. immutable: true
  350. default: "storage_entry"
  351. - variable: aclEntries
  352. label: ACL Configuration
  353. schema:
  354. type: dict
  355. show_if: [["aclEnable", "=", true]]
  356. attrs: []
  357. - variable: smbConfig
  358. label: SMB Share Configuration
  359. description: The configuration for the SMB Share.
  360. schema:
  361. type: dict
  362. show_if: [["type", "=", "smb-pv-pvc"]]
  363. attrs:
  364. - variable: server
  365. label: Server
  366. description: The server for the SMB share.
  367. schema:
  368. type: string
  369. required: true
  370. - variable: share
  371. label: Share
  372. description: The share name for the SMB share.
  373. schema:
  374. type: string
  375. required: true
  376. - variable: domain
  377. label: Domain (Optional)
  378. description: The domain for the SMB share.
  379. schema:
  380. type: string
  381. - variable: username
  382. label: Username
  383. description: The username for the SMB share.
  384. schema:
  385. type: string
  386. required: true
  387. - variable: password
  388. label: Password
  389. description: The password for the SMB share.
  390. schema:
  391. type: string
  392. required: true
  393. private: true
  394. - variable: size
  395. label: Size (in Gi)
  396. description: The size of the volume quota.
  397. schema:
  398. type: int
  399. required: true
  400. min: 1
  401. default: 1
  402. - variable: resources
  403. group: Resources Configuration
  404. label: ""
  405. schema:
  406. type: dict
  407. attrs:
  408. - variable: limits
  409. label: Limits
  410. schema:
  411. type: dict
  412. attrs:
  413. - variable: cpu
  414. label: CPU
  415. description: CPU limit for Joplin.
  416. schema:
  417. type: string
  418. max_length: 6
  419. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  420. valid_chars_error: |
  421. Valid CPU limit formats are</br>
  422. - Plain Integer - eg. 1</br>
  423. - Float - eg. 0.5</br>
  424. - Milicpu - eg. 500m
  425. default: "4000m"
  426. required: true
  427. - variable: memory
  428. label: Memory
  429. description: Memory limit for Joplin.
  430. schema:
  431. type: string
  432. max_length: 12
  433. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  434. valid_chars_error: |
  435. Valid Memory limit formats are</br>
  436. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  437. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  438. - Plain Integer in bytes - eg. 1024</br>
  439. - Exponent - eg. 134e6
  440. default: "8Gi"
  441. required: true