questions.yaml 9.3 KB

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