apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
  name: bernard-secrets
  namespace: ai-agents-bernard
spec:
  refreshInterval: 1h
  secretStoreRef:
    name: infisical
    kind: ClusterSecretStore
  target:
    name: bernard-secrets
  data:
    - secretKey: GITEA_TOKEN
      remoteRef:
        key: BERNARD_GITEA_TOKEN
    - secretKey: BERNARD_DB_DSN
      remoteRef:
        key: BERNARD_DB_DSN
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
  name: bernard-litellm-key
  namespace: ai-agents-bernard
spec:
  refreshInterval: 1h
  secretStoreRef:
    name: infisical-litellm
    kind: ClusterSecretStore
  target:
    name: bernard-litellm-key
  data:
    - secretKey: LITELLM_API_KEY
      remoteRef:
        key: LITELLM_MASTER_KEY
