questions.yaml 9.4 KB

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