apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
  name: unpoller-unifi-secret
  namespace: unpoller
  labels:
    app.kubernetes.io/name: unpoller-unifi-secret
    app.kubernetes.io/instance: unpoller
    app.kubernetes.io/part-of: unpoller
spec:
  secretStoreRef:
    kind: ClusterSecretStore
    name: vault
  data:
    - secretKey: UP_UNIFI_CONTROLLER_0_USER
      remoteRef:
        conversionStrategy: Default
        decodingStrategy: None
        key: /unifi/auth/cl01tl
        metadataPolicy: None
        property: user
    - secretKey: UP_UNIFI_CONTROLLER_0_PASS
      remoteRef:
        conversionStrategy: Default
        decodingStrategy: None
        key: /unifi/auth/cl01tl
        metadataPolicy: None
        property: password
