questions.yaml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. groups:
  2. - name: Codegate Configuration
  3. description: Configure Codegate
  4. - name: Network Configuration
  5. description: Configure Network for Codegate
  6. - name: Storage Configuration
  7. description: Configure Storage for Codegate
  8. - name: Labels Configuration
  9. description: Configure Labels for Codegate
  10. - name: Resources Configuration
  11. description: Configure Resources for Codegate
  12. questions:
  13. - variable: codegate
  14. label: ""
  15. group: Codegate Configuration
  16. schema:
  17. type: dict
  18. attrs:
  19. - variable: additional_envs
  20. label: Additional Environment Variables
  21. schema:
  22. type: list
  23. default: []
  24. items:
  25. - variable: env
  26. label: Environment Variable
  27. schema:
  28. type: dict
  29. attrs:
  30. - variable: name
  31. label: Name
  32. schema:
  33. type: string
  34. required: true
  35. - variable: value
  36. label: Value
  37. schema:
  38. type: string
  39. - variable: network
  40. label: ""
  41. group: Network Configuration
  42. schema:
  43. type: dict
  44. attrs:
  45. - variable: proxy_port
  46. label: Proxy Port
  47. schema:
  48. type: dict
  49. attrs:
  50. - variable: bind_mode
  51. label: Port Bind Mode
  52. description: |
  53. The port bind mode.</br>
  54. - Publish: The port will be published on the host for external access.</br>
  55. - Expose: The port will be exposed for inter-container communication.</br>
  56. - None: The port will not be exposed or published.</br>
  57. Note: If the Dockerfile defines an EXPOSE directive,
  58. the port will still be exposed for inter-container communication regardless of this setting.
  59. schema:
  60. type: string
  61. default: "published"
  62. enum:
  63. - value: "published"
  64. description: Publish port on the host for external access
  65. - value: "exposed"
  66. description: Expose port for inter-container communication
  67. - value: ""
  68. description: None
  69. - variable: port_number
  70. label: Port Number
  71. schema:
  72. type: int
  73. default: 8990
  74. min: 1
  75. max: 65535
  76. required: true
  77. - variable: host_ips
  78. label: Host IPs
  79. description: IPs on the host to bind this port
  80. schema:
  81. type: list
  82. show_if: [["bind_mode", "=", "published"]]
  83. default: []
  84. items:
  85. - variable: host_ip
  86. label: Host IP
  87. schema:
  88. type: string
  89. required: true
  90. $ref:
  91. - definitions/node_bind_ip
  92. - variable: api_port
  93. label: API Port
  94. schema:
  95. type: dict
  96. attrs:
  97. - variable: bind_mode
  98. label: Port Bind Mode
  99. description: |
  100. The port bind mode.</br>
  101. - Publish: The port will be published on the host for external access.</br>
  102. - Expose: The port will be exposed for inter-container communication.</br>
  103. - None: The port will not be exposed or published.</br>
  104. Note: If the Dockerfile defines an EXPOSE directive,
  105. the port will still be exposed for inter-container communication regardless of this setting.
  106. schema:
  107. type: string
  108. default: "published"
  109. enum:
  110. - value: "published"
  111. description: Publish port on the host for external access
  112. - value: "exposed"
  113. description: Expose port for inter-container communication
  114. - value: ""
  115. description: None
  116. - variable: port_number
  117. label: Port Number
  118. schema:
  119. type: int
  120. show_if: [["bind_mode", "=", "published"]]
  121. default: 8989
  122. min: 1
  123. max: 65535
  124. required: true
  125. - variable: host_ips
  126. label: Host IPs
  127. description: IPs on the host to bind this port
  128. schema:
  129. type: list
  130. show_if: [["bind_mode", "=", "published"]]
  131. default: []
  132. items:
  133. - variable: host_ip
  134. label: Host IP
  135. schema:
  136. type: string
  137. required: true
  138. $ref:
  139. - definitions/node_bind_ip
  140. - variable: web_port
  141. label: WebUI Port
  142. schema:
  143. type: dict
  144. attrs:
  145. - variable: bind_mode
  146. label: Port Bind Mode
  147. description: |
  148. The port bind mode.</br>
  149. - Publish: The port will be published on the host for external access.</br>
  150. - Expose: The port will be exposed for inter-container communication.</br>
  151. - None: The port will not be exposed or published.</br>
  152. Note: If the Dockerfile defines an EXPOSE directive,
  153. the port will still be exposed for inter-container communication regardless of this setting.
  154. schema:
  155. type: string
  156. default: "published"
  157. enum:
  158. - value: "published"
  159. description: Publish port on the host for external access
  160. - value: "exposed"
  161. description: Expose port for inter-container communication
  162. - value: ""
  163. description: None
  164. - variable: port_number
  165. label: Port Number
  166. schema:
  167. type: int
  168. show_if: [["bind_mode", "=", "published"]]
  169. default: 9090
  170. min: 1
  171. max: 65535
  172. required: true
  173. - variable: host_ips
  174. label: Host IPs
  175. description: IPs on the host to bind this port
  176. schema:
  177. type: list
  178. show_if: [["bind_mode", "=", "published"]]
  179. default: []
  180. items:
  181. - variable: host_ip
  182. label: Host IP
  183. schema:
  184. type: string
  185. required: true
  186. $ref:
  187. - definitions/node_bind_ip
  188. - variable: host_network
  189. label: Host Network
  190. description: |
  191. Bind to the host network. It's recommended to keep this disabled.
  192. schema:
  193. type: boolean
  194. default: false
  195. - variable: storage
  196. label: ""
  197. group: Storage Configuration
  198. schema:
  199. type: dict
  200. attrs:
  201. - variable: config
  202. label: Codegate Config Storage
  203. description: The path to store Codegate Config.
  204. schema:
  205. type: dict
  206. attrs:
  207. - variable: type
  208. label: Type
  209. description: |
  210. ixVolume: Is dataset created automatically by the system.</br>
  211. Host Path: Is a path that already exists on the system.
  212. schema:
  213. type: string
  214. required: true
  215. default: "ix_volume"
  216. enum:
  217. - value: "host_path"
  218. description: Host Path (Path that already exists on the system)
  219. - value: "ix_volume"
  220. description: ixVolume (Dataset created automatically by the system)
  221. - variable: ix_volume_config
  222. label: ixVolume Configuration
  223. description: The configuration for the ixVolume dataset.
  224. schema:
  225. type: dict
  226. show_if: [["type", "=", "ix_volume"]]
  227. $ref:
  228. - "normalize/ix_volume"
  229. attrs:
  230. - variable: acl_enable
  231. label: Enable ACL
  232. description: Enable ACL for the storage.
  233. schema:
  234. type: boolean
  235. default: false
  236. - variable: dataset_name
  237. label: Dataset Name
  238. description: The name of the dataset to use for storage.
  239. schema:
  240. type: string
  241. required: true
  242. hidden: true
  243. default: "config"
  244. - variable: acl_entries
  245. label: ACL Configuration
  246. schema:
  247. type: dict
  248. show_if: [["acl_enable", "=", true]]
  249. attrs: []
  250. - variable: host_path_config
  251. label: Host Path Configuration
  252. schema:
  253. type: dict
  254. show_if: [["type", "=", "host_path"]]
  255. attrs:
  256. - variable: acl_enable
  257. label: Enable ACL
  258. description: Enable ACL for the storage.
  259. schema:
  260. type: boolean
  261. default: false
  262. - variable: acl
  263. label: ACL Configuration
  264. schema:
  265. type: dict
  266. show_if: [["acl_enable", "=", true]]
  267. attrs: []
  268. $ref:
  269. - "normalize/acl"
  270. - variable: path
  271. label: Host Path
  272. description: The host path to use for storage.
  273. schema:
  274. type: hostpath
  275. show_if: [["acl_enable", "=", false]]
  276. required: true
  277. - variable: additional_storage
  278. label: Additional Storage
  279. schema:
  280. type: list
  281. default: []
  282. items:
  283. - variable: storageEntry
  284. label: Storage Entry
  285. schema:
  286. type: dict
  287. attrs:
  288. - variable: type
  289. label: Type
  290. description: |
  291. ixVolume: Is dataset created automatically by the system.</br>
  292. Host Path: Is a path that already exists on the system.</br>
  293. SMB Share: Is a SMB share that is mounted to as a volume.
  294. schema:
  295. type: string
  296. required: true
  297. default: "ix_volume"
  298. enum:
  299. - value: "host_path"
  300. description: Host Path (Path that already exists on the system)
  301. - value: "ix_volume"
  302. description: ixVolume (Dataset created automatically by the system)
  303. - value: "cifs"
  304. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  305. - variable: read_only
  306. label: Read Only
  307. description: Mount the volume as read only.
  308. schema:
  309. type: boolean
  310. default: false
  311. - variable: mount_path
  312. label: Mount Path
  313. description: The path inside the container to mount the storage.
  314. schema:
  315. type: path
  316. required: true
  317. - variable: host_path_config
  318. label: Host Path Configuration
  319. schema:
  320. type: dict
  321. show_if: [["type", "=", "host_path"]]
  322. attrs:
  323. - variable: acl_enable
  324. label: Enable ACL
  325. description: Enable ACL for the storage.
  326. schema:
  327. type: boolean
  328. default: false
  329. - variable: acl
  330. label: ACL Configuration
  331. schema:
  332. type: dict
  333. show_if: [["acl_enable", "=", true]]
  334. attrs: []
  335. $ref:
  336. - "normalize/acl"
  337. - variable: path
  338. label: Host Path
  339. description: The host path to use for storage.
  340. schema:
  341. type: hostpath
  342. show_if: [["acl_enable", "=", false]]
  343. required: true
  344. - variable: ix_volume_config
  345. label: ixVolume Configuration
  346. description: The configuration for the ixVolume dataset.
  347. schema:
  348. type: dict
  349. show_if: [["type", "=", "ix_volume"]]
  350. $ref:
  351. - "normalize/ix_volume"
  352. attrs:
  353. - variable: acl_enable
  354. label: Enable ACL
  355. description: Enable ACL for the storage.
  356. schema:
  357. type: boolean
  358. default: false
  359. - variable: dataset_name
  360. label: Dataset Name
  361. description: The name of the dataset to use for storage.
  362. schema:
  363. type: string
  364. required: true
  365. default: "storage_entry"
  366. - variable: acl_entries
  367. label: ACL Configuration
  368. schema:
  369. type: dict
  370. show_if: [["acl_enable", "=", true]]
  371. attrs: []
  372. - variable: cifs_config
  373. label: SMB Configuration
  374. description: The configuration for the SMB dataset.
  375. schema:
  376. type: dict
  377. show_if: [["type", "=", "cifs"]]
  378. attrs:
  379. - variable: server
  380. label: Server
  381. description: The server to mount the SMB share.
  382. schema:
  383. type: string
  384. required: true
  385. - variable: path
  386. label: Path
  387. description: The path to mount the SMB share.
  388. schema:
  389. type: string
  390. required: true
  391. - variable: username
  392. label: Username
  393. description: The username to use for the SMB share.
  394. schema:
  395. type: string
  396. required: true
  397. - variable: password
  398. label: Password
  399. description: The password to use for the SMB share.
  400. schema:
  401. type: string
  402. required: true
  403. private: true
  404. - variable: domain
  405. label: Domain
  406. description: The domain to use for the SMB share.
  407. schema:
  408. type: string
  409. - variable: labels
  410. label: ""
  411. group: Labels Configuration
  412. schema:
  413. type: list
  414. default: []
  415. items:
  416. - variable: label
  417. label: Label
  418. schema:
  419. type: dict
  420. attrs:
  421. - variable: key
  422. label: Key
  423. schema:
  424. type: string
  425. required: true
  426. - variable: value
  427. label: Value
  428. schema:
  429. type: string
  430. required: true
  431. - variable: containers
  432. label: Containers
  433. description: Containers where the label should be applied
  434. schema:
  435. type: list
  436. items:
  437. - variable: container
  438. label: Container
  439. schema:
  440. type: string
  441. required: true
  442. enum:
  443. - value: codegate
  444. description: codegate
  445. - variable: resources
  446. label: ""
  447. group: Resources Configuration
  448. schema:
  449. type: dict
  450. attrs:
  451. - variable: limits
  452. label: Limits
  453. schema:
  454. type: dict
  455. attrs:
  456. - variable: cpus
  457. label: CPUs
  458. description: CPUs limit for Codegate.
  459. schema:
  460. type: int
  461. default: 2
  462. required: true
  463. - variable: memory
  464. label: Memory (in MB)
  465. description: Memory limit for Codegate.
  466. schema:
  467. type: int
  468. default: 4096
  469. required: true