From 4d5b743db3e69df9e2103f045846218a34f8b2ce Mon Sep 17 00:00:00 2001 From: Conan Scott Date: Thu, 16 Apr 2026 17:56:19 +1000 Subject: [PATCH] removed test --- manifests/backup-test-cronjob.yaml | 65 ------------------------------ 1 file changed, 65 deletions(-) delete mode 100644 manifests/backup-test-cronjob.yaml diff --git a/manifests/backup-test-cronjob.yaml b/manifests/backup-test-cronjob.yaml deleted file mode 100644 index 91bf8c0..0000000 --- a/manifests/backup-test-cronjob.yaml +++ /dev/null @@ -1,65 +0,0 @@ ---- -# Optional: Monthly restore test automation -apiVersion: batch/v1 -kind: CronJob -metadata: - name: monthly-restore-test - namespace: openshift-adp -spec: - timeZone: "Australia/Sydney" - schedule: "0 06 15 * *" # 15th of month, 6 AM - concurrencyPolicy: Forbid - successfulJobsHistoryLimit: 3 - failedJobsHistoryLimit: 3 - jobTemplate: - spec: - template: - metadata: - labels: - app: restore-test - spec: - serviceAccountName: velero - restartPolicy: OnFailure - containers: - - name: restore-test - image: quay.io/konveyor/velero:latest - env: - - name: VELERO_NAMESPACE - value: openshift-adp - command: - - /bin/bash - - -c - - | - set -e - - echo "=== Velero Restore Test ===" - echo "Date: $(date)" - - # Get latest daily-config backup - CONFIG_BACKUP=$(velero backup get --selector="backup-type=config" \ - -o json | jq -r '.items[0].metadata.name') - - # Get latest daily-stateful backup - STATEFUL_BACKUP=$(velero backup get --selector="backup-type=stateful" \ - -o json | jq -r '.items[0].metadata.name') - - echo "Latest config backup: $CONFIG_BACKUP" - echo "Latest stateful backup: $STATEFUL_BACKUP" - - # Verify backups are successful - CONFIG_STATUS=$(velero backup get $CONFIG_BACKUP -o json | \ - jq -r '.status.phase') - STATEFUL_STATUS=$(velero backup get $STATEFUL_BACKUP -o json | \ - jq -r '.status.phase') - - echo "Config backup status: $CONFIG_STATUS" - echo "Stateful backup status: $STATEFUL_STATUS" - - if [ "$CONFIG_STATUS" != "Completed" ] || [ "$STATEFUL_STATUS" != "Completed" ]; then - echo "ERROR: Backups not in Completed state" - exit 1 - fi - - echo "=== Test Passed ===" - echo "All backups verified successfully" -