questions.yaml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  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. immutable: true
  173. required: true
  174. - variable: pgBackup
  175. label: Joplin Postgres Backup Storage
  176. description: The path to store Joplin Postgres Backup.
  177. schema:
  178. type: dict
  179. attrs:
  180. - variable: type
  181. label: Type
  182. description: |
  183. ixVolume: Is dataset created automatically by the system.</br>
  184. Host Path: Is a path that already exists on the system.
  185. schema:
  186. type: string
  187. required: true
  188. immutable: true
  189. default: ixVolume
  190. enum:
  191. - value: hostPath
  192. description: Host Path (Path that already exists on the system)
  193. - value: ixVolume
  194. description: ixVolume (Dataset created automatically by the system)
  195. - variable: ixVolumeConfig
  196. label: ixVolume Configuration
  197. description: The configuration for the ixVolume dataset.
  198. schema:
  199. type: dict
  200. # Nothing to show for the user
  201. hidden: true
  202. show_if: [["type", "=", "ixVolume"]]
  203. $ref:
  204. - "normalize/ixVolume"
  205. attrs:
  206. - variable: aclEnable
  207. label: Enable ACL
  208. description: Enable ACL for the dataset.
  209. schema:
  210. type: boolean
  211. # Postgres does a CHMOD at startup
  212. # Which fails with ACL
  213. hidden: true
  214. default: false
  215. - variable: datasetName
  216. label: Dataset Name
  217. description: The name of the dataset to use for storage.
  218. schema:
  219. type: string
  220. required: true
  221. immutable: true
  222. hidden: true
  223. default: "pgBackup"
  224. - variable: aclEntries
  225. label: ACL Configuration
  226. schema:
  227. type: dict
  228. show_if: [["aclEnable", "=", true]]
  229. attrs: []
  230. - variable: hostPathConfig
  231. label: Host Path Configuration
  232. schema:
  233. type: dict
  234. show_if: [["type", "=", "hostPath"]]
  235. attrs:
  236. - variable: aclEnable
  237. label: Enable ACL
  238. description: Enable ACL for the dataset.
  239. schema:
  240. type: boolean
  241. # Postgres does a CHMOD at startup
  242. # Which fails with ACL
  243. hidden: true
  244. default: false
  245. - variable: acl
  246. label: ACL Configuration
  247. schema:
  248. type: dict
  249. show_if: [["aclEnable", "=", true]]
  250. attrs: []
  251. $ref:
  252. - "normalize/acl"
  253. - variable: hostPath
  254. label: Host Path
  255. description: The host path to use for storage.
  256. schema:
  257. type: hostpath
  258. show_if: [["aclEnable", "=", false]]
  259. immutable: true
  260. required: true
  261. - variable: additionalStorages
  262. label: Additional Storage
  263. description: Additional storage for Joplin.
  264. schema:
  265. type: list
  266. default: []
  267. items:
  268. - variable: storageEntry
  269. label: Storage Entry
  270. schema:
  271. type: dict
  272. attrs:
  273. - variable: type
  274. label: Type
  275. description: |
  276. ixVolume: Is dataset created automatically by the system.</br>
  277. Host Path: Is a path that already exists on the system.</br>
  278. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  279. schema:
  280. type: string
  281. required: true
  282. default: "ixVolume"
  283. immutable: true
  284. enum:
  285. - value: "hostPath"
  286. description: Host Path (Path that already exists on the system)
  287. - value: "ixVolume"
  288. description: ixVolume (Dataset created automatically by the system)
  289. - value: "smb-pv-pvc"
  290. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  291. - variable: readOnly
  292. label: Read Only
  293. description: Mount the volume as read only.
  294. schema:
  295. type: boolean
  296. default: false
  297. - variable: mountPath
  298. label: Mount Path
  299. description: The path inside the container to mount the storage.
  300. schema:
  301. type: path
  302. required: true
  303. - variable: hostPathConfig
  304. label: Host Path Configuration
  305. schema:
  306. type: dict
  307. show_if: [["type", "=", "hostPath"]]
  308. attrs:
  309. - variable: aclEnable
  310. label: Enable ACL
  311. description: Enable ACL for the dataset.
  312. schema:
  313. type: boolean
  314. default: false
  315. - variable: acl
  316. label: ACL Configuration
  317. schema:
  318. type: dict
  319. show_if: [["aclEnable", "=", true]]
  320. attrs: []
  321. $ref:
  322. - "normalize/acl"
  323. - variable: hostPath
  324. label: Host Path
  325. description: The host path to use for storage.
  326. schema:
  327. type: hostpath
  328. show_if: [["aclEnable", "=", false]]
  329. immutable: true
  330. required: true
  331. - variable: ixVolumeConfig
  332. label: ixVolume Configuration
  333. description: The configuration for the ixVolume dataset.
  334. schema:
  335. type: dict
  336. show_if: [["type", "=", "ixVolume"]]
  337. $ref:
  338. - "normalize/ixVolume"
  339. attrs:
  340. - variable: aclEnable
  341. label: Enable ACL
  342. description: Enable ACL for the dataset.
  343. schema:
  344. type: boolean
  345. default: false
  346. - variable: datasetName
  347. label: Dataset Name
  348. description: The name of the dataset to use for storage.
  349. schema:
  350. type: string
  351. required: true
  352. immutable: true
  353. default: "storage_entry"
  354. - variable: aclEntries
  355. label: ACL Configuration
  356. schema:
  357. type: dict
  358. show_if: [["aclEnable", "=", true]]
  359. attrs: []
  360. - variable: smbConfig
  361. label: SMB Share Configuration
  362. description: The configuration for the SMB Share.
  363. schema:
  364. type: dict
  365. show_if: [["type", "=", "smb-pv-pvc"]]
  366. attrs:
  367. - variable: server
  368. label: Server
  369. description: The server for the SMB share.
  370. schema:
  371. type: string
  372. required: true
  373. - variable: share
  374. label: Share
  375. description: The share name for the SMB share.
  376. schema:
  377. type: string
  378. required: true
  379. - variable: domain
  380. label: Domain (Optional)
  381. description: The domain for the SMB share.
  382. schema:
  383. type: string
  384. - variable: username
  385. label: Username
  386. description: The username for the SMB share.
  387. schema:
  388. type: string
  389. required: true
  390. - variable: password
  391. label: Password
  392. description: The password for the SMB share.
  393. schema:
  394. type: string
  395. required: true
  396. private: true
  397. - variable: size
  398. label: Size (in Gi)
  399. description: The size of the volume quota.
  400. schema:
  401. type: int
  402. required: true
  403. min: 1
  404. default: 1
  405. - variable: resources
  406. group: Resources Configuration
  407. label: ""
  408. schema:
  409. type: dict
  410. attrs:
  411. - variable: limits
  412. label: Limits
  413. schema:
  414. type: dict
  415. attrs:
  416. - variable: cpu
  417. label: CPU
  418. description: CPU limit for Joplin.
  419. schema:
  420. type: string
  421. max_length: 6
  422. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  423. valid_chars_error: |
  424. Valid CPU limit formats are</br>
  425. - Plain Integer - eg. 1</br>
  426. - Float - eg. 0.5</br>
  427. - Milicpu - eg. 500m
  428. default: "4000m"
  429. required: true
  430. - variable: memory
  431. label: Memory
  432. description: Memory limit for Joplin.
  433. schema:
  434. type: string
  435. max_length: 12
  436. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  437. valid_chars_error: |
  438. Valid Memory limit formats are</br>
  439. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  440. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  441. - Plain Integer in bytes - eg. 1024</br>
  442. - Exponent - eg. 134e6
  443. default: "8Gi"
  444. required: true