Files
cozystack/examples/backups/rabbitmq/04-backupclass.yaml
Andrey Kolkov 329ef9cf3f test(backups): make rabbitmq backup e2e self-contained via demo bucket
The rabbitmq backup roundtrip was the only backup e2e routing through the
platform cozy-default system bucket, whose advertised endpoint in the CI
sandbox is the unroutable s3.example.org placeholder, so the backup Job
failed with "Could not resolve host: s3.example.org". Mirror the
clickhouse/mariadb backup examples: provision a demo Bucket, project its
access keys into rabbitmq-backup-creds and copy the seaweedfs CA into
rabbitmq-backup-ca, and render a self-contained Rabbitmq strategy +
rabbitmq-default BackupClass whose curl uploads to the in-cluster seaweedfs
endpoint (S3_ENDPOINT override, CURL_CA_BUNDLE for the self-signed cert).

The in-Pod script is kept identical to the shipped cozy-default-rabbitmq
strategy, which is left unchanged; the demo only reuses its client image.

Assisted-By: LLM
Signed-off-by: Andrey Kolkov <androndo@gmail.com>
2026-09-02 15:37:30 +04:00

19 lines
617 B
YAML

# Maps Kind=RabbitMQ to this demo's Rabbitmq strategy. BackupClass is
# cluster-scoped, so a single instance covers every namespace. Named
# rabbitmq-default so it does not collide with the platform cozy-default class,
# which routes RabbitMQ to the shipped cozy-default-rabbitmq strategy.
---
apiVersion: backups.cozystack.io/v1alpha1
kind: BackupClass
metadata:
name: rabbitmq-default
spec:
strategies:
- application:
apiGroup: apps.cozystack.io
kind: RabbitMQ
strategyRef:
apiGroup: strategy.backups.cozystack.io
kind: Rabbitmq
name: rabbitmq-strategy-default