Commit Graph

44 Commits

Author SHA1 Message Date
Luigi Operoso bec1c61e27
fix(backup): exec of backup binaries can be executed by random id (for ocp compatibility) (#1099) 2025-03-30 18:32:17 +02:00
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
Luigi Operoso b722ef11ae
feat(backup): logs everything to stdout/err, implement lock file for both backup/restore (#1023) 2024-06-25 23:29:35 +02:00
Evgenii f98b0bc5ee
fix(backup): find race and disable search in subdir, always test latest backup image in e2e, bump backup to 0.3.x (#1011)
Co-authored-by: brokenpip3 <brokenpip3@gmail.com>
2024-06-22 09:47:24 +02:00
Evgenii 25b329aa13
fix(backup): use atomic mv to create backup (#1000) 2024-05-05 16:54:04 +02:00
Luigi Operoso 0abc758dc3
chore: several minor updates, bump helm, base-plugins and backup base img (#865) 2023-06-26 12:43:24 +02:00
Luigi Operoso 6cceedba77
fix(backup): get-latest.sh, search for both .gz and .zstd (#858) 2023-06-25 15:48:36 +02:00
Luigi Operoso 813cbc812e
fix: hugo and backup ci again (#848) 2023-06-05 23:54:37 +02:00
Luigi Operoso 93d3e9eb9f
fix hugo and backup version, fix backup ci (#847) 2023-06-05 23:20:03 +02:00
Luigi Operoso 1e4ffd4718
fix: backup trimming, only selecting zstd file (#846) 2023-06-05 23:05:16 +02:00
Luigi Operoso 3275be357a
feat: use zstd instead of gz by default, fix the backup script (#841) 2023-05-26 16:10:24 +02:00
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 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 2f90db9dc9
fix(quay.io): start using quay.io and fix backup push (#805) 2023-03-12 18:29:39 +01:00
Luigi Operoso d91a729ccf
feat(backup): add backup img ci for e2e tests, docker build and push (#795)
also fix the current CI
2023-03-07 00:34:07 +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
Mateusz Korus 81374d0857 Bump backup PVC version to v0.1.1 2021-05-06 11:17:51 +02:00
Sylwia Brant 84b5499755 #548 Fix clearing /tmp dir in backup script 2021-04-26 15:57:13 +02:00
Tomasz Sęk 5f39f67d96
Bump backup PVC version to v0.1.0 2020-06-07 17:09:01 +02:00
Tomasz Sęk 3cc726dfaf
#273 Add get-latest.sh script to the PVC backup provider 2020-05-26 15:30:08 +02:00
Tomasz Sęk edec445aed
Bump backup PVC version to v0.0.8 2020-01-19 19:11:15 +01:00
Tomasz Sęk 4494b662a1
Fix travis 2020-01-19 01:41:16 +01:00
Tomasz Sęk 64422822c8
Don't use TTY in backup PVC e2e tests 2020-01-18 21:02:43 +01:00
Paul Becotte c6c3987588
#104 Backups should only exclude config.xml in top level job directories 2020-01-18 20:13:57 +01:00
Marco Krammer d32c21f967 Removed BACKUP_TMP_DIR env variable and switched to mktemp -d instead of letting the user decide the temp dir path 2019-10-17 10:41:35 +02:00
Marco K 06c319ef69
Set BACKUP_TMP_DIR default value instead of making it required 2019-10-17 10:10:50 +02:00
Marco Krammer d58acb3039 Bumped backup pvc version and added documentation on how to use changes to getting started docs 2019-10-17 09:22:10 +02:00
Marco Krammer d8fe19ce8d Added BACKUP_TMP_DIR variable to backup pvc e2e test 2019-10-17 09:20:31 +02:00
Marco Krammer ae3c527eb1 Support BACKUP_TMP_DIR to not immediately write to backup dir as this can cause broken backups to be used when being restored 2019-10-17 09:19:50 +02:00
Tomasz Sęk abf63525e0
Bump backup PVC version to v0.0.6 2019-09-01 11:58:18 +02:00
Tomasz Sęk 6f1a3bd9ce
#82 Add e2e test 2019-09-01 11:53:53 +02:00
Takeshi Takizawa edf6307524 Support no backup file case.
If there is no backup file then `grep` exit with nonzero code.
So use `find` instead of it.
2019-08-28 19:22:42 +09:00
Tomasz Sęk 30cd4d53a7
Bump backup PVC version to v0.0.5 2019-08-12 14:01:32 +02:00
Tomasz Sęk 75d0e3d358
Fix backup/pvc/Makefile bump-version goal 2019-08-12 14:01:02 +02:00
David Ashford bd6012dfb1
add grep command to only filter backups 2019-08-07 16:11:13 +01:00
Tomasz Sęk f2a6bbbdce
#50 Improve rolling backups in pvc Docker image 2019-07-12 09:48:24 +02:00
Ben Langfeld f5397ed8ac
Bump backup image version 2019-07-11 16:05:03 -03:00
Ben Langfeld 6a69cf5c88
Allow rolling backups to a limit
When `BACKUP_COUNT` is specified on the backup container, a backup job will ensure we keep the newest `BACKUP_COUNT` backups to preserve space in our target volume.
2019-07-11 15:56:07 -03:00
Tomasz Sęk 6f1b133741
#37 Improve backup PVC docker image user creation 2019-06-26 22:51:11 +02:00
Tomasz Sęk 06be46952b
#4 Improve backup PVC Makefile 2019-06-18 19:56:43 +02:00
Tomasz Sęk 83f413dfe0
#4 Improve backup PVC Makefile 2019-06-17 23:11:22 +02:00
Tomasz Sęk b399decdce
#4 Improve pvc backup/restore Dockerfile 2019-06-16 22:37:04 +02:00
Tomasz Sęk 66e9512c80
#4 Add pvc backup/restore Dockerfile 2019-06-16 02:01:01 +02:00