questions.yaml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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.
  125. schema:
  126. type: string
  127. required: true
  128. default: "ixVolume"
  129. immutable: true
  130. enum:
  131. - value: "hostPath"
  132. description: Host Path (Path that already exists on the system)
  133. - value: "ixVolume"
  134. description: ixVolume (Dataset created automatically by the system)
  135. - value: "smb-pv-pvc"
  136. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  137. - variable: mountPath
  138. label: Mount Path
  139. description: The path inside the container to mount the storage.
  140. schema:
  141. type: path
  142. required: true
  143. - variable: hostPath
  144. label: Host Path
  145. description: The host path to use for storage.
  146. schema:
  147. type: hostpath
  148. show_if: [["type", "=", "hostPath"]]
  149. required: true
  150. - variable: datasetName
  151. label: Dataset Name
  152. description: The name of the dataset to use for storage.
  153. schema:
  154. type: string
  155. show_if: [["type", "=", "ixVolume"]]
  156. required: true
  157. immutable: true
  158. default: "storage_entry"
  159. $ref:
  160. - "normalize/ixVolume"
  161. - variable: server
  162. label: Server
  163. description: The server for the SMB share.
  164. schema:
  165. type: string
  166. show_if: [["type", "=", "smb-pv-pvc"]]
  167. required: true
  168. - variable: share
  169. label: Share
  170. description: The share name for the SMB share.
  171. schema:
  172. type: string
  173. show_if: [["type", "=", "smb-pv-pvc"]]
  174. required: true
  175. - variable: domain
  176. label: Domain (Optional)
  177. description: The domain for the SMB share.
  178. schema:
  179. type: string
  180. show_if: [["type", "=", "smb-pv-pvc"]]
  181. - variable: username
  182. label: Username
  183. description: The username for the SMB share.
  184. schema:
  185. type: string
  186. show_if: [["type", "=", "smb-pv-pvc"]]
  187. required: true
  188. - variable: password
  189. label: Password
  190. description: The password for the SMB share.
  191. schema:
  192. type: string
  193. show_if: [["type", "=", "smb-pv-pvc"]]
  194. required: true
  195. private: true
  196. - variable: size
  197. label: Size (in Gi)
  198. description: The size of the volume quota.
  199. schema:
  200. type: int
  201. show_if: [["type", "=", "smb-pv-pvc"]]
  202. required: true
  203. min: 1
  204. default: 1
  205. - variable: resources
  206. group: Resources Configuration
  207. label: ""
  208. schema:
  209. type: dict
  210. attrs:
  211. - variable: limits
  212. label: Limits
  213. schema:
  214. type: dict
  215. attrs:
  216. - variable: cpu
  217. label: CPU
  218. description: CPU limit for Logseq.
  219. schema:
  220. type: string
  221. max_length: 6
  222. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  223. valid_chars_error: |
  224. Valid CPU limit formats are</br>
  225. - Plain Integer - eg. 1</br>
  226. - Float - eg. 0.5</br>
  227. - Milicpu - eg. 500m
  228. default: "4000m"
  229. required: true
  230. - variable: memory
  231. label: Memory
  232. description: Memory limit for Logseq.
  233. schema:
  234. type: string
  235. max_length: 12
  236. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  237. valid_chars_error: |
  238. Valid Memory limit formats are</br>
  239. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  240. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  241. - Plain Integer in bytes - eg. 1024</br>
  242. - Exponent - eg. 134e6
  243. default: "8Gi"
  244. required: true