questions.yaml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662
  1. groups:
  2. - name: Gitea Configuration
  3. description: Configure Gitea
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Gitea
  6. - name: Network Configuration
  7. description: Configure Network for Gitea
  8. - name: Storage Configuration
  9. description: Configure Storage for Gitea
  10. - name: Resources Configuration
  11. description: Configure Resources for Gitea
  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: giteaConfig
  23. label: ""
  24. group: Gitea Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: additionalEnvs
  29. label: Additional Environment Variables
  30. description: Configure additional environment variables for Gitea.
  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: giteaRunAs
  51. label: ""
  52. group: User and Group Configuration
  53. schema:
  54. type: dict
  55. hidden: true
  56. attrs:
  57. - variable: user
  58. label: User ID
  59. description: The user id that Gitea will run as.
  60. schema:
  61. type: int
  62. min: 568
  63. # FIXME: See values.yaml
  64. hidden: true
  65. editable: false
  66. default: 1000
  67. required: true
  68. - variable: group
  69. label: Group ID
  70. description: The group id that Gitea will run as.
  71. schema:
  72. type: int
  73. min: 568
  74. # FIXME: See values.yaml
  75. hidden: true
  76. editable: false
  77. default: 1000
  78. required: true
  79. - variable: giteaNetwork
  80. label: ""
  81. group: Network Configuration
  82. schema:
  83. type: dict
  84. attrs:
  85. - variable: webPort
  86. label: Web Port
  87. description: The port for the Gitea WebUI.
  88. schema:
  89. type: int
  90. default: 30008
  91. min: 9000
  92. max: 65535
  93. required: true
  94. - variable: sshPort
  95. label: SSH Port
  96. description: The port for the Gitea SSH.
  97. schema:
  98. type: int
  99. default: 30009
  100. min: 9000
  101. max: 65535
  102. required: true
  103. - variable: externalSshPort
  104. label: External SSH Port
  105. description: |
  106. The ssh port that Gitea will be available at externally.</br>
  107. Leave empty to use the same port as the ssh port.
  108. schema:
  109. type: int
  110. "null": true
  111. default: null
  112. min: 9000
  113. max: 65535
  114. - variable: hostNetwork
  115. label: Host Network
  116. description: |
  117. Bind to the host network. It's recommended to keep this disabled.
  118. schema:
  119. type: boolean
  120. default: false
  121. - variable: rootURL
  122. label: Root URL
  123. description: The URL that Gitea will be available at.
  124. schema:
  125. type: string
  126. default: ""
  127. required: true
  128. - variable: certificateID
  129. label: Certificate
  130. description: |
  131. The certificate to use for Gitea
  132. schema:
  133. type: int
  134. "null": true
  135. $ref:
  136. - "definitions/certificate"
  137. - variable: giteaStorage
  138. label: ""
  139. group: Storage Configuration
  140. schema:
  141. type: dict
  142. attrs:
  143. - variable: data
  144. label: Gitea Data Storage
  145. description: The path to store Gitea data.
  146. schema:
  147. type: dict
  148. attrs:
  149. - variable: type
  150. label: Type
  151. description: |
  152. ixVolume: Is dataset created automatically by the system.</br>
  153. Host Path: Is a path that already exists on the system.
  154. schema:
  155. type: string
  156. required: true
  157. immutable: true
  158. default: ixVolume
  159. enum:
  160. - value: hostPath
  161. description: Host Path (Path that already exists on the system)
  162. - value: ixVolume
  163. description: ixVolume (Dataset created automatically by the system)
  164. - variable: ixVolumeConfig
  165. label: ixVolume Configuration
  166. description: The configuration for the ixVolume dataset.
  167. schema:
  168. type: dict
  169. show_if: [["type", "=", "ixVolume"]]
  170. $ref:
  171. - "normalize/ixVolume"
  172. attrs:
  173. - variable: aclEnable
  174. label: Enable ACL
  175. description: Enable ACL for the dataset.
  176. schema:
  177. type: boolean
  178. default: false
  179. - variable: datasetName
  180. label: Dataset Name
  181. description: The name of the dataset to use for storage.
  182. schema:
  183. type: string
  184. required: true
  185. immutable: true
  186. hidden: true
  187. default: "data"
  188. - variable: aclEntries
  189. label: ACL Configuration
  190. schema:
  191. type: dict
  192. show_if: [["aclEnable", "=", true]]
  193. attrs: []
  194. - variable: hostPathConfig
  195. label: Host Path Configuration
  196. schema:
  197. type: dict
  198. show_if: [["type", "=", "hostPath"]]
  199. attrs:
  200. - variable: aclEnable
  201. label: Enable ACL
  202. description: Enable ACL for the dataset.
  203. schema:
  204. type: boolean
  205. default: false
  206. - variable: acl
  207. label: ACL Configuration
  208. schema:
  209. type: dict
  210. show_if: [["aclEnable", "=", true]]
  211. attrs: []
  212. $ref:
  213. - "normalize/acl"
  214. - variable: hostPath
  215. label: Host Path
  216. description: The host path to use for storage.
  217. schema:
  218. type: hostpath
  219. show_if: [["aclEnable", "=", false]]
  220. required: true
  221. - variable: config
  222. label: Gitea Configuration Storage
  223. description: The path to store Gitea configuration storage.
  224. schema:
  225. type: dict
  226. attrs:
  227. - variable: type
  228. label: Type
  229. description: |
  230. ixVolume: Is dataset created automatically by the system.</br>
  231. Host Path: Is a path that already exists on the system.
  232. schema:
  233. type: string
  234. required: true
  235. immutable: true
  236. default: ixVolume
  237. enum:
  238. - value: hostPath
  239. description: Host Path (Path that already exists on the system)
  240. - value: ixVolume
  241. description: ixVolume (Dataset created automatically by the system)
  242. - variable: ixVolumeConfig
  243. label: ixVolume Configuration
  244. description: The configuration for the ixVolume dataset.
  245. schema:
  246. type: dict
  247. show_if: [["type", "=", "ixVolume"]]
  248. $ref:
  249. - "normalize/ixVolume"
  250. attrs:
  251. - variable: aclEnable
  252. label: Enable ACL
  253. description: Enable ACL for the dataset.
  254. schema:
  255. type: boolean
  256. default: false
  257. - variable: datasetName
  258. label: Dataset Name
  259. description: The name of the dataset to use for storage.
  260. schema:
  261. type: string
  262. required: true
  263. immutable: true
  264. hidden: true
  265. default: "config"
  266. - variable: aclEntries
  267. label: ACL Configuration
  268. schema:
  269. type: dict
  270. show_if: [["aclEnable", "=", true]]
  271. attrs: []
  272. - variable: hostPathConfig
  273. label: Host Path Configuration
  274. schema:
  275. type: dict
  276. show_if: [["type", "=", "hostPath"]]
  277. attrs:
  278. - variable: aclEnable
  279. label: Enable ACL
  280. description: Enable ACL for the dataset.
  281. schema:
  282. type: boolean
  283. default: false
  284. - variable: acl
  285. label: ACL Configuration
  286. schema:
  287. type: dict
  288. show_if: [["aclEnable", "=", true]]
  289. attrs: []
  290. $ref:
  291. - "normalize/acl"
  292. - variable: hostPath
  293. label: Host Path
  294. description: The host path to use for storage.
  295. schema:
  296. type: hostpath
  297. show_if: [["aclEnable", "=", false]]
  298. required: true
  299. - variable: pgData
  300. label: Gitea Postgres Data Storage
  301. description: The path to store Gitea Postgres Data.
  302. schema:
  303. type: dict
  304. attrs:
  305. - variable: type
  306. label: Type
  307. description: |
  308. ixVolume: Is dataset created automatically by the system.</br>
  309. Host Path: Is a path that already exists on the system.
  310. schema:
  311. type: string
  312. required: true
  313. immutable: true
  314. default: ixVolume
  315. enum:
  316. - value: hostPath
  317. description: Host Path (Path that already exists on the system)
  318. - value: ixVolume
  319. description: ixVolume (Dataset created automatically by the system)
  320. - variable: ixVolumeConfig
  321. label: ixVolume Configuration
  322. description: The configuration for the ixVolume dataset.
  323. schema:
  324. type: dict
  325. # Nothing to show for the user
  326. hidden: true
  327. show_if: [["type", "=", "ixVolume"]]
  328. $ref:
  329. - "normalize/ixVolume"
  330. attrs:
  331. - variable: aclEnable
  332. label: Enable ACL
  333. description: Enable ACL for the dataset.
  334. schema:
  335. type: boolean
  336. # Postgres does a CHMOD at startup
  337. # Which fails with ACL
  338. hidden: true
  339. default: false
  340. - variable: datasetName
  341. label: Dataset Name
  342. description: The name of the dataset to use for storage.
  343. schema:
  344. type: string
  345. required: true
  346. immutable: true
  347. hidden: true
  348. default: "pgData"
  349. - variable: aclEntries
  350. label: ACL Configuration
  351. schema:
  352. type: dict
  353. show_if: [["aclEnable", "=", true]]
  354. attrs: []
  355. - variable: hostPathConfig
  356. label: Host Path Configuration
  357. schema:
  358. type: dict
  359. show_if: [["type", "=", "hostPath"]]
  360. attrs:
  361. - variable: aclEnable
  362. label: Enable ACL
  363. description: Enable ACL for the dataset.
  364. schema:
  365. type: boolean
  366. # Postgres does a CHMOD at startup
  367. # Which fails with ACL
  368. hidden: true
  369. default: false
  370. - variable: acl
  371. label: ACL Configuration
  372. schema:
  373. type: dict
  374. show_if: [["aclEnable", "=", true]]
  375. attrs: []
  376. $ref:
  377. - "normalize/acl"
  378. - variable: hostPath
  379. label: Host Path
  380. description: The host path to use for storage.
  381. schema:
  382. type: hostpath
  383. show_if: [["aclEnable", "=", false]]
  384. required: true
  385. - variable: pgBackup
  386. label: Gitea Postgres Backup Storage
  387. description: The path to store Gitea Postgres Backup.
  388. schema:
  389. type: dict
  390. attrs:
  391. - variable: type
  392. label: Type
  393. description: |
  394. ixVolume: Is dataset created automatically by the system.</br>
  395. Host Path: Is a path that already exists on the system.
  396. schema:
  397. type: string
  398. required: true
  399. immutable: true
  400. default: ixVolume
  401. enum:
  402. - value: hostPath
  403. description: Host Path (Path that already exists on the system)
  404. - value: ixVolume
  405. description: ixVolume (Dataset created automatically by the system)
  406. - variable: ixVolumeConfig
  407. label: ixVolume Configuration
  408. description: The configuration for the ixVolume dataset.
  409. schema:
  410. type: dict
  411. # Nothing to show for the user
  412. hidden: true
  413. show_if: [["type", "=", "ixVolume"]]
  414. $ref:
  415. - "normalize/ixVolume"
  416. attrs:
  417. - variable: aclEnable
  418. label: Enable ACL
  419. description: Enable ACL for the dataset.
  420. schema:
  421. type: boolean
  422. # Postgres does a CHMOD at startup
  423. # Which fails with ACL
  424. hidden: true
  425. default: false
  426. - variable: datasetName
  427. label: Dataset Name
  428. description: The name of the dataset to use for storage.
  429. schema:
  430. type: string
  431. required: true
  432. immutable: true
  433. hidden: true
  434. default: "pgBackup"
  435. - variable: aclEntries
  436. label: ACL Configuration
  437. schema:
  438. type: dict
  439. show_if: [["aclEnable", "=", true]]
  440. attrs: []
  441. - variable: hostPathConfig
  442. label: Host Path Configuration
  443. schema:
  444. type: dict
  445. show_if: [["type", "=", "hostPath"]]
  446. attrs:
  447. - variable: aclEnable
  448. label: Enable ACL
  449. description: Enable ACL for the dataset.
  450. schema:
  451. type: boolean
  452. # Postgres does a CHMOD at startup
  453. # Which fails with ACL
  454. hidden: true
  455. default: false
  456. - variable: acl
  457. label: ACL Configuration
  458. schema:
  459. type: dict
  460. show_if: [["aclEnable", "=", true]]
  461. attrs: []
  462. $ref:
  463. - "normalize/acl"
  464. - variable: hostPath
  465. label: Host Path
  466. description: The host path to use for storage.
  467. schema:
  468. type: hostpath
  469. show_if: [["aclEnable", "=", false]]
  470. required: true
  471. - variable: additionalStorages
  472. label: Additional Storage
  473. description: Additional storage for Gitea.
  474. schema:
  475. type: list
  476. default: []
  477. items:
  478. - variable: storageEntry
  479. label: Storage Entry
  480. schema:
  481. type: dict
  482. attrs:
  483. - variable: type
  484. label: Type
  485. description: |
  486. ixVolume: Is dataset created automatically by the system.</br>
  487. Host Path: Is a path that already exists on the system.</br>
  488. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  489. schema:
  490. type: string
  491. required: true
  492. default: "ixVolume"
  493. immutable: true
  494. enum:
  495. - value: "hostPath"
  496. description: Host Path (Path that already exists on the system)
  497. - value: "ixVolume"
  498. description: ixVolume (Dataset created automatically by the system)
  499. - value: "smb-pv-pvc"
  500. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  501. - variable: readOnly
  502. label: Read Only
  503. description: Mount the volume as read only.
  504. schema:
  505. type: boolean
  506. default: false
  507. - variable: mountPath
  508. label: Mount Path
  509. description: The path inside the container to mount the storage.
  510. schema:
  511. type: path
  512. required: true
  513. - variable: hostPathConfig
  514. label: Host Path Configuration
  515. schema:
  516. type: dict
  517. show_if: [["type", "=", "hostPath"]]
  518. attrs:
  519. - variable: aclEnable
  520. label: Enable ACL
  521. description: Enable ACL for the dataset.
  522. schema:
  523. type: boolean
  524. default: false
  525. - variable: acl
  526. label: ACL Configuration
  527. schema:
  528. type: dict
  529. show_if: [["aclEnable", "=", true]]
  530. attrs: []
  531. $ref:
  532. - "normalize/acl"
  533. - variable: hostPath
  534. label: Host Path
  535. description: The host path to use for storage.
  536. schema:
  537. type: hostpath
  538. show_if: [["aclEnable", "=", false]]
  539. required: true
  540. - variable: ixVolumeConfig
  541. label: ixVolume Configuration
  542. description: The configuration for the ixVolume dataset.
  543. schema:
  544. type: dict
  545. show_if: [["type", "=", "ixVolume"]]
  546. $ref:
  547. - "normalize/ixVolume"
  548. attrs:
  549. - variable: aclEnable
  550. label: Enable ACL
  551. description: Enable ACL for the dataset.
  552. schema:
  553. type: boolean
  554. default: false
  555. - variable: datasetName
  556. label: Dataset Name
  557. description: The name of the dataset to use for storage.
  558. schema:
  559. type: string
  560. required: true
  561. immutable: true
  562. default: "storage_entry"
  563. - variable: aclEntries
  564. label: ACL Configuration
  565. schema:
  566. type: dict
  567. show_if: [["aclEnable", "=", true]]
  568. attrs: []
  569. - variable: smbConfig
  570. label: SMB Share Configuration
  571. description: The configuration for the SMB Share.
  572. schema:
  573. type: dict
  574. show_if: [["type", "=", "smb-pv-pvc"]]
  575. attrs:
  576. - variable: server
  577. label: Server
  578. description: The server for the SMB share.
  579. schema:
  580. type: string
  581. required: true
  582. - variable: share
  583. label: Share
  584. description: The share name for the SMB share.
  585. schema:
  586. type: string
  587. required: true
  588. - variable: domain
  589. label: Domain (Optional)
  590. description: The domain for the SMB share.
  591. schema:
  592. type: string
  593. - variable: username
  594. label: Username
  595. description: The username for the SMB share.
  596. schema:
  597. type: string
  598. required: true
  599. - variable: password
  600. label: Password
  601. description: The password for the SMB share.
  602. schema:
  603. type: string
  604. required: true
  605. private: true
  606. - variable: size
  607. label: Size (in Gi)
  608. description: The size of the volume quota.
  609. schema:
  610. type: int
  611. required: true
  612. min: 1
  613. default: 1
  614. - variable: resources
  615. label: ""
  616. group: Resources Configuration
  617. schema:
  618. type: dict
  619. attrs:
  620. - variable: limits
  621. label: Limits
  622. schema:
  623. type: dict
  624. attrs:
  625. - variable: cpu
  626. label: CPU
  627. description: CPU limit for Gitea.
  628. schema:
  629. type: string
  630. max_length: 6
  631. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  632. valid_chars_error: |
  633. Valid CPU limit formats are</br>
  634. - Plain Integer - eg. 1</br>
  635. - Float - eg. 0.5</br>
  636. - Milicpu - eg. 500m
  637. default: "4000m"
  638. required: true
  639. - variable: memory
  640. label: Memory
  641. description: Memory limit for Gitea.
  642. schema:
  643. type: string
  644. max_length: 12
  645. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  646. valid_chars_error: |
  647. Valid Memory limit formats are</br>
  648. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  649. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  650. - Plain Integer in bytes - eg. 1024</br>
  651. - Exponent - eg. 134e6
  652. default: "8Gi"
  653. required: true