questions.yaml 10 KB

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