questions.yaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  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. default: ixVolume
  147. enum:
  148. - value: hostPath
  149. description: Host Path (Path that already exists on the system)
  150. - value: ixVolume
  151. description: ixVolume (Dataset created automatically by the system)
  152. - variable: datasetName
  153. label: Dataset Name
  154. schema:
  155. type: string
  156. show_if: [["type", "=", "ixVolume"]]
  157. required: true
  158. hidden: true
  159. immutable: true
  160. default: data
  161. $ref:
  162. - "normalize/ixVolume"
  163. - variable: hostPath
  164. label: Host Path
  165. schema:
  166. type: hostpath
  167. show_if: [["type", "=", "hostPath"]]
  168. immutable: true
  169. required: true
  170. - variable: config
  171. label: Gitea Configuration Storage
  172. description: The path to store Gitea configuration storage.
  173. schema:
  174. type: dict
  175. attrs:
  176. - variable: type
  177. label: Type
  178. description: |
  179. ixVolume: Is dataset created automatically by the system.</br>
  180. Host Path: Is a path that already exists on the system.
  181. schema:
  182. type: string
  183. required: true
  184. default: ixVolume
  185. enum:
  186. - value: hostPath
  187. description: Host Path (Path that already exists on the system)
  188. - value: ixVolume
  189. description: ixVolume (Dataset created automatically by the system)
  190. - variable: datasetName
  191. label: Dataset Name
  192. schema:
  193. type: string
  194. show_if: [["type", "=", "ixVolume"]]
  195. required: true
  196. hidden: true
  197. immutable: true
  198. default: config
  199. $ref:
  200. - "normalize/ixVolume"
  201. - variable: hostPath
  202. label: Host Path
  203. schema:
  204. type: hostpath
  205. show_if: [["type", "=", "hostPath"]]
  206. immutable: true
  207. required: true
  208. - variable: pgData
  209. label: Gitea Postgres Data Storage
  210. description: The path to store Gitea Postgres Data.
  211. schema:
  212. type: dict
  213. attrs:
  214. - variable: type
  215. label: Type
  216. description: |
  217. ixVolume: Is dataset created automatically by the system.</br>
  218. Host Path: Is a path that already exists on the system.
  219. schema:
  220. type: string
  221. required: true
  222. default: ixVolume
  223. enum:
  224. - value: hostPath
  225. description: Host Path (Path that already exists on the system)
  226. - value: ixVolume
  227. description: ixVolume (Dataset created automatically by the system)
  228. - variable: datasetName
  229. label: Dataset Name
  230. schema:
  231. type: string
  232. show_if: [["type", "=", "ixVolume"]]
  233. required: true
  234. hidden: true
  235. immutable: true
  236. default: pgData
  237. $ref:
  238. - "normalize/ixVolume"
  239. - variable: hostPath
  240. label: Host Path
  241. schema:
  242. type: hostpath
  243. show_if: [["type", "=", "hostPath"]]
  244. immutable: true
  245. required: true
  246. - variable: pgBackup
  247. label: Gitea Postgres Backup Storage
  248. description: The path to store Gitea Postgres Backup.
  249. schema:
  250. type: dict
  251. attrs:
  252. - variable: type
  253. label: Type
  254. description: |
  255. ixVolume: Is dataset created automatically by the system.</br>
  256. Host Path: Is a path that already exists on the system.
  257. schema:
  258. type: string
  259. required: true
  260. default: ixVolume
  261. enum:
  262. - value: hostPath
  263. description: Host Path (Path that already exists on the system)
  264. - value: ixVolume
  265. description: ixVolume (Dataset created automatically by the system)
  266. - variable: datasetName
  267. label: Dataset Name
  268. schema:
  269. type: string
  270. show_if: [["type", "=", "ixVolume"]]
  271. required: true
  272. hidden: true
  273. immutable: true
  274. default: pgBackup
  275. $ref:
  276. - "normalize/ixVolume"
  277. - variable: hostPath
  278. label: Host Path
  279. schema:
  280. type: hostpath
  281. show_if: [["type", "=", "hostPath"]]
  282. immutable: true
  283. required: true
  284. - variable: resources
  285. label: ""
  286. group: Resources Configuration
  287. schema:
  288. type: dict
  289. attrs:
  290. - variable: limits
  291. label: Limits
  292. schema:
  293. type: dict
  294. attrs:
  295. - variable: cpu
  296. label: CPU
  297. description: CPU limit for Gitea.
  298. schema:
  299. type: string
  300. default: 4000m
  301. required: true
  302. - variable: memory
  303. label: Memory
  304. description: Memory limit for Gitea.
  305. schema:
  306. type: string
  307. default: 8Gi
  308. required: true