Skip to content

Development

Resources for contributing to external-dns-unifios-webhook.

Quick Start

# Clone
git clone https://github.com/lexfrei/external-dns-unifios-webhook.git
cd external-dns-unifios-webhook

# Build
go build -o webhook ./cmd/webhook

# Test
go test ./...

# Run locally
export WEBHOOK_UNIFI_HOST="https://192.168.1.1"
export WEBHOOK_UNIFI_API_KEY="your-api-key"
./webhook

Requirements

  • Go 1.25+
  • Access to a UniFi controller (for integration testing)
  • Docker/Podman (for container builds)