apiVersion: barmancloud.cnpg.io/v1
kind: ObjectStore
metadata:
  name: ollama-web-postgresql-18-backup-garage-local
  namespace: ollama
  labels:
    helm.sh/chart: postgres-18-cluster-7.5.1
    app.kubernetes.io/name: ollama-web-postgresql-18
    app.kubernetes.io/instance: ollama
    app.kubernetes.io/part-of: ollama
    app.kubernetes.io/version: "7.5.1"
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: ollama-web-postgresql-18-backup-garage-local
spec:
  retentionPolicy: 7d
  instanceSidecarConfiguration:
    env:
      - name: AWS_REQUEST_CHECKSUM_CALCULATION
        value: when_required
      - name: AWS_RESPONSE_CHECKSUM_VALIDATION
        value: when_required
  configuration:
    destinationPath: s3://postgres-backups/cl01tl/ollama/ollama-web-postgresql-18-cluster
    endpointURL: http://garage-main.garage:3900
    s3Credentials:
      accessKeyId:
        name: ollama-web-postgresql-18-backup-garage-local-secret
        key: ACCESS_KEY_ID
      secretAccessKey:
        name: ollama-web-postgresql-18-backup-garage-local-secret
        key: ACCESS_SECRET_KEY
      region:
        name: ollama-web-postgresql-18-backup-garage-local-secret
        key: ACCESS_REGION
