apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
  labels:
    app: alertstore
    app.kubernetes.io/instance: alertstore
  name: alertstore-secret
spec:
  data:
    - remoteRef:
        key: aisupport-prod/alertstore
        property: DB_DSN
      secretKey: DB_DSN
    - remoteRef:
        key: aisupport-prod/alertstore
        property: LARK_APP_SECRET
      secretKey: LARK_APP_SECRET
    - remoteRef:
        key: aisupport-prod/alertstore
        property: ALERTSTORE_WEBHOOK_TOKEN
      secretKey: ALERTSTORE_WEBHOOK_TOKEN
    - remoteRef:
        key: aisupport-prod/alertstore
        property: CLINIC_TOKEN
      secretKey: CLINIC_TOKEN
    - remoteRef:
        key: aisupport-prod/alertstore
        property: EVENT_KEY
      secretKey: EVENT_KEY
    - remoteRef:
        key: aisupport-prod/alertstore
        property: JIRA_TOKEN
      secretKey: JIRA_TOKEN
  refreshInterval: 1h
  secretStoreRef:
    kind: ClusterSecretStore
    name: default
  target:
    creationPolicy: Owner
    deletionPolicy: Retain
    name: alertstore-secret
