Commit Graph

127 Commits

Author SHA1 Message Date
Luigi Operoso 38eaa0fc55
chore: bump version to v0.8.0-beta (#814)
- add dependabot
- add codespell
- update operator version in helm chart
2023-04-18 00:01:07 +02:00
Luigi Operoso 00fc29e772
chore: update to 2.387.2-lts and base plugins (#811) 2023-04-13 23:22:22 +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 e9fbe575a6
chore(update): use latest jenkins lts: 2.375.3 (#796) 2023-03-07 00:09:23 +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
Peter Becich fbe70f11ca
update image tag for `virtuslab/jenkins-operator-backup-pvc` (#781)
https://hub.docker.com/r/virtuslab/jenkins-operator-backup-pvc/tags
2023-01-08 19:45:01 +01:00
Piotr Ryba a97f283fb9
Remove cron validation (#748)
* Remove cron validation

* Bump git plugin
2022-06-20 20:13:35 +02:00
Guillaume Le Biller 17a5bfec3e
Build multi-arch images (#693)
* Build multi-arch images

* Reduce CPU requirements for jenkins instances in e2e tests

* Bump Jenkins LTS & plugins versions
2022-02-15 14:51:29 +01:00
Szymon Fugas e8414c09a8
chore: enable manual run of nightly builds with possibility of skipping tests (#712)
* Add manual dispatch trigger for nightly build workflow, with an input parameter for optionally skipping the e2e and helm tests part of the workflow

* Bump how much memory to start minikube cluster with on e2e test workflows

* Log events from default namespace on tests failure, bump the limit of kubernetes events logged to 30

* Bump workflow-job plugin version used by default from 2.42 to 1145.v7f2433caa07f
2022-02-10 18:03:08 +01:00
Sylwia Brant 76078d5ff2 Bump version to v0.7.0 2021-12-08 10:26:46 +01:00
SylwiaBrant 7e94bc623f
Prepare for Security Validator release (#680)
* Tidy up k8s events logging
* Increase memory and decrease CPU in resources
* Standarize API fields
* Refactor tests
* Change image and resources for e2e tests
* Increase readability
2021-12-07 08:23:58 +01:00
Manuel Traut d6f1dcbb54 Update jenkins plugins in tests to latest version (#669)
Since the base plugins are updated compatible plugins need to be
used in the tests.

Signed-off-by: Manuel Traut <manuel.traut@mt.com>
2021-10-20 09:51:50 +02:00
Mateusz Korus fbea1ed790 Bump version to v0.6.0 2021-06-10 08:10:50 +02:00
SylwiaBrant c74606a2ee
Migrate Helm Chart to OSDK v1.3.0 (#551)
Migrate Helm Chart to OSDK v1.3.0
2021-04-29 13:50:06 +02:00
Sylwia Brant d225cc113e Minikube downloaded to bin, test fixes 2021-02-08 13:37:00 +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 363b9e0fc0
Resolve some FIXME 2021-01-27 10:33:38 +01:00
Tomasz Sęk 524d0b861f
Refactor e2e tests to new ginkgo framework 2021-01-26 22:00:23 +01:00
Tomasz Sęk fe81e5ab3d
Bump version to v0.5.0 2021-01-18 10:10:36 +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
Tomasz Sęk 8c62b6909d
#349 Fix Helm upgrade issue with PVC 2020-06-07 14:56:22 +02:00
Tomasz Sęk 87ee491a74
#349 Fix Helm upgrade issue with PVC 2020-06-07 12:10:03 +02:00
jkhelil 5e1496cbc3 reorganise directories for better readbility 2020-05-19 10:26:18 +02:00
Vibhav Bobade b77592e9d1 Intermediate Commit for transition from Pod to Deployment based Jenkins Controller
Allows for using the annotation jenkins.io/use-deployment
and setting the value to true makes the operator use a
Deployment instead of Pod for serving Jenkins.

This is part of a temporary feature and has to be committed to avoid bigger PRs.
2020-05-15 12:44:54 +05:30
jkhelil e05c2d7a97 refactor log handeling 2020-05-13 14:14:33 +02:00
jkhelil 128c97be6b lint with golangci-lint 2020-05-06 16:22:52 +02:00
Akram Ben Aissi 92292ae698 Move to operator-sdk v.0.17.0 2020-05-04 18:57:14 +02:00
Jakub Al-Khalili fe9cb921bc
#263 Execute user scripts before seed jobs (#345) 2020-04-27 14:22:49 +02:00
Tomasz Sęk 185f0533e4
Add e2e tests for the Helm Chart (#334) 2020-04-17 14:14:56 +02:00
Tomasz Sęk 0a0483aa77
#190 Improve e2e tests for OpenShift 2020-04-13 19:10:59 +02:00
Oleksandr Kovalchuk c90969256e
Use existing version of envoyproxy image 2020-04-11 15:06:04 +03:00
Oleksandr Kovalchuk b99468930e
Add e2e test with setting priorityClassName
As it is quite difficult to set cluster-wide objects in test and don't
break other tests, which are running in parallel, rely on pre-created
priorityClass (which is already in the cluster by default) in test.
2020-04-09 11:07:10 +03:00
salluvada 970449f04f
#296 Allow to specify custom plugins location in jenkins CR (#309) 2020-03-29 20:41:16 +02:00
Tomasz Sęk 7d48aa3079
#190 Allow set quay.io/openshift/origin-jenkins with OAuth image in e2e tests (#307) 2020-03-29 18:40:07 +02:00
Tomasz Sęk cc35dcfc72
#190 Allow set quay.io/openshift/origin-jenkins image in e2e tests 2020-03-22 19:29:56 +01:00
Tomasz Sęk c1c301ec79
#190 Improve e2e tests for OpenShift 2020-03-22 19:25:49 +01:00
Tomasz Sęk 7356a5ec49
#190 Improve e2e tests for OpenShift 2020-03-22 12:24:05 +01:00
Shoubhik Bose 852d729018
Upgrade operator-sdk to 0.15.1 (#269)
Upgrade operator-sdk to 0.15.1
2020-02-12 21:58:28 +01:00
Tomasz Sęk 987b4006bd
Try to fix the TestBackupAndRestore e2e test 2020-02-06 20:58:52 +01:00
Tomasz Sęk be41ef44a8
#262 Allow configure Jenkins master pod labels 2020-01-30 23:14:06 +01:00
Tomasz Sęk caa0f6e5f5
Use port-forward in e2e tests to communicate with Jenkins API 2020-01-23 13:15:41 +01:00
Tomasz Sęk 8e1d66de0f
#190 Allow set Jenkins API authorization strategy 2020-01-11 22:04:00 +01:00
Tomasz Sęk b27aef1808
#200 Fix e2e 2020-01-06 20:41:36 +01:00
Tomasz Sęk 4d1d23cf6c
#200 Fix e2e 2020-01-06 19:20:47 +01:00
Tomasz Sęk f9335df74c
#200 Allow for additional RBAC role bindings for Jenkins master 2020-01-06 18:03:01 +01:00
Tomasz Sęk 45e91be07c
Improve logging in e2e tests 2020-01-02 12:43:48 +01:00
Tomasz Sęk 33c3d47cee
#197 Improve checking the ImagePullSecret 2019-12-25 14:40:46 +01:00
Jakub Al-Khalili a612939f33 Add support for local development kubernetes cluster software (#207)
#203 Add support for local development kubernetes cluster
2019-12-19 13:54:31 +01:00