questions.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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: datasetName
  154. label: Dataset Name
  155. schema:
  156. type: string
  157. show_if: [["type", "=", "ixVolume"]]
  158. required: true
  159. hidden: true
  160. immutable: true
  161. default: data
  162. $ref:
  163. - "normalize/ixVolume"
  164. - variable: hostPath
  165. label: Host Path
  166. schema:
  167. type: hostpath
  168. show_if: [["type", "=", "hostPath"]]
  169. immutable: true
  170. required: true
  171. - variable: config
  172. label: Gitea Configuration Storage
  173. description: The path to store Gitea configuration storage.
  174. schema:
  175. type: dict
  176. attrs:
  177. - variable: type
  178. label: Type
  179. description: |
  180. ixVolume: Is dataset created automatically by the system.</br>
  181. Host Path: Is a path that already exists on the system.
  182. schema:
  183. type: string
  184. required: true
  185. immutable: true
  186. default: ixVolume
  187. enum:
  188. - value: hostPath
  189. description: Host Path (Path that already exists on the system)
  190. - value: ixVolume
  191. description: ixVolume (Dataset created automatically by the system)
  192. - variable: datasetName
  193. label: Dataset Name
  194. schema:
  195. type: string
  196. show_if: [["type", "=", "ixVolume"]]
  197. required: true
  198. hidden: true
  199. immutable: true
  200. default: config
  201. $ref:
  202. - "normalize/ixVolume"
  203. - variable: hostPath
  204. label: Host Path
  205. schema:
  206. type: hostpath
  207. show_if: [["type", "=", "hostPath"]]
  208. immutable: true
  209. required: true
  210. - variable: pgData
  211. label: Gitea Postgres Data Storage
  212. description: The path to store Gitea Postgres Data.
  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: datasetName
  232. label: Dataset Name
  233. schema:
  234. type: string
  235. show_if: [["type", "=", "ixVolume"]]
  236. required: true
  237. hidden: true
  238. immutable: true
  239. default: pgData
  240. $ref:
  241. - "normalize/ixVolume"
  242. - variable: hostPath
  243. label: Host Path
  244. schema:
  245. type: hostpath
  246. show_if: [["type", "=", "hostPath"]]
  247. immutable: true
  248. required: true
  249. - variable: pgBackup
  250. label: Gitea Postgres Backup Storage
  251. description: The path to store Gitea Postgres Backup.
  252. schema:
  253. type: dict
  254. attrs:
  255. - variable: type
  256. label: Type
  257. description: |
  258. ixVolume: Is dataset created automatically by the system.</br>
  259. Host Path: Is a path that already exists on the system.
  260. schema:
  261. type: string
  262. required: true
  263. immutable: true
  264. default: ixVolume
  265. enum:
  266. - value: hostPath
  267. description: Host Path (Path that already exists on the system)
  268. - value: ixVolume
  269. description: ixVolume (Dataset created automatically by the system)
  270. - variable: datasetName
  271. label: Dataset Name
  272. schema:
  273. type: string
  274. show_if: [["type", "=", "ixVolume"]]
  275. required: true
  276. hidden: true
  277. immutable: true
  278. default: pgBackup
  279. $ref:
  280. - "normalize/ixVolume"
  281. - variable: hostPath
  282. label: Host Path
  283. schema:
  284. type: hostpath
  285. show_if: [["type", "=", "hostPath"]]
  286. immutable: true
  287. required: true
  288. - variable: resources
  289. label: ""
  290. group: Resources Configuration
  291. schema:
  292. type: dict
  293. attrs:
  294. - variable: limits
  295. label: Limits
  296. schema:
  297. type: dict
  298. attrs:
  299. - variable: cpu
  300. label: CPU
  301. description: CPU limit for Gitea.
  302. schema:
  303. type: string
  304. max_length: 6
  305. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  306. valid_chars_error: |
  307. Valid CPU limit formats are</br>
  308. - Plain Integer - eg. 1</br>
  309. - Float - eg. 0.5</br>
  310. - Milicpu - eg. 500m
  311. default: "4000m"
  312. required: true
  313. - variable: memory
  314. label: Memory
  315. description: Memory limit for Gitea.
  316. schema:
  317. type: string
  318. max_length: 12
  319. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  320. valid_chars_error: |
  321. Valid Memory limit formats are</br>
  322. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  323. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  324. - Plain Integer in bytes - eg. 1024</br>
  325. - Exponent - eg. 134e6
  326. default: "8Gi"
  327. required: true