Commit Graph

22 Commits

Author SHA1 Message Date
Manish Bhasin 9c09db8031
update to go 1.22 and operator-sdk 1.35 (#1094)
Co-authored-by: brokenpip3 <brokenpip3@gmail.com>
Co-authored-by: Ansh Garhewal <me@anshdevs.in>
Co-authored-by: xmbhasin <xmbhasin@users.noreply.github.com>
2025-03-30 16:37:15 +02:00
DionJones615 d919a2a11c
fix(master): pass lifecycle configuration to master container (#1062) 2024-11-22 01:03:01 +01:00
DionJones615 18197e66b7
feat: expose jenkins master terminationGracePeriodSeconds (#1012)
Co-authored-by: brokenpip3 <brokenpip3@gmail.com>
2024-06-11 23:57:48 +02:00
Luigi Operoso 5ddcf1075d
fix: latestplugin always true, add more complex bats tests, update devcontainers and make manifests (#857) 2023-06-27 09:37:31 +02:00
Luigi Operoso 9fd053b784
feat(operator): several updates (#806)
- prepare to switch from `master` to `main`
- avoid to run workflow in case is not needed
- add a way to bump the lts via make
- use latest jenkins lts 2.387.1
- add the docker labels
- update base plugins
- fix #797 
- Add more tests with bats
- Update base plugin to latest version
- Temporary revert #807 
- Better nightly job
2023-03-23 00:04:57 +01:00
Luigi Operoso cd2efd6722
feat(registry): change the default registry from dockerhub to quay.io (#799) 2023-03-07 00:08:33 +01:00
Luigi Operoso 60b8ee56de
fix(operator): Attempt to fix all the major issues present atm against the newest jenkins lts version (#784)
* fix(seed): fix #742, workaround #698
Original fix proposal: https://github.com/jenkinsci/kubernetes-operator/issues/742#issuecomment-1304398590

* fix(install-plugin.sh): fix #758, #739
* the fix was original attempted here:
  https://github.com/jenkinsci/kubernetes-operator/pull/764 but was not
  working correctly due to 2-3 additional changes which needed to be
  done
* removed the openshift check because the env is not mention anywhere
  and also the new jenkins-plugin-cli does not a specific command for
  openshift. Finally this does not make any sense in general, the only
  problem in ocp will be the user id that will be mapped to a random uid
  but that's another story. The command to install the plugins should
  remain the same across different k8s flavours.

* fix(doc/test): fix /usr/bin/tini in any doc and validation

* fix(jenkins): remove AdminWhitelistRule to avoid jvm stack trace, see: https://www.jenkins.io/doc/book/security/controller-isolation/jep-235/#api-compatibility

* fix(seed): fix seed img built on a previous jvm, fix #761

* fix(plugin): update the base plugin to work with the newest version of
jenkins:lts

* fix(run): fix #778

* fix(backup): add a trap to remove the tmp dir if the tar fail, also fix: #770

* test(chart): update chart values for testing, will revert before merge

* fix(configmap): leftover

* fix(tests): fix seed job test

* fix(e2e)

* fix(e2e): helm

* fix(operator): update the temporary img to reflect latests changes

* Fix Helm e2e tests

* add trap in case of unwanted exit and make shellcheck happy

* chore(plugin): update git ver to 5.0.0

* fix(backup): always force delete the backup directory

* chore(operator): update the temporary img to reflect latest changes

* chore(jenkins): upgrade jenkins latest lts
2023-01-12 17:29:30 +01:00
Bartosz Surma bef796af8a
Update and use install-plugins.sh (#756)
* Download install-plugins.sh manually from remote

* Reformat

* Goimports

* Use install-plugins.sh bundled with the operator

* Fix compile error

* Update install-plugins.sh

* Remove redundant param to new install-plugins.sh

Co-authored-by: Piotr Ryba <pryba@virtuslab.com>
2022-06-28 19:14:31 +02:00
Mateusz Korus 4fde1df8d8
Fix nil reference panic when using non-http readiness probe (#735) 2022-04-04 11:51:34 +02:00
Mateusz Korus 764a144c5a
Regenerate crds (#659) 2021-09-30 11:42:35 +02:00
Mateusz Korus 31c8368c55
Add HostAliases to schema (#656)
Add HostAliases to schema and propagate them to pods so the user can add entries to /etc/hosts
2021-09-24 15:00:14 +02:00
MKajzik 8a42cdc1ee
#560 Fixed envFrom not propagating to master pod (#564)
* Fixed envFrom not propagate to master pod
2021-05-11 15:58:56 +02:00
SylwiaBrant 652580c0a5
#507 Allow listing events (#514)
Added missing permissions for listing events by Jenkins
2021-02-12 15:38:23 +01:00
Sylwia Brant 77a79e8f97 Removed image CRD, updated plugins 2021-02-05 13:28:30 +01:00
SylwiaBrant 021ebb4745
Added TestPlugins, TestRestart and TestRestoreBackup (#504)
Co-authored-by: Tomasz Sęk
2021-02-05 13:17:06 +01:00
Tomasz Sęk 524d0b861f
Refactor e2e tests to new ginkgo framework 2021-01-26 22:00:23 +01:00
Tomasz Sęk cb26623f5f
Upgrade operator-sdk to 1.3.0 without e2e tests 2021-01-19 15:47:05 +01:00
Sylwia Brant 566ac9768f Grand Christmas Patch
Fixed helm not creating role permissions #424
Added ability to use custom k8s cluster domain #461
Fixed propagation of JENKINS_OPTS to seed-job agent #462
Fixed updating last backup #421
2020-12-15 10:18:40 +01:00
Sylwia Brant ea5ad56012 Fixed targetPort value
Made the targetPort in Jenkins pod a fixed value.
Previously users encountered issue with changing values.
Added test comparing expected and actual targetPort values.
2020-10-13 09:22:19 +02:00
Akram Ben Aissi ee01c4c028
JenkinsImage controller based on kaniko (#394) 2020-05-29 15:00:36 +02:00
Akram Ben Aissi fc216263e8 Minor refactor of the jenkins reconcile
- Extract resources limits creation
- Start to extract the reconcilier structure into a separate file
2020-05-25 12:34:58 +02:00
jkhelil 5e1496cbc3 reorganise directories for better readbility 2020-05-19 10:26:18 +02:00