questions.yaml 9.4 KB

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