apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
  name: yamtrack-postgresql-18-recovery-secret
  namespace: yamtrack
  labels:
    helm.sh/chart: postgres-18-cluster-7.4.5
    app.kubernetes.io/name: yamtrack-postgresql-18
    app.kubernetes.io/instance: yamtrack
    app.kubernetes.io/part-of: yamtrack
    app.kubernetes.io/version: "7.4.5"
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: yamtrack-postgresql-18-recovery-secret
spec:
  secretStoreRef:
    kind: ClusterSecretStore
    name: vault
  data:
    - secretKey: ACCESS_REGION
      remoteRef:
        conversionStrategy: Default
        decodingStrategy: None
        key: /garage/home-infra/postgres-backups
        metadataPolicy: None
        property: ACCESS_REGION
    - secretKey: ACCESS_KEY_ID
      remoteRef:
        conversionStrategy: Default
        decodingStrategy: None
        key: /garage/home-infra/postgres-backups
        metadataPolicy: None
        property: ACCESS_KEY_ID
    - secretKey: ACCESS_SECRET_KEY
      remoteRef:
        conversionStrategy: Default
        decodingStrategy: None
        key: /garage/home-infra/postgres-backups
        metadataPolicy: None
        property: ACCESS_SECRET_KEY
