Integration

Integration configures background publication, inventory, or a webhook.

API versionkudurru.io/v1alpha1
KindIntegration
ScopeNamespaced
Resourceintegrations.kudurru.io
Short namesintg
Subresourcesstatus

Columns of kubectl get integrations:

ColumnTypeValue
Typestring.spec.type
Suspendedboolean.spec.suspend

Spec

IntegrationSpec is one independently elected background integration.

Validation: cloudflare settings must match type (has(self.cloudflare) == (self.type == 'cloudflare'))

Validation: unifi settings must match type (has(self.unifi) == (self.type == 'unifi'))

Validation: webhook settings must match type (has(self.webhook) == (self.type == 'webhook'))

Validation: cloudflare requires an apiToken credential reference (self.type != 'cloudflare' || (has(self.credentials) && 'apiToken' in self.credentials))

Validation: unifi requires an apiKey credential reference (self.type != 'unifi' || (has(self.credentials) && 'apiKey' in self.credentials))

FieldTypeDescription
spec.cloudflareobjectCloudflareIntegration selects destinations for owned public records.
spec.cloudflare.zones[]objectRequired.
Items: 1 to 256
List type: map, keyed by zone
spec.cloudflare.zones[].adoptFromobjectPublicationAdoption requires an explicit external-dns ownership identity.
spec.cloudflare.zones[].adoptFrom.externalDNSOwnerstringRequired.
Length: 1 to 253
spec.cloudflare.zones[].adoptUnownedbooleanAdoptUnowned never permits overwriting a foreign ownership marker.
spec.cloudflare.zones[].defaultsobjectCloudflareDefaults supplies provider values absent from an endpoint.
spec.cloudflare.zones[].defaults.commentstringLength: at most 500
spec.cloudflare.zones[].defaults.proxiedboolean
spec.cloudflare.zones[].defaults.ttlintegerTTL 1 means provider automatic TTL; proxied records always use it.
Default: 1
Format: int64
Range: 1 to 86400
spec.cloudflare.zones[].policystringDefault: sync
One of: sync, upsert-only, create-only
spec.cloudflare.zones[].selectobjectPublicationSelection reads original desired records, including public-only endpoints withheld from the internal DNS view.
spec.cloudflare.zones[].select.exclude[]stringExclude contains exact names or leading *. suffix patterns.
Items: at most 256
spec.cloudflare.zones[].select.labelsmap[string]stringProperties: at most 64
spec.cloudflare.zones[].select.types[]stringItems: at most 64
List type: set
spec.cloudflare.zones[].translatemap[string]stringTranslate maps equal-sized IP prefixes before publication.
Properties: at most 64
spec.cloudflare.zones[].zonestringRequired.
Length: 1 to 253
spec.cloudflare.zones[].zoneIDstringPattern: ^[a-f0-9]{32}$
spec.credentialsmap[string]objectProperties: at most 16
spec.credentials.<key>.envstringPattern: ^[A-Za-z_][A-Za-z0-9_]*$
Length: at most 128
spec.credentials.<key>.filestringLength: 1 to 4096
spec.credentials.<key>.secretRefobjectCredentialSecretRef names a key in the operator's credential namespace. Namespace selection belongs to host configuration, never to this reference.
spec.credentials.<key>.secretRef.keystringRequired.
Length: 1 to 253
spec.credentials.<key>.secretRef.namestringRequired.
Length: 1 to 253
spec.deletionPolicystringDeletionPolicy decides what deleting this Integration does to what it published. Retain (the default) removes the object at once and leaves its provider records and private ledger in place; a recreated Integration has a new UID and sees them as another owner's. Delete keeps the object, with the reserved finalizer kudurru.io/integration-cleanup that kudurru adds (the store on SQLite, the integration host on Kubernetes) and no document can set or strip, in a Terminating state until the elected writer has deleted the record sets this incarnation provably owns (every row carries its cluster and UID marker and the ledger lists every provider ID; this overrides a zone's upsert-only or create-only policy), forgotten their ledger rows and purged its local source state; records of other owners are never touched. A cleanup that cannot finish stays Terminating with a reason; changing the policy to Retain, or the reviewed release command, removes the object without cleanup. On Kubernetes an Integration the host refuses (another namespace, a webhook, UniFi record publication) is never armed. A UniFi Integration armed before it gained spec.unifi.inventory still cleans up when deleted: its source state is purged locally, with no provider request.
Default: Retain
One of: Retain, Delete
spec.resyncstringDefault: 10m
spec.suspendboolean
spec.typestringRequired.
One of: cloudflare, unifi, webhook
spec.unifiobjectUniFiIntegration configures inventory polling and explicitly enabled writes.
spec.unifi.endpointstringRequired.
Pattern: ^https://[^/]+.*$
Length: at most 2048
spec.unifi.groupsobjectUniFiGroups selects the provider fields used for client group membership.
spec.unifi.groups.byNetworkmap[string]stringByNetwork maps provider network names to desired ClientGroup names.
Properties: at most 256
spec.unifi.groups.byNotestringLength: at most 128
spec.unifi.inventoryobjectUniFiInventory controls generated records independently of query-log traffic.
spec.unifi.inventory.includeNetworks[]stringItems: at most 256
List type: set
spec.unifi.inventory.nameTemplatestringNameTemplate uses the bounded inventory name formatter, never arbitrary Go template execution or filesystem/network functions.
Length: at most 500
spec.unifi.inventory.reverseZonesstringDefault: auto
One of: auto, disabled
spec.unifi.inventory.ttlintegerDefault: 120
Format: int64
Range: 1 to 86400
spec.unifi.inventory.zoneRefobjectRequired. ObjectRef points at another kudurru object. Namespace is omitted for cluster-scoped kinds and for same-namespace references.
spec.unifi.inventory.zoneRef.namestringRequired.
Length: at least 1
spec.unifi.inventory.zoneRef.namespacestring
spec.unifi.legacybooleanLegacy enables version-detected supplementary inventory endpoints and explicitly authorized legacy actions; it never enables them by default.
spec.unifi.pollstringDefault: 60s
spec.unifi.pushobjectUniFiPush defaults every external write to disabled. Each write is an explicit, reviewed operator command (D401); polling never writes.
spec.unifi.push.clientActionsbooleanClientActions advertises the block-client and unblock-client actions. They use the legacy controller API and so also require legacy: true.
spec.unifi.push.dhcpDNSServersbooleanDHCPDNSServers enables the reviewed dhcp-dns-servers action, which writes DNSServers into the DHCP DNS server override of Networks.
spec.unifi.push.dnsServers[]stringDNSServers are the IPv4 addresses (such as the kudurru VIP) DHCP hands out on Networks. Required when DHCPDNSServers is set.
Items: at most 4
List type: set
spec.unifi.push.mirrorRecordsobjectUniFiRecordMirror controls optional record publication to the gateway as UniFi DNS policies (D401). Mirroring writes only after an operator applies a reviewed preview; it changes only policies its own ledger proves it created and never modifies another policy.
spec.unifi.push.mirrorRecords.domains[]stringDomains names the zones (and their subdomains) whose records are mirrored. It is required when mirroring is enabled.
Items: at most 64
List type: set
spec.unifi.push.mirrorRecords.enabledboolean
spec.unifi.push.mirrorRecords.exclude[]stringExclude contains exact names or leading *. suffix patterns.
Items: at most 256
spec.unifi.push.mirrorRecords.labelsmap[string]stringLabels, when set, mirrors only records whose labels match. Zone publish rules naming this Integration also select records.
Properties: at most 64
spec.unifi.push.mirrorRecords.types[]stringTypes limits mirrored records; empty mirrors both A and CNAME.
Items: at most 2
List type: set
spec.unifi.push.networks[]stringNetworks names the UniFi networks whose DHCP DNS servers are written. Required when DHCPDNSServers is set.
Items: at most 64
List type: set
spec.unifi.sitestringDefault: default
Length: 1 to 253
spec.unifi.tlsFingerprintstringTLSFingerprint pins the provider certificate for a private CA deployment.
Pattern: ^sha256:[a-fA-F0-9]{64}$
spec.webhookobjectWebhookIntegration connects an independently deployed Tier-B provider.
spec.webhook.domains[]stringItems: at most 256
spec.webhook.endpointstringRequired.
Pattern: ^https?://[^/]+.*$
Length: at most 2048
spec.webhook.policystringDefault: sync
One of: sync, upsert-only, create-only
spec.webhook.timeoutstringDefault: 10s

Status

IntegrationStatus reports observed execution without credential values.

FieldTypeDescription
status.clientsintegerFormat: int64
status.conditions[]ConditionList type: map, keyed by type
status.credentialFingerprintsmap[string]stringCredentialFingerprints identify rotated secrets without revealing them.
Properties: at most 16
status.lastSyncTimestringFormat: date-time
status.observedGenerationintegerFormat: int64
status.recordsobjectIntegrationRecordCounts describes the last publication plan.
status.records.conflictsintegerRequired.
Format: int64
Range: at least 0
status.records.driftintegerRequired.
Format: int64
Range: at least 0
status.records.managedintegerRequired.
Format: int64
Range: at least 0

Example

deploy/kustomize/samples/kudurru.io_v1alpha1_integration.yaml:

apiVersion: kudurru.io/v1alpha1
kind: Integration
metadata:
  name: public-dns
  namespace: default
spec:
  type: cloudflare
  credentials:
    apiToken:
      secretRef:
        name: cloudflare-token
        key: token
  cloudflare:
    zones:
      - zone: example.com
        select:
          labels:
            kudurru.io/publish: cloudflare
          types: [A, AAAA, CNAME, TXT, MX, SRV, CAA]
        defaults:
          proxied: false
          ttl: 1
        policy: sync
  deletionPolicy: Retain
  resync: 10m
  suspend: true

Source: docs-site/content/reference/crds/integration.md