questions.yaml 10 KB

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