Commit Graph

24 Commits

Author SHA1 Message Date
Benjamin Herbert ae9cb0c7f5
fix(backup): Add error handling and logging backup and restore scripts (#1120)
Co-authored-by: Luigi Operoso <40476330+brokenpip3@users.noreply.github.com>
2025-07-16 23:43:08 +02:00
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 6cceedba77
fix(backup): get-latest.sh, search for both .gz and .zstd (#858) 2023-06-25 15:48:36 +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 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
Sylwia Brant 84b5499755 #548 Fix clearing /tmp dir in backup script 2021-04-26 15:57:13 +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
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 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
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
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 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 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