questions.yaml 21 KB

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