questions.yaml 25 KB

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