apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
  name: external-usage-bot-secret
  labels:
    app: external-usage-bot
    app.kubernetes.io/instance: investibook-external-customer-prod
spec:
  refreshInterval: 1h
  secretStoreRef:
    kind: ClusterSecretStore
    name: default
  target:
    name: external-usage-bot-secret
    creationPolicy: Owner
    deletionPolicy: Retain
  data:
    - secretKey: MODEL_API_KEY
      remoteRef:
        key: prod/investibook/customer-facing/usage-bot
        property: MODEL_API_KEY
    - secretKey: LARK_APP_ID
      remoteRef:
        key: prod/investibook/customer-facing/usage-bot
        property: LARK_APP_ID
    - secretKey: LARK_APP_SECRET
      remoteRef:
        key: prod/investibook/customer-facing/usage-bot
        property: LARK_APP_SECRET
    - secretKey: BACKEND_API_ACCESS_KEY
      remoteRef:
        key: prod/investibook/customer-facing/usage-bot
        property: BACKEND_API_ACCESS_KEY
    - secretKey: BACKEND_API_SECRET_KEY
      remoteRef:
        key: prod/investibook/customer-facing/usage-bot
        property: BACKEND_API_SECRET_KEY
    - secretKey: METRICS_TOKEN
      remoteRef:
        key: prod/investibook/customer-facing/usage-bot
        property: METRICS_TOKEN
