questions.yaml 9.6 KB

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