questions.yaml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. groups:
  2. - name: Distribution Configuration
  3. description: Configure Distribution
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Distribution
  6. - name: Network Configuration
  7. description: Configure Network for Distribution
  8. - name: Storage Configuration
  9. description: Configure Storage for Distribution
  10. - name: Resources Configuration
  11. description: Configure Resources for Distribution
  12. questions:
  13. - variable: distributionConfig
  14. label: ""
  15. group: Distribution Configuration
  16. schema:
  17. type: dict
  18. attrs:
  19. - variable: basicAuthUsers
  20. label: Basic Auth Users
  21. description: |
  22. Configure basic auth users for Distribution.</br>
  23. Leave empty to disable basic auth.
  24. schema:
  25. type: list
  26. default: []
  27. items:
  28. - variable: userEntry
  29. label: User Entry
  30. schema:
  31. type: dict
  32. attrs:
  33. - variable: user
  34. label: Username
  35. schema:
  36. type: string
  37. required: true
  38. - variable: pass
  39. label: Password
  40. schema:
  41. type: string
  42. required: true
  43. private: true
  44. - variable: additionalEnvs
  45. label: Additional Environment Variables
  46. description: Configure additional environment variables for Distribution.
  47. schema:
  48. type: list
  49. default: []
  50. items:
  51. - variable: env
  52. label: Environment Variable
  53. schema:
  54. type: dict
  55. attrs:
  56. - variable: name
  57. label: Name
  58. schema:
  59. type: string
  60. required: true
  61. - variable: value
  62. label: Value
  63. schema:
  64. type: string
  65. required: true
  66. - variable: distributionRunAs
  67. label: ""
  68. group: User and Group Configuration
  69. schema:
  70. type: dict
  71. attrs:
  72. - variable: user
  73. label: User ID
  74. description: The user id that Distribution will run as.
  75. schema:
  76. type: int
  77. min: 2
  78. default: 568
  79. required: true
  80. - variable: group
  81. label: Group ID
  82. description: The group id that Distribution will run as.
  83. schema:
  84. type: int
  85. min: 2
  86. default: 568
  87. required: true
  88. - variable: distributionNetwork
  89. label: ""
  90. group: Network Configuration
  91. schema:
  92. type: dict
  93. attrs:
  94. - variable: apiPort
  95. label: API Port
  96. description: The port for the Distribution API.
  97. schema:
  98. type: int
  99. default: 30095
  100. min: 9000
  101. max: 65535
  102. required: true
  103. - variable: certificateID
  104. label: Certificate
  105. description: The certificate to use for Distribution.
  106. schema:
  107. type: int
  108. "null": true
  109. $ref:
  110. - "definitions/certificate"
  111. - variable: hostNetwork
  112. label: Host Network
  113. description: |
  114. Bind to the host network. It's recommended to keep this disabled.</br>
  115. schema:
  116. type: boolean
  117. default: false
  118. - variable: distributionStorage
  119. label: ""
  120. group: Storage Configuration
  121. schema:
  122. type: dict
  123. attrs:
  124. - variable: useFilesystemBackend
  125. label: Use Filesystem Backend
  126. description: |
  127. Use filesystem backend for Distribution.</br>
  128. If disabled, you will need to configure a backend for Distribution.</br>
  129. Either with environment variables or with a configuration file.
  130. schema:
  131. type: boolean
  132. default: true
  133. - variable: data
  134. label: Distribution Data Storage
  135. description: The path to store Distribution data.
  136. schema:
  137. type: dict
  138. show_if: [["useFilesystemBackend", "=", true]]
  139. attrs:
  140. - variable: type
  141. label: Type
  142. description: |
  143. ixVolume: Is dataset created automatically by the system.</br>
  144. Host Path: Is a path that already exists on the system.
  145. schema:
  146. type: string
  147. required: true
  148. immutable: true
  149. default: ixVolume
  150. enum:
  151. - value: hostPath
  152. description: Host Path (Path that already exists on the system)
  153. - value: ixVolume
  154. description: ixVolume (Dataset created automatically by the system)
  155. - variable: ixVolumeConfig
  156. label: ixVolume Configuration
  157. description: The configuration for the ixVolume dataset.
  158. schema:
  159. type: dict
  160. show_if: [["type", "=", "ixVolume"]]
  161. $ref:
  162. - "normalize/ixVolume"
  163. attrs:
  164. - variable: aclEnable
  165. label: Enable ACL
  166. description: Enable ACL for the dataset.
  167. schema:
  168. type: boolean
  169. default: false
  170. - variable: datasetName
  171. label: Dataset Name
  172. description: The name of the dataset to use for storage.
  173. schema:
  174. type: string
  175. required: true
  176. immutable: true
  177. hidden: true
  178. default: data
  179. - variable: aclEntries
  180. label: ACL Configuration
  181. schema:
  182. type: dict
  183. show_if: [["aclEnable", "=", true]]
  184. attrs: []
  185. - variable: hostPathConfig
  186. label: Host Path Configuration
  187. schema:
  188. type: dict
  189. show_if: [["type", "=", "hostPath"]]
  190. attrs:
  191. - variable: aclEnable
  192. label: Enable ACL
  193. description: Enable ACL for the dataset.
  194. schema:
  195. type: boolean
  196. default: false
  197. - variable: acl
  198. label: ACL Configuration
  199. schema:
  200. type: dict
  201. show_if: [["aclEnable", "=", true]]
  202. attrs: []
  203. $ref:
  204. - "normalize/acl"
  205. - variable: hostPath
  206. label: Host Path
  207. description: The host path to use for storage.
  208. schema:
  209. type: hostpath
  210. show_if: [["aclEnable", "=", false]]
  211. required: true
  212. - variable: additionalStorages
  213. label: Additional Storage
  214. description: Additional storage for Distribution.
  215. schema:
  216. type: list
  217. default: []
  218. items:
  219. - variable: storageEntry
  220. label: Storage Entry
  221. schema:
  222. type: dict
  223. attrs:
  224. - variable: type
  225. label: Type
  226. description: |
  227. ixVolume: Is dataset created automatically by the system.</br>
  228. Host Path: Is a path that already exists on the system.</br>
  229. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  230. schema:
  231. type: string
  232. required: true
  233. default: "ixVolume"
  234. immutable: true
  235. enum:
  236. - value: "hostPath"
  237. description: Host Path (Path that already exists on the system)
  238. - value: "ixVolume"
  239. description: ixVolume (Dataset created automatically by the system)
  240. - value: "smb-pv-pvc"
  241. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  242. - variable: readOnly
  243. label: Read Only
  244. description: Mount the volume as read only.
  245. schema:
  246. type: boolean
  247. default: false
  248. - variable: mountPath
  249. label: Mount Path
  250. description: The path inside the container to mount the storage.
  251. schema:
  252. type: path
  253. required: true
  254. - variable: hostPathConfig
  255. label: Host Path Configuration
  256. schema:
  257. type: dict
  258. show_if: [["type", "=", "hostPath"]]
  259. attrs:
  260. - variable: aclEnable
  261. label: Enable ACL
  262. description: Enable ACL for the dataset.
  263. schema:
  264. type: boolean
  265. default: false
  266. - variable: acl
  267. label: ACL Configuration
  268. schema:
  269. type: dict
  270. show_if: [["aclEnable", "=", true]]
  271. attrs: []
  272. $ref:
  273. - "normalize/acl"
  274. - variable: hostPath
  275. label: Host Path
  276. description: The host path to use for storage.
  277. schema:
  278. type: hostpath
  279. show_if: [["aclEnable", "=", false]]
  280. required: true
  281. - variable: ixVolumeConfig
  282. label: ixVolume Configuration
  283. description: The configuration for the ixVolume dataset.
  284. schema:
  285. type: dict
  286. show_if: [["type", "=", "ixVolume"]]
  287. $ref:
  288. - "normalize/ixVolume"
  289. attrs:
  290. - variable: aclEnable
  291. label: Enable ACL
  292. description: Enable ACL for the dataset.
  293. schema:
  294. type: boolean
  295. default: false
  296. - variable: datasetName
  297. label: Dataset Name
  298. description: The name of the dataset to use for storage.
  299. schema:
  300. type: string
  301. required: true
  302. immutable: true
  303. default: "storage_entry"
  304. - variable: aclEntries
  305. label: ACL Configuration
  306. schema:
  307. type: dict
  308. show_if: [["aclEnable", "=", true]]
  309. attrs: []
  310. - variable: smbConfig
  311. label: SMB Share Configuration
  312. description: The configuration for the SMB Share.
  313. schema:
  314. type: dict
  315. show_if: [["type", "=", "smb-pv-pvc"]]
  316. attrs:
  317. - variable: server
  318. label: Server
  319. description: The server for the SMB share.
  320. schema:
  321. type: string
  322. required: true
  323. - variable: share
  324. label: Share
  325. description: The share name for the SMB share.
  326. schema:
  327. type: string
  328. required: true
  329. - variable: domain
  330. label: Domain (Optional)
  331. description: The domain for the SMB share.
  332. schema:
  333. type: string
  334. - variable: username
  335. label: Username
  336. description: The username for the SMB share.
  337. schema:
  338. type: string
  339. required: true
  340. - variable: password
  341. label: Password
  342. description: The password for the SMB share.
  343. schema:
  344. type: string
  345. required: true
  346. private: true
  347. - variable: size
  348. label: Size (in Gi)
  349. description: The size of the volume quota.
  350. schema:
  351. type: int
  352. required: true
  353. min: 1
  354. default: 1
  355. - variable: resources
  356. group: Resources Configuration
  357. label: ""
  358. schema:
  359. type: dict
  360. attrs:
  361. - variable: limits
  362. label: Limits
  363. schema:
  364. type: dict
  365. attrs:
  366. - variable: cpu
  367. label: CPU
  368. description: CPU limit for Distribution.
  369. schema:
  370. type: string
  371. max_length: 6
  372. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  373. valid_chars_error: |
  374. Valid CPU limit formats are</br>
  375. - Plain Integer - eg. 1</br>
  376. - Float - eg. 0.5</br>
  377. - Milicpu - eg. 500m
  378. default: "4000m"
  379. required: true
  380. - variable: memory
  381. label: Memory
  382. description: Memory limit for Distribution.
  383. schema:
  384. type: string
  385. max_length: 12
  386. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  387. valid_chars_error: |
  388. Valid Memory limit formats are</br>
  389. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  390. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  391. - Plain Integer in bytes - eg. 1024</br>
  392. - Exponent - eg. 134e6
  393. default: "8Gi"
  394. required: true