questions.yaml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  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: ixVolumeConfig
  98. label: ixVolume Configuration
  99. description: The configuration for the ixVolume dataset.
  100. schema:
  101. type: dict
  102. show_if: [["type", "=", "ixVolume"]]
  103. $ref:
  104. - "normalize/ixVolume"
  105. attrs:
  106. - variable: aclEnable
  107. label: Enable ACL
  108. description: Enable ACL for the dataset.
  109. schema:
  110. type: boolean
  111. default: false
  112. - variable: datasetName
  113. label: Dataset Name
  114. description: The name of the dataset to use for storage.
  115. schema:
  116. type: string
  117. required: true
  118. immutable: true
  119. hidden: true
  120. default: "config"
  121. - variable: aclEntries
  122. label: ACL Configuration
  123. schema:
  124. type: dict
  125. show_if: [["aclEnable", "=", true]]
  126. attrs: []
  127. - variable: hostPathConfig
  128. label: Host Path Configuration
  129. schema:
  130. type: dict
  131. show_if: [["type", "=", "hostPath"]]
  132. attrs:
  133. - variable: aclEnable
  134. label: Enable ACL
  135. description: Enable ACL for the dataset.
  136. schema:
  137. type: boolean
  138. default: false
  139. - variable: acl
  140. label: ACL Configuration
  141. schema:
  142. type: dict
  143. show_if: [["aclEnable", "=", true]]
  144. attrs: []
  145. $ref:
  146. - "normalize/acl"
  147. - variable: hostPath
  148. label: Host Path
  149. description: The host path to use for storage.
  150. schema:
  151. type: hostpath
  152. show_if: [["aclEnable", "=", false]]
  153. required: true
  154. - variable: additionalStorages
  155. label: Additional Storage
  156. description: Additional storage for Homepage.
  157. schema:
  158. type: list
  159. default: []
  160. items:
  161. - variable: storageEntry
  162. label: Storage Entry
  163. schema:
  164. type: dict
  165. attrs:
  166. - variable: type
  167. label: Type
  168. description: |
  169. ixVolume: Is dataset created automatically by the system.</br>
  170. Host Path: Is a path that already exists on the system.</br>
  171. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  172. schema:
  173. type: string
  174. required: true
  175. default: "ixVolume"
  176. immutable: true
  177. enum:
  178. - value: "hostPath"
  179. description: Host Path (Path that already exists on the system)
  180. - value: "ixVolume"
  181. description: ixVolume (Dataset created automatically by the system)
  182. - value: "smb-pv-pvc"
  183. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  184. - variable: readOnly
  185. label: Read Only
  186. description: Mount the volume as read only.
  187. schema:
  188. type: boolean
  189. default: false
  190. - variable: mountPath
  191. label: Mount Path
  192. description: The path inside the container to mount the storage.
  193. schema:
  194. type: path
  195. required: true
  196. - variable: hostPathConfig
  197. label: Host Path Configuration
  198. schema:
  199. type: dict
  200. show_if: [["type", "=", "hostPath"]]
  201. attrs:
  202. - variable: aclEnable
  203. label: Enable ACL
  204. description: Enable ACL for the dataset.
  205. schema:
  206. type: boolean
  207. default: false
  208. - variable: acl
  209. label: ACL Configuration
  210. schema:
  211. type: dict
  212. show_if: [["aclEnable", "=", true]]
  213. attrs: []
  214. $ref:
  215. - "normalize/acl"
  216. - variable: hostPath
  217. label: Host Path
  218. description: The host path to use for storage.
  219. schema:
  220. type: hostpath
  221. show_if: [["aclEnable", "=", false]]
  222. required: true
  223. - variable: ixVolumeConfig
  224. label: ixVolume Configuration
  225. description: The configuration for the ixVolume dataset.
  226. schema:
  227. type: dict
  228. show_if: [["type", "=", "ixVolume"]]
  229. $ref:
  230. - "normalize/ixVolume"
  231. attrs:
  232. - variable: aclEnable
  233. label: Enable ACL
  234. description: Enable ACL for the dataset.
  235. schema:
  236. type: boolean
  237. default: false
  238. - variable: datasetName
  239. label: Dataset Name
  240. description: The name of the dataset to use for storage.
  241. schema:
  242. type: string
  243. required: true
  244. immutable: true
  245. default: "storage_entry"
  246. - variable: aclEntries
  247. label: ACL Configuration
  248. schema:
  249. type: dict
  250. show_if: [["aclEnable", "=", true]]
  251. attrs: []
  252. - variable: smbConfig
  253. label: SMB Share Configuration
  254. description: The configuration for the SMB Share.
  255. schema:
  256. type: dict
  257. show_if: [["type", "=", "smb-pv-pvc"]]
  258. attrs:
  259. - variable: server
  260. label: Server
  261. description: The server for the SMB share.
  262. schema:
  263. type: string
  264. required: true
  265. - variable: share
  266. label: Share
  267. description: The share name for the SMB share.
  268. schema:
  269. type: string
  270. required: true
  271. - variable: domain
  272. label: Domain (Optional)
  273. description: The domain for the SMB share.
  274. schema:
  275. type: string
  276. - variable: username
  277. label: Username
  278. description: The username for the SMB share.
  279. schema:
  280. type: string
  281. required: true
  282. - variable: password
  283. label: Password
  284. description: The password for the SMB share.
  285. schema:
  286. type: string
  287. required: true
  288. private: true
  289. - variable: size
  290. label: Size (in Gi)
  291. description: The size of the volume quota.
  292. schema:
  293. type: int
  294. required: true
  295. min: 1
  296. default: 1
  297. - variable: resources
  298. group: Resources Configuration
  299. label: ""
  300. schema:
  301. type: dict
  302. attrs:
  303. - variable: limits
  304. label: Limits
  305. schema:
  306. type: dict
  307. attrs:
  308. - variable: cpu
  309. label: CPU
  310. description: CPU limit for Homepage.
  311. schema:
  312. type: string
  313. max_length: 6
  314. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  315. valid_chars_error: |
  316. Valid CPU limit formats are</br>
  317. - Plain Integer - eg. 1</br>
  318. - Float - eg. 0.5</br>
  319. - Milicpu - eg. 500m
  320. default: "4000m"
  321. required: true
  322. - variable: memory
  323. label: Memory
  324. description: Memory limit for Homepage.
  325. schema:
  326. type: string
  327. max_length: 12
  328. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  329. valid_chars_error: |
  330. Valid Memory limit formats are</br>
  331. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  332. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  333. - Plain Integer in bytes - eg. 1024</br>
  334. - Exponent - eg. 134e6
  335. default: "8Gi"
  336. required: true