apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
  name: kubernetes-cloudflare-ddns-secret
  namespace: kubernetes-cloudflare-ddns
  labels:
    app.kubernetes.io/name: kubernetes-cloudflare-ddns-secret
    app.kubernetes.io/instance: kubernetes-cloudflare-ddns
    app.kubernetes.io/part-of: kubernetes-cloudflare-ddns
spec:
  secretStoreRef:
    kind: ClusterSecretStore
    name: openbao
  data:
    - secretKey: AUTH_KEY
      remoteRef:
        key: /cloudflare/alexlebens.net/ddns
        property: token
    - secretKey: NAME
      remoteRef:
        key: /cloudflare/alexlebens.net/ddns
        property: name
    - secretKey: RECORD_ID
      remoteRef:
        key: /cloudflare/alexlebens.net/ddns
        property: record-id
    - secretKey: ZONE_ID
      remoteRef:
        key: /cloudflare/alexlebens.net/ddns
        property: zone-id
