questions.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. groups:
  2. - name: Logseq Configuration
  3. description: Configure Logseq
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Logseq
  6. - name: Network Configuration
  7. description: Configure Network for Logseq
  8. - name: Storage Configuration
  9. description: Configure Storage for Logseq
  10. - name: Resources Configuration
  11. description: Configure Resources for Logseq
  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: logseqConfig
  23. label: ""
  24. group: Logseq Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: additionalEnvs
  29. label: Additional Environment Variables
  30. description: Configure additional environment variables for Logseq.
  31. schema:
  32. type: list
  33. default: []
  34. items:
  35. - variable: env
  36. label: Environment Variable
  37. schema:
  38. type: dict
  39. attrs:
  40. - variable: name
  41. label: Name
  42. schema:
  43. type: string
  44. required: true
  45. - variable: value
  46. label: Value
  47. schema:
  48. type: string
  49. required: true
  50. - variable: logseqRunAs
  51. label: ""
  52. group: User and Group Configuration
  53. schema:
  54. type: dict
  55. attrs:
  56. - variable: user
  57. label: User ID
  58. description: The user id that Logseq will run as.
  59. schema:
  60. type: int
  61. min: 2
  62. default: 568
  63. required: true
  64. - variable: group
  65. label: Group ID
  66. description: The group id that Logseq will run as.
  67. schema:
  68. type: int
  69. min: 2
  70. default: 568
  71. required: true
  72. - variable: logseqNetwork
  73. label: ""
  74. group: Network Configuration
  75. schema:
  76. type: dict
  77. attrs:
  78. - variable: webPort
  79. label: Web Port
  80. description: The port for the Logseq Web UI.
  81. schema:
  82. type: int
  83. default: 30079
  84. min: 9000
  85. max: 65535
  86. required: true
  87. - variable: certificateID
  88. label: Certificate
  89. description: The certificate to use for Logseq.
  90. schema:
  91. type: int
  92. "null": true
  93. $ref:
  94. - "definitions/certificate"
  95. - variable: hostNetwork
  96. label: Host Network
  97. description: |
  98. Bind to the host network. It's recommended to keep this disabled.</br>
  99. schema:
  100. type: boolean
  101. default: false
  102. - variable: logseqStorage
  103. label: ""
  104. group: Storage Configuration
  105. schema:
  106. type: dict
  107. attrs:
  108. - variable: additionalStorages
  109. label: Additional Storage
  110. description: Additional storage for Logseq.
  111. schema:
  112. type: list
  113. default: []
  114. items:
  115. - variable: storageEntry
  116. label: Storage Entry
  117. schema:
  118. type: dict
  119. attrs:
  120. - variable: type
  121. label: Type
  122. description: |
  123. ixVolume: Is dataset created automatically by the system.</br>
  124. Host Path: Is a path that already exists on the system.</br>
  125. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  126. schema:
  127. type: string
  128. required: true
  129. default: "ixVolume"
  130. immutable: true
  131. enum:
  132. - value: "hostPath"
  133. description: Host Path (Path that already exists on the system)
  134. - value: "ixVolume"
  135. description: ixVolume (Dataset created automatically by the system)
  136. - value: "smb-pv-pvc"
  137. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  138. - variable: readOnly
  139. label: Read Only
  140. description: Mount the volume as read only.
  141. schema:
  142. type: boolean
  143. default: false
  144. - variable: mountPath
  145. label: Mount Path
  146. description: The path inside the container to mount the storage.
  147. schema:
  148. type: path
  149. required: true
  150. - variable: hostPathConfig
  151. label: Host Path Configuration
  152. schema:
  153. type: dict
  154. show_if: [["type", "=", "hostPath"]]
  155. attrs:
  156. - variable: aclEnable
  157. label: Enable ACL
  158. description: Enable ACL for the dataset.
  159. schema:
  160. type: boolean
  161. default: false
  162. - variable: acl
  163. label: ACL Configuration
  164. schema:
  165. type: dict
  166. show_if: [["aclEnable", "=", true]]
  167. attrs: []
  168. $ref:
  169. - "normalize/acl"
  170. - variable: hostPath
  171. label: Host Path
  172. description: The host path to use for storage.
  173. schema:
  174. type: hostpath
  175. show_if: [["aclEnable", "=", false]]
  176. required: true
  177. - variable: ixVolumeConfig
  178. label: ixVolume Configuration
  179. description: The configuration for the ixVolume dataset.
  180. schema:
  181. type: dict
  182. show_if: [["type", "=", "ixVolume"]]
  183. $ref:
  184. - "normalize/ixVolume"
  185. attrs:
  186. - variable: aclEnable
  187. label: Enable ACL
  188. description: Enable ACL for the dataset.
  189. schema:
  190. type: boolean
  191. default: false
  192. - variable: datasetName
  193. label: Dataset Name
  194. description: The name of the dataset to use for storage.
  195. schema:
  196. type: string
  197. required: true
  198. immutable: true
  199. default: "storage_entry"
  200. - variable: aclEntries
  201. label: ACL Configuration
  202. schema:
  203. type: dict
  204. show_if: [["aclEnable", "=", true]]
  205. attrs: []
  206. - variable: smbConfig
  207. label: SMB Share Configuration
  208. description: The configuration for the SMB Share.
  209. schema:
  210. type: dict
  211. show_if: [["type", "=", "smb-pv-pvc"]]
  212. attrs:
  213. - variable: server
  214. label: Server
  215. description: The server for the SMB share.
  216. schema:
  217. type: string
  218. required: true
  219. - variable: share
  220. label: Share
  221. description: The share name for the SMB share.
  222. schema:
  223. type: string
  224. required: true
  225. - variable: domain
  226. label: Domain (Optional)
  227. description: The domain for the SMB share.
  228. schema:
  229. type: string
  230. - variable: username
  231. label: Username
  232. description: The username for the SMB share.
  233. schema:
  234. type: string
  235. required: true
  236. - variable: password
  237. label: Password
  238. description: The password for the SMB share.
  239. schema:
  240. type: string
  241. required: true
  242. private: true
  243. - variable: size
  244. label: Size (in Gi)
  245. description: The size of the volume quota.
  246. schema:
  247. type: int
  248. required: true
  249. min: 1
  250. default: 1
  251. - variable: resources
  252. group: Resources Configuration
  253. label: ""
  254. schema:
  255. type: dict
  256. attrs:
  257. - variable: limits
  258. label: Limits
  259. schema:
  260. type: dict
  261. attrs:
  262. - variable: cpu
  263. label: CPU
  264. description: CPU limit for Logseq.
  265. schema:
  266. type: string
  267. max_length: 6
  268. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  269. valid_chars_error: |
  270. Valid CPU limit formats are</br>
  271. - Plain Integer - eg. 1</br>
  272. - Float - eg. 0.5</br>
  273. - Milicpu - eg. 500m
  274. default: "4000m"
  275. required: true
  276. - variable: memory
  277. label: Memory
  278. description: Memory limit for Logseq.
  279. schema:
  280. type: string
  281. max_length: 12
  282. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  283. valid_chars_error: |
  284. Valid Memory limit formats are</br>
  285. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  286. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  287. - Plain Integer in bytes - eg. 1024</br>
  288. - Exponent - eg. 134e6
  289. default: "8Gi"
  290. required: true