Integration
Integration configures background publication, inventory, or a webhook.
| API version | kudurru.io/v1alpha1 |
| Kind | Integration |
| Scope | Namespaced |
| Resource | integrations.kudurru.io |
| Short names | intg |
| Subresources | status |
Columns of kubectl get integrations:
| Column | Type | Value |
|---|---|---|
| Type | string | .spec.type |
| Suspended | boolean | .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))
| Field | Type | Description |
|---|---|---|
spec.cloudflare | object | CloudflareIntegration selects destinations for owned public records. |
spec.cloudflare.zones | []object | Required. Items: 1 to 256 List type: map, keyed by zone |
spec.cloudflare.zones[].adoptFrom | object | PublicationAdoption requires an explicit external-dns ownership identity. |
spec.cloudflare.zones[].adoptFrom.externalDNSOwner | string | Required. Length: 1 to 253 |
spec.cloudflare.zones[].adoptUnowned | boolean | AdoptUnowned never permits overwriting a foreign ownership marker. |
spec.cloudflare.zones[].defaults | object | CloudflareDefaults supplies provider values absent from an endpoint. |
spec.cloudflare.zones[].defaults.comment | string | Length: at most 500 |
spec.cloudflare.zones[].defaults.proxied | boolean | |
spec.cloudflare.zones[].defaults.ttl | integer | TTL 1 means provider automatic TTL; proxied records always use it. Default: 1Format: int64Range: 1 to 86400 |
spec.cloudflare.zones[].policy | string | Default: syncOne of: sync, upsert-only, create-only |
spec.cloudflare.zones[].select | object | PublicationSelection reads original desired records, including public-only endpoints withheld from the internal DNS view. |
spec.cloudflare.zones[].select.exclude | []string | Exclude contains exact names or leading *. suffix patterns. Items: at most 256 |
spec.cloudflare.zones[].select.labels | map[string]string | Properties: at most 64 |
spec.cloudflare.zones[].select.types | []string | Items: at most 64 List type: set |
spec.cloudflare.zones[].translate | map[string]string | Translate maps equal-sized IP prefixes before publication. Properties: at most 64 |
spec.cloudflare.zones[].zone | string | Required. Length: 1 to 253 |
spec.cloudflare.zones[].zoneID | string | Pattern: ^[a-f0-9]{32}$ |
spec.credentials | map[string]object | Properties: at most 16 |
spec.credentials.<key>.env | string | Pattern: ^[A-Za-z_][A-Za-z0-9_]*$Length: at most 128 |
spec.credentials.<key>.file | string | Length: 1 to 4096 |
spec.credentials.<key>.secretRef | object | CredentialSecretRef names a key in the operator's credential namespace. Namespace selection belongs to host configuration, never to this reference. |
spec.credentials.<key>.secretRef.key | string | Required. Length: 1 to 253 |
spec.credentials.<key>.secretRef.name | string | Required. Length: 1 to 253 |
spec.deletionPolicy | string | DeletionPolicy 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: RetainOne of: Retain, Delete |
spec.resync | string | Default: 10m |
spec.suspend | boolean | |
spec.type | string | Required. One of: cloudflare, unifi, webhook |
spec.unifi | object | UniFiIntegration configures inventory polling and explicitly enabled writes. |
spec.unifi.endpoint | string | Required. Pattern: ^https://[^/]+.*$Length: at most 2048 |
spec.unifi.groups | object | UniFiGroups selects the provider fields used for client group membership. |
spec.unifi.groups.byNetwork | map[string]string | ByNetwork maps provider network names to desired ClientGroup names. Properties: at most 256 |
spec.unifi.groups.byNote | string | Length: at most 128 |
spec.unifi.inventory | object | UniFiInventory controls generated records independently of query-log traffic. |
spec.unifi.inventory.includeNetworks | []string | Items: at most 256 List type: set |
spec.unifi.inventory.nameTemplate | string | NameTemplate uses the bounded inventory name formatter, never arbitrary Go template execution or filesystem/network functions. Length: at most 500 |
spec.unifi.inventory.reverseZones | string | Default: autoOne of: auto, disabled |
spec.unifi.inventory.ttl | integer | Default: 120Format: int64Range: 1 to 86400 |
spec.unifi.inventory.zoneRef | object | Required. ObjectRef points at another kudurru object. Namespace is omitted for cluster-scoped kinds and for same-namespace references. |
spec.unifi.inventory.zoneRef.name | string | Required. Length: at least 1 |
spec.unifi.inventory.zoneRef.namespace | string | |
spec.unifi.legacy | boolean | Legacy enables version-detected supplementary inventory endpoints and explicitly authorized legacy actions; it never enables them by default. |
spec.unifi.poll | string | Default: 60s |
spec.unifi.push | object | UniFiPush defaults every external write to disabled. Each write is an explicit, reviewed operator command (D401); polling never writes. |
spec.unifi.push.clientActions | boolean | ClientActions advertises the block-client and unblock-client actions. They use the legacy controller API and so also require legacy: true. |
spec.unifi.push.dhcpDNSServers | boolean | DHCPDNSServers enables the reviewed dhcp-dns-servers action, which writes DNSServers into the DHCP DNS server override of Networks. |
spec.unifi.push.dnsServers | []string | DNSServers 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.mirrorRecords | object | UniFiRecordMirror 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 | []string | Domains 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.enabled | boolean | |
spec.unifi.push.mirrorRecords.exclude | []string | Exclude contains exact names or leading *. suffix patterns. Items: at most 256 |
spec.unifi.push.mirrorRecords.labels | map[string]string | Labels, 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 | []string | Types limits mirrored records; empty mirrors both A and CNAME. Items: at most 2 List type: set |
spec.unifi.push.networks | []string | Networks names the UniFi networks whose DHCP DNS servers are written. Required when DHCPDNSServers is set. Items: at most 64 List type: set |
spec.unifi.site | string | Default: defaultLength: 1 to 253 |
spec.unifi.tlsFingerprint | string | TLSFingerprint pins the provider certificate for a private CA deployment. Pattern: ^sha256:[a-fA-F0-9]{64}$ |
spec.webhook | object | WebhookIntegration connects an independently deployed Tier-B provider. |
spec.webhook.domains | []string | Items: at most 256 |
spec.webhook.endpoint | string | Required. Pattern: ^https?://[^/]+.*$Length: at most 2048 |
spec.webhook.policy | string | Default: syncOne of: sync, upsert-only, create-only |
spec.webhook.timeout | string | Default: 10s |
Status
IntegrationStatus reports observed execution without credential values.
| Field | Type | Description |
|---|---|---|
status.clients | integer | Format: int64 |
status.conditions | []Condition | List type: map, keyed by type |
status.credentialFingerprints | map[string]string | CredentialFingerprints identify rotated secrets without revealing them. Properties: at most 16 |
status.lastSyncTime | string | Format: date-time |
status.observedGeneration | integer | Format: int64 |
status.records | object | IntegrationRecordCounts describes the last publication plan. |
status.records.conflicts | integer | Required. Format: int64Range: at least 0 |
status.records.drift | integer | Required. Format: int64Range: at least 0 |
status.records.managed | integer | Required. Format: int64Range: 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