questions.yaml 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. groups:
  2. - name: Jenkins Configuration
  3. description: Configure Jenkins
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Jenkins
  6. - name: Network Configuration
  7. description: Configure Network for Jenkins
  8. - name: Storage Configuration
  9. description: Configure Storage for Jenkins
  10. - name: Resources Configuration
  11. description: Configure Resources for Jenkins
  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: TZ
  23. group: Jenkins Configuration
  24. label: Timezone
  25. schema:
  26. type: string
  27. default: Etc/UTC
  28. required: true
  29. $ref:
  30. - definitions/timezone
  31. - variable: jenkinsConfig
  32. label: ""
  33. group: Jenkins Configuration
  34. schema:
  35. type: dict
  36. attrs:
  37. - variable: jenkinsJavaOpts
  38. label: Additional Jenkins Java Options
  39. description: |
  40. Configure additional jenkins java options for Jenkins.</br>
  41. See https://www.jenkins.io/doc/book/managing/system-properties
  42. schema:
  43. type: list
  44. default: []
  45. items:
  46. - variable: jenkinsJavaOpt
  47. label: Jenkins Java Option
  48. schema:
  49. type: dict
  50. attrs:
  51. - variable: property
  52. label: Property
  53. description: |
  54. The property to set, see https://www.jenkins.io/doc/book/managing/system-properties </br>
  55. The prefix [-D] is automatically added.
  56. schema:
  57. type: string
  58. required: true
  59. - variable: value
  60. description: |
  61. The value to set for the property.</br>
  62. label: Value
  63. schema:
  64. type: string
  65. required: true
  66. - variable: jenkinsOpts
  67. label: Additional Jenkins Options
  68. description: |
  69. Configure additional jenkins options for Jenkins. </br>
  70. see https://www.jenkins.io/doc/book/installing/initial-settings
  71. schema:
  72. type: list
  73. default: []
  74. items:
  75. - variable: jenkinsOption
  76. label: Jenkins Option
  77. description: |
  78. The option to set, see https://www.jenkins.io/doc/book/installing/initial-settings </br>
  79. The prefix [--] is automatically added.
  80. schema:
  81. type: string
  82. required: true
  83. - variable: additionalEnvs
  84. label: Additional Environment Variables
  85. description: Configure additional environment variables for Jenkins.
  86. schema:
  87. type: list
  88. default: []
  89. items:
  90. - variable: env
  91. label: Environment Variable
  92. schema:
  93. type: dict
  94. attrs:
  95. - variable: name
  96. label: Name
  97. schema:
  98. type: string
  99. required: true
  100. - variable: value
  101. label: Value
  102. schema:
  103. type: string
  104. required: true
  105. - variable: jenkinsNetwork
  106. label: ""
  107. group: Network Configuration
  108. schema:
  109. type: dict
  110. attrs:
  111. - variable: webPort
  112. label: Web Port
  113. description: The port for the Jenkins Web UI.
  114. schema:
  115. type: int
  116. default: 30036
  117. min: 9000
  118. max: 65535
  119. required: true
  120. - variable: certificateID
  121. label: Certificate
  122. description: The certificate to use for HTTPS.
  123. schema:
  124. type: int
  125. $ref:
  126. - "definitions/certificate"
  127. - variable: agent
  128. label: Enable Agent
  129. description: Enable Agent Port for Jenkins.
  130. schema:
  131. type: boolean
  132. default: false
  133. - variable: agentPort
  134. label: Agent Port
  135. description: The port for the Jenkins Agent.
  136. schema:
  137. type: int
  138. show_if: [["agent", "=", true]]
  139. default: 50000
  140. min: 9000
  141. max: 65535
  142. required: true
  143. - variable: hostNetwork
  144. label: Host Network
  145. description: |
  146. Bind to the host network. It's recommended to keep this disabled.</br>
  147. schema:
  148. type: boolean
  149. default: false
  150. - variable: jenkinsStorage
  151. label: ""
  152. group: Storage Configuration
  153. schema:
  154. type: dict
  155. attrs:
  156. - variable: home
  157. label: Jenkins Home Storage
  158. description: The path to store Jenkins Home Directory.
  159. schema:
  160. type: dict
  161. attrs:
  162. - variable: type
  163. label: Type
  164. description: |
  165. ixVolume: Is dataset created automatically by the system.</br>
  166. Host Path: Is a path that already exists on the system.
  167. schema:
  168. type: string
  169. required: true
  170. default: "ixVolume"
  171. enum:
  172. - value: "hostPath"
  173. description: Host Path (Path that already exists on the system)
  174. - value: "ixVolume"
  175. description: ixVolume (Dataset created automatically by the system)
  176. - variable: datasetName
  177. label: Dataset Name
  178. schema:
  179. type: string
  180. show_if: [["type", "=", "ixVolume"]]
  181. required: true
  182. hidden: true
  183. immutable: true
  184. default: "home"
  185. $ref:
  186. - "normalize/ixVolume"
  187. - variable: hostPath
  188. label: Host Path
  189. schema:
  190. type: hostpath
  191. show_if: [["type", "=", "hostPath"]]
  192. immutable: true
  193. required: true
  194. - variable: additionalStorages
  195. label: Additional Storage
  196. description: Additional storage for Jenkins.
  197. schema:
  198. type: list
  199. default: []
  200. items:
  201. - variable: storageEntry
  202. label: Storage Entry
  203. schema:
  204. type: dict
  205. attrs:
  206. - variable: type
  207. label: Type
  208. description: |
  209. ixVolume: Is dataset created automatically by the system.</br>
  210. Host Path: Is a path that already exists on the system.
  211. schema:
  212. type: string
  213. required: true
  214. default: "ixVolume"
  215. enum:
  216. - value: "hostPath"
  217. description: Host Path (Path that already exists on the system)
  218. - value: "ixVolume"
  219. description: ixVolume (Dataset created automatically by the system)
  220. - variable: mountPath
  221. label: Mount Path
  222. description: The path inside the container to mount the storage.
  223. schema:
  224. type: path
  225. required: true
  226. - variable: hostPath
  227. label: Host Path
  228. description: The host path to use for storage.
  229. schema:
  230. type: hostpath
  231. show_if: [["type", "=", "hostPath"]]
  232. required: true
  233. - variable: datasetName
  234. label: Dataset Name
  235. description: The name of the dataset to use for storage.
  236. schema:
  237. type: string
  238. show_if: [["type", "=", "ixVolume"]]
  239. required: true
  240. immutable: true
  241. default: "storage_entry"
  242. $ref:
  243. - "normalize/ixVolume"
  244. - variable: resources
  245. group: Resources Configuration
  246. label: ""
  247. schema:
  248. type: dict
  249. attrs:
  250. - variable: limits
  251. label: Limits
  252. schema:
  253. type: dict
  254. attrs:
  255. - variable: cpu
  256. label: CPU
  257. description: CPU limit for Jenkins.
  258. schema:
  259. type: string
  260. default: "4000m"
  261. required: true
  262. - variable: memory
  263. label: Memory
  264. description: Memory limit for Jenkins.
  265. schema:
  266. type: string
  267. default: "8Gi"
  268. required: true