questions.yaml 25 KB

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