Commit Graph

16 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
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 25b329aa13
fix(backup): use atomic mv to create backup (#1000) 2024-05-05 16:54:04 +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 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
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
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