questions.yaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  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. "null": true
  126. $ref:
  127. - "definitions/certificate"
  128. - variable: agent
  129. label: Enable Agent
  130. description: Enable Agent Port for Jenkins.
  131. schema:
  132. type: boolean
  133. default: false
  134. - variable: agentPort
  135. label: Agent Port
  136. description: The port for the Jenkins Agent.
  137. schema:
  138. type: int
  139. show_if: [["agent", "=", true]]
  140. default: 50000
  141. min: 9000
  142. max: 65535
  143. required: true
  144. - variable: hostNetwork
  145. label: Host Network
  146. description: |
  147. Bind to the host network. It's recommended to keep this disabled.</br>
  148. schema:
  149. type: boolean
  150. default: false
  151. - variable: jenkinsStorage
  152. label: ""
  153. group: Storage Configuration
  154. schema:
  155. type: dict
  156. attrs:
  157. - variable: home
  158. label: Jenkins Home Storage
  159. description: The path to store Jenkins Home Directory.
  160. schema:
  161. type: dict
  162. attrs:
  163. - variable: type
  164. label: Type
  165. description: |
  166. ixVolume: Is dataset created automatically by the system.</br>
  167. Host Path: Is a path that already exists on the system.
  168. schema:
  169. type: string
  170. required: true
  171. immutable: true
  172. default: "ixVolume"
  173. enum:
  174. - value: "hostPath"
  175. description: Host Path (Path that already exists on the system)
  176. - value: "ixVolume"
  177. description: ixVolume (Dataset created automatically by the system)
  178. - variable: ixVolumeConfig
  179. label: ixVolume Configuration
  180. description: The configuration for the ixVolume dataset.
  181. schema:
  182. type: dict
  183. show_if: [["type", "=", "ixVolume"]]
  184. $ref:
  185. - "normalize/ixVolume"
  186. attrs:
  187. - variable: aclEnable
  188. label: Enable ACL
  189. description: Enable ACL for the dataset.
  190. schema:
  191. type: boolean
  192. default: false
  193. - variable: datasetName
  194. label: Dataset Name
  195. description: The name of the dataset to use for storage.
  196. schema:
  197. type: string
  198. required: true
  199. immutable: true
  200. hidden: true
  201. default: "home"
  202. - variable: aclEntries
  203. label: ACL Configuration
  204. schema:
  205. type: dict
  206. show_if: [["aclEnable", "=", true]]
  207. attrs: []
  208. - variable: hostPathConfig
  209. label: Host Path Configuration
  210. schema:
  211. type: dict
  212. show_if: [["type", "=", "hostPath"]]
  213. attrs:
  214. - variable: aclEnable
  215. label: Enable ACL
  216. description: Enable ACL for the dataset.
  217. schema:
  218. type: boolean
  219. default: false
  220. - variable: acl
  221. label: ACL Configuration
  222. schema:
  223. type: dict
  224. show_if: [["aclEnable", "=", true]]
  225. attrs: []
  226. $ref:
  227. - "normalize/acl"
  228. - variable: hostPath
  229. label: Host Path
  230. description: The host path to use for storage.
  231. schema:
  232. type: hostpath
  233. show_if: [["aclEnable", "=", false]]
  234. required: true
  235. - variable: additionalStorages
  236. label: Additional Storage
  237. description: Additional storage for Jenkins.
  238. schema:
  239. type: list
  240. default: []
  241. items:
  242. - variable: storageEntry
  243. label: Storage Entry
  244. schema:
  245. type: dict
  246. attrs:
  247. - variable: type
  248. label: Type
  249. description: |
  250. ixVolume: Is dataset created automatically by the system.</br>
  251. Host Path: Is a path that already exists on the system.</br>
  252. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  253. schema:
  254. type: string
  255. required: true
  256. default: "ixVolume"
  257. immutable: true
  258. enum:
  259. - value: "hostPath"
  260. description: Host Path (Path that already exists on the system)
  261. - value: "ixVolume"
  262. description: ixVolume (Dataset created automatically by the system)
  263. - value: "smb-pv-pvc"
  264. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  265. - variable: readOnly
  266. label: Read Only
  267. description: Mount the volume as read only.
  268. schema:
  269. type: boolean
  270. default: false
  271. - variable: mountPath
  272. label: Mount Path
  273. description: The path inside the container to mount the storage.
  274. schema:
  275. type: path
  276. required: true
  277. - variable: hostPathConfig
  278. label: Host Path Configuration
  279. schema:
  280. type: dict
  281. show_if: [["type", "=", "hostPath"]]
  282. attrs:
  283. - variable: aclEnable
  284. label: Enable ACL
  285. description: Enable ACL for the dataset.
  286. schema:
  287. type: boolean
  288. default: false
  289. - variable: acl
  290. label: ACL Configuration
  291. schema:
  292. type: dict
  293. show_if: [["aclEnable", "=", true]]
  294. attrs: []
  295. $ref:
  296. - "normalize/acl"
  297. - variable: hostPath
  298. label: Host Path
  299. description: The host path to use for storage.
  300. schema:
  301. type: hostpath
  302. show_if: [["aclEnable", "=", false]]
  303. required: true
  304. - variable: ixVolumeConfig
  305. label: ixVolume Configuration
  306. description: The configuration for the ixVolume dataset.
  307. schema:
  308. type: dict
  309. show_if: [["type", "=", "ixVolume"]]
  310. $ref:
  311. - "normalize/ixVolume"
  312. attrs:
  313. - variable: aclEnable
  314. label: Enable ACL
  315. description: Enable ACL for the dataset.
  316. schema:
  317. type: boolean
  318. default: false
  319. - variable: datasetName
  320. label: Dataset Name
  321. description: The name of the dataset to use for storage.
  322. schema:
  323. type: string
  324. required: true
  325. immutable: true
  326. default: "storage_entry"
  327. - variable: aclEntries
  328. label: ACL Configuration
  329. schema:
  330. type: dict
  331. show_if: [["aclEnable", "=", true]]
  332. attrs: []
  333. - variable: smbConfig
  334. label: SMB Share Configuration
  335. description: The configuration for the SMB Share.
  336. schema:
  337. type: dict
  338. show_if: [["type", "=", "smb-pv-pvc"]]
  339. attrs:
  340. - variable: server
  341. label: Server
  342. description: The server for the SMB share.
  343. schema:
  344. type: string
  345. required: true
  346. - variable: share
  347. label: Share
  348. description: The share name for the SMB share.
  349. schema:
  350. type: string
  351. required: true
  352. - variable: domain
  353. label: Domain (Optional)
  354. description: The domain for the SMB share.
  355. schema:
  356. type: string
  357. - variable: username
  358. label: Username
  359. description: The username for the SMB share.
  360. schema:
  361. type: string
  362. required: true
  363. - variable: password
  364. label: Password
  365. description: The password for the SMB share.
  366. schema:
  367. type: string
  368. required: true
  369. private: true
  370. - variable: size
  371. label: Size (in Gi)
  372. description: The size of the volume quota.
  373. schema:
  374. type: int
  375. required: true
  376. min: 1
  377. default: 1
  378. - variable: resources
  379. group: Resources Configuration
  380. label: ""
  381. schema:
  382. type: dict
  383. attrs:
  384. - variable: limits
  385. label: Limits
  386. schema:
  387. type: dict
  388. attrs:
  389. - variable: cpu
  390. label: CPU
  391. description: CPU limit for Jenkins.
  392. schema:
  393. type: string
  394. max_length: 6
  395. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  396. valid_chars_error: |
  397. Valid CPU limit formats are</br>
  398. - Plain Integer - eg. 1</br>
  399. - Float - eg. 0.5</br>
  400. - Milicpu - eg. 500m
  401. default: "4000m"
  402. required: true
  403. - variable: memory
  404. label: Memory
  405. description: Memory limit for Jenkins.
  406. schema:
  407. type: string
  408. max_length: 12
  409. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  410. valid_chars_error: |
  411. Valid Memory limit formats are</br>
  412. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  413. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  414. - Plain Integer in bytes - eg. 1024</br>
  415. - Exponent - eg. 134e6
  416. default: "8Gi"
  417. required: true