apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
  name: unpoller-unifi-credentials
  namespace: unpoller
  labels:
    app.kubernetes.io/name: unpoller-unifi-credentials
    app.kubernetes.io/instance: unpoller
    app.kubernetes.io/part-of: unpoller
spec:
  secretStoreRef:
    kind: ClusterSecretStore
    name: openbao
  data:
    - secretKey: UP_UNIFI_CONTROLLER_0_USER
      remoteRef:
        key: /unifi/users/cl01tl
        property: user
    - secretKey: UP_UNIFI_CONTROLLER_0_PASS
      remoteRef:
        key: /unifi/users/cl01tl
        property: password
