questions.yaml 14 KB

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