mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 01:26:59 +02:00
rename project root package to sigs.k8s.io
This commit is contained in:
parent
eba1410d94
commit
41ba7f1ff5
@ -15,7 +15,7 @@
|
|||||||
# builder image
|
# builder image
|
||||||
FROM golang:1.13 as builder
|
FROM golang:1.13 as builder
|
||||||
|
|
||||||
WORKDIR /github.com/kubernetes-sigs/external-dns
|
WORKDIR /sigs.k8s.io/external-dns
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN go mod vendor && \
|
RUN go mod vendor && \
|
||||||
@ -29,7 +29,7 @@ LABEL maintainer="Team Teapot @ Zalando SE <team-teapot@zalando.de>"
|
|||||||
RUN apk add --no-cache ca-certificates && \
|
RUN apk add --no-cache ca-certificates && \
|
||||||
update-ca-certificates
|
update-ca-certificates
|
||||||
|
|
||||||
COPY --from=builder /github.com/kubernetes-sigs/external-dns/build/external-dns /bin/external-dns
|
COPY --from=builder /sigs.k8s.io/external-dns/build/external-dns /bin/external-dns
|
||||||
|
|
||||||
# Run as UID for nobody since k8s pod securityContext runAsNonRoot can't resolve the user ID:
|
# Run as UID for nobody since k8s pod securityContext runAsNonRoot can't resolve the user ID:
|
||||||
# https://github.com/kubernetes/kubernetes/issues/40958
|
# https://github.com/kubernetes/kubernetes/issues/40958
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
FROM golang:1.13 as builder
|
FROM golang:1.13 as builder
|
||||||
|
|
||||||
WORKDIR /github.com/kubernetes-sigs/external-dns
|
WORKDIR /sigs.k8s.io/external-dns
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
@ -27,7 +27,7 @@ RUN apt-get update && \
|
|||||||
FROM gcr.io/distroless/static
|
FROM gcr.io/distroless/static
|
||||||
|
|
||||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||||
COPY --from=builder /github.com/kubernetes-sigs/external-dns/build/external-dns /bin/external-dns
|
COPY --from=builder /sigs.k8s.io/external-dns/build/external-dns /bin/external-dns
|
||||||
|
|
||||||
# Run as UID for nobody since k8s pod securityContext runAsNonRoot can't resolve the user ID:
|
# Run as UID for nobody since k8s pod securityContext runAsNonRoot can't resolve the user ID:
|
||||||
# https://github.com/kubernetes/kubernetes/issues/40958
|
# https://github.com/kubernetes/kubernetes/issues/40958
|
||||||
|
2
Makefile
2
Makefile
@ -48,7 +48,7 @@ SOURCES = $(shell find . -name '*.go')
|
|||||||
IMAGE ?= registry.opensource.zalan.do/teapot/$(BINARY)
|
IMAGE ?= registry.opensource.zalan.do/teapot/$(BINARY)
|
||||||
VERSION ?= $(shell git describe --tags --always --dirty)
|
VERSION ?= $(shell git describe --tags --always --dirty)
|
||||||
BUILD_FLAGS ?= -v
|
BUILD_FLAGS ?= -v
|
||||||
LDFLAGS ?= -X github.com/kubernetes-sigs/external-dns/pkg/apis/externaldns.Version=$(VERSION) -w -s
|
LDFLAGS ?= -X sigs.k8s.io/external-dns/pkg/apis/externaldns.Version=$(VERSION) -w -s
|
||||||
|
|
||||||
build: build/$(BINARY)
|
build: build/$(BINARY)
|
||||||
|
|
||||||
|
@ -23,10 +23,10 @@ import (
|
|||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
"github.com/kubernetes-sigs/external-dns/provider"
|
"sigs.k8s.io/external-dns/provider"
|
||||||
"github.com/kubernetes-sigs/external-dns/registry"
|
"sigs.k8s.io/external-dns/registry"
|
||||||
"github.com/kubernetes-sigs/external-dns/source"
|
"sigs.k8s.io/external-dns/source"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -22,11 +22,11 @@ import (
|
|||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/internal/testutils"
|
"sigs.k8s.io/external-dns/internal/testutils"
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
"github.com/kubernetes-sigs/external-dns/provider"
|
"sigs.k8s.io/external-dns/provider"
|
||||||
"github.com/kubernetes-sigs/external-dns/registry"
|
"sigs.k8s.io/external-dns/registry"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
|||||||
module github.com/kubernetes-sigs/external-dns
|
module sigs.k8s.io/external-dns
|
||||||
|
|
||||||
go 1.13
|
go 1.13
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ import (
|
|||||||
"reflect"
|
"reflect"
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
/** test utility functions for endpoints verifications */
|
/** test utility functions for endpoints verifications */
|
||||||
|
@ -20,7 +20,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleSameEndpoints() {
|
func ExampleSameEndpoints() {
|
||||||
|
@ -19,7 +19,7 @@ package testutils
|
|||||||
import (
|
import (
|
||||||
"github.com/stretchr/testify/mock"
|
"github.com/stretchr/testify/mock"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MockSource returns mock endpoints.
|
// MockSource returns mock endpoints.
|
||||||
|
14
main.go
14
main.go
@ -27,13 +27,13 @@ import (
|
|||||||
|
|
||||||
_ "k8s.io/client-go/plugin/pkg/client/auth"
|
_ "k8s.io/client-go/plugin/pkg/client/auth"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/controller"
|
"sigs.k8s.io/external-dns/controller"
|
||||||
"github.com/kubernetes-sigs/external-dns/pkg/apis/externaldns"
|
"sigs.k8s.io/external-dns/pkg/apis/externaldns"
|
||||||
"github.com/kubernetes-sigs/external-dns/pkg/apis/externaldns/validation"
|
"sigs.k8s.io/external-dns/pkg/apis/externaldns/validation"
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
"github.com/kubernetes-sigs/external-dns/provider"
|
"sigs.k8s.io/external-dns/provider"
|
||||||
"github.com/kubernetes-sigs/external-dns/registry"
|
"sigs.k8s.io/external-dns/registry"
|
||||||
"github.com/kubernetes-sigs/external-dns/source"
|
"sigs.k8s.io/external-dns/source"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -20,7 +20,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/pkg/apis/externaldns"
|
"sigs.k8s.io/external-dns/pkg/apis/externaldns"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidateConfig performs validation on the Config object
|
// ValidateConfig performs validation on the Config object
|
||||||
|
@ -19,7 +19,7 @@ package validation
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/pkg/apis/externaldns"
|
"sigs.k8s.io/external-dns/pkg/apis/externaldns"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
@ -19,7 +19,7 @@ package plan
|
|||||||
import (
|
import (
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ConflictResolver is used to make a decision in case of two or more different kubernetes resources
|
// ConflictResolver is used to make a decision in case of two or more different kubernetes resources
|
||||||
|
@ -19,8 +19,9 @@ package plan
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ ConflictResolver = PerResource{}
|
var _ ConflictResolver = PerResource{}
|
||||||
|
@ -20,7 +20,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Plan can convert a list of desired and current records to a series of create,
|
// Plan can convert a list of desired and current records to a series of create,
|
||||||
|
@ -19,10 +19,11 @@ package plan
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/internal/testutils"
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/internal/testutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type PlanTestSuite struct {
|
type PlanTestSuite struct {
|
||||||
|
@ -20,7 +20,7 @@ import (
|
|||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestApply tests that applying a policy results in the correct set of changes.
|
// TestApply tests that applying a policy results in the correct set of changes.
|
||||||
|
@ -28,10 +28,11 @@ import (
|
|||||||
"github.com/aliyun/alibaba-cloud-sdk-go/services/alidns"
|
"github.com/aliyun/alibaba-cloud-sdk-go/services/alidns"
|
||||||
"github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz"
|
"github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz"
|
||||||
"github.com/denverdino/aliyungo/metadata"
|
"github.com/denverdino/aliyungo/metadata"
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
yaml "gopkg.in/yaml.v2"
|
yaml "gopkg.in/yaml.v2"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -22,9 +22,9 @@ import (
|
|||||||
|
|
||||||
"github.com/aliyun/alibaba-cloud-sdk-go/services/alidns"
|
"github.com/aliyun/alibaba-cloud-sdk-go/services/alidns"
|
||||||
"github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz"
|
"github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz"
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MockAlibabaCloudDNSAPI struct {
|
type MockAlibabaCloudDNSAPI struct {
|
||||||
|
@ -28,10 +28,11 @@ import (
|
|||||||
"github.com/aws/aws-sdk-go/aws/credentials/stscreds"
|
"github.com/aws/aws-sdk-go/aws/credentials/stscreds"
|
||||||
"github.com/aws/aws-sdk-go/aws/session"
|
"github.com/aws/aws-sdk-go/aws/session"
|
||||||
"github.com/aws/aws-sdk-go/service/route53"
|
"github.com/aws/aws-sdk-go/service/route53"
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
"github.com/linki/instrumented_http"
|
"github.com/linki/instrumented_http"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -31,11 +31,12 @@ import (
|
|||||||
"github.com/aws/aws-sdk-go/aws/request"
|
"github.com/aws/aws-sdk-go/aws/request"
|
||||||
"github.com/aws/aws-sdk-go/aws/session"
|
"github.com/aws/aws-sdk-go/aws/session"
|
||||||
sd "github.com/aws/aws-sdk-go/service/servicediscovery"
|
sd "github.com/aws/aws-sdk-go/service/servicediscovery"
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/pkg/apis/externaldns"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
"github.com/linki/instrumented_http"
|
"github.com/linki/instrumented_http"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/pkg/apis/externaldns"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -26,11 +26,12 @@ import (
|
|||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws"
|
"github.com/aws/aws-sdk-go/aws"
|
||||||
sd "github.com/aws/aws-sdk-go/service/servicediscovery"
|
sd "github.com/aws/aws-sdk-go/service/servicediscovery"
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/internal/testutils"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/internal/testutils"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Compile time check for interface conformance
|
// Compile time check for interface conformance
|
||||||
|
@ -27,12 +27,13 @@ import (
|
|||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws"
|
"github.com/aws/aws-sdk-go/aws"
|
||||||
"github.com/aws/aws-sdk-go/service/route53"
|
"github.com/aws/aws-sdk-go/service/route53"
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/internal/testutils"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/mock"
|
"github.com/stretchr/testify/mock"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/internal/testutils"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -32,8 +32,8 @@ import (
|
|||||||
"github.com/Azure/go-autorest/autorest/azure"
|
"github.com/Azure/go-autorest/autorest/azure"
|
||||||
"github.com/Azure/go-autorest/autorest/to"
|
"github.com/Azure/go-autorest/autorest/to"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -29,8 +29,8 @@ import (
|
|||||||
"github.com/Azure/go-autorest/autorest/azure/auth"
|
"github.com/Azure/go-autorest/autorest/azure/auth"
|
||||||
"github.com/Azure/go-autorest/autorest/to"
|
"github.com/Azure/go-autorest/autorest/to"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
type azurePrivateDNSConfig struct {
|
type azurePrivateDNSConfig struct {
|
||||||
|
@ -25,8 +25,8 @@ import (
|
|||||||
"github.com/Azure/go-autorest/autorest"
|
"github.com/Azure/go-autorest/autorest"
|
||||||
"github.com/Azure/go-autorest/autorest/to"
|
"github.com/Azure/go-autorest/autorest/to"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
// mockPrivateZonesClient implements the methods of the Azure Private DNS Zones Client which are used in the Azure Private DNS Provider
|
// mockPrivateZonesClient implements the methods of the Azure Private DNS Zones Client which are used in the Azure Private DNS Provider
|
||||||
|
@ -24,11 +24,11 @@ import (
|
|||||||
"github.com/Azure/go-autorest/autorest"
|
"github.com/Azure/go-autorest/autorest"
|
||||||
"github.com/Azure/go-autorest/autorest/azure"
|
"github.com/Azure/go-autorest/autorest/azure"
|
||||||
"github.com/Azure/go-autorest/autorest/to"
|
"github.com/Azure/go-autorest/autorest/to"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/internal/testutils"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/internal/testutils"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
// mockZonesClient implements the methods of the Azure DNS Zones Client which are used in the Azure Provider
|
// mockZonesClient implements the methods of the Azure DNS Zones Client which are used in the Azure Provider
|
||||||
|
@ -27,9 +27,9 @@ import (
|
|||||||
cloudflare "github.com/cloudflare/cloudflare-go"
|
cloudflare "github.com/cloudflare/cloudflare-go"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
"github.com/kubernetes-sigs/external-dns/source"
|
"sigs.k8s.io/external-dns/source"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -23,10 +23,11 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
cloudflare "github.com/cloudflare/cloudflare-go"
|
cloudflare "github.com/cloudflare/cloudflare-go"
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
type mockCloudFlareClient struct{}
|
type mockCloudFlareClient struct{}
|
||||||
|
@ -33,8 +33,8 @@ import (
|
|||||||
etcdcv3 "github.com/coreos/etcd/clientv3"
|
etcdcv3 "github.com/coreos/etcd/clientv3"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
@ -21,8 +21,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
const defaultCoreDNSPrefix = "/skydns/"
|
const defaultCoreDNSPrefix = "/skydns/"
|
||||||
|
@ -32,9 +32,9 @@ import (
|
|||||||
"github.com/gophercloud/gophercloud/pagination"
|
"github.com/gophercloud/gophercloud/pagination"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/pkg/tlsutils"
|
"sigs.k8s.io/external-dns/pkg/tlsutils"
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -31,8 +31,9 @@ import (
|
|||||||
|
|
||||||
"github.com/gophercloud/gophercloud/openstack/dns/v2/recordsets"
|
"github.com/gophercloud/gophercloud/openstack/dns/v2/recordsets"
|
||||||
"github.com/gophercloud/gophercloud/openstack/dns/v2/zones"
|
"github.com/gophercloud/gophercloud/openstack/dns/v2/zones"
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
var lastGeneratedDesignateID int32
|
var lastGeneratedDesignateID int32
|
||||||
|
@ -26,8 +26,8 @@ import (
|
|||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -23,12 +23,11 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/digitalocean/godo"
|
"github.com/digitalocean/godo"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
type mockDigitalOceanInterface interface {
|
type mockDigitalOceanInterface interface {
|
||||||
|
@ -24,9 +24,10 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/dnsimple/dnsimple-go/dnsimple"
|
"github.com/dnsimple/dnsimple-go/dnsimple"
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
const dnsimpleRecordTTL = 3600 // Default TTL of 1 hour if not set (DNSimple's default)
|
const dnsimpleRecordTTL = 3600 // Default TTL of 1 hour if not set (DNSimple's default)
|
||||||
|
@ -25,11 +25,12 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/dnsimple/dnsimple-go/dnsimple"
|
"github.com/dnsimple/dnsimple-go/dnsimple"
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/mock"
|
"github.com/stretchr/testify/mock"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
var mockProvider dnsimpleProvider
|
var mockProvider dnsimpleProvider
|
||||||
|
@ -29,8 +29,8 @@ import (
|
|||||||
"github.com/nesv/go-dynect/dynect"
|
"github.com/nesv/go-dynect/dynect"
|
||||||
"github.com/sanyu/dynectsoap/dynectsoap"
|
"github.com/sanyu/dynectsoap/dynectsoap"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -24,7 +24,7 @@ import (
|
|||||||
"github.com/nesv/go-dynect/dynect"
|
"github.com/nesv/go-dynect/dynect"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDynMerge_NoUpdateOnTTL0Changes(t *testing.T) {
|
func TestDynMerge_NoUpdateOnTTL0Changes(t *testing.T) {
|
||||||
|
@ -21,9 +21,10 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/exoscale/egoscale"
|
"github.com/exoscale/egoscale"
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
// EgoscaleClientI for replaceable implementation
|
// EgoscaleClientI for replaceable implementation
|
||||||
|
@ -22,9 +22,10 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/exoscale/egoscale"
|
"github.com/exoscale/egoscale"
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
type createRecordExoscale struct {
|
type createRecordExoscale struct {
|
||||||
|
@ -26,17 +26,14 @@ import (
|
|||||||
"cloud.google.com/go/compute/metadata"
|
"cloud.google.com/go/compute/metadata"
|
||||||
"github.com/linki/instrumented_http"
|
"github.com/linki/instrumented_http"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
dns "google.golang.org/api/dns/v1"
|
|
||||||
|
|
||||||
"golang.org/x/net/context"
|
"golang.org/x/net/context"
|
||||||
"golang.org/x/oauth2/google"
|
"golang.org/x/oauth2/google"
|
||||||
|
dns "google.golang.org/api/dns/v1"
|
||||||
googleapi "google.golang.org/api/googleapi"
|
googleapi "google.golang.org/api/googleapi"
|
||||||
"google.golang.org/api/option"
|
"google.golang.org/api/option"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -23,17 +23,14 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
dns "google.golang.org/api/dns/v1"
|
|
||||||
|
|
||||||
"golang.org/x/net/context"
|
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
|
|
||||||
"google.golang.org/api/googleapi"
|
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
"golang.org/x/net/context"
|
||||||
|
dns "google.golang.org/api/dns/v1"
|
||||||
|
"google.golang.org/api/googleapi"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -25,9 +25,10 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
ibclient "github.com/infobloxopen/infoblox-go-client"
|
ibclient "github.com/infobloxopen/infoblox-go-client"
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
// InfobloxConfig clarifies the method signature
|
// InfobloxConfig clarifies the method signature
|
||||||
|
@ -25,9 +25,10 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
ibclient "github.com/infobloxopen/infoblox-go-client"
|
ibclient "github.com/infobloxopen/infoblox-go-client"
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
type mockIBConnector struct {
|
type mockIBConnector struct {
|
||||||
|
@ -23,8 +23,8 @@ import (
|
|||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -20,12 +20,12 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/internal/testutils"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/internal/testutils"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -22,15 +22,14 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/linode/linodego"
|
"github.com/linode/linodego"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
|
|
||||||
"strings"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// LinodeDomainClient interface to ease testing
|
// LinodeDomainClient interface to ease testing
|
||||||
|
@ -21,12 +21,13 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
"github.com/linode/linodego"
|
"github.com/linode/linodego"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/mock"
|
"github.com/stretchr/testify/mock"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MockDomainClient struct {
|
type MockDomainClient struct {
|
||||||
|
@ -25,12 +25,11 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
api "gopkg.in/ns1/ns1-go.v2/rest"
|
api "gopkg.in/ns1/ns1-go.v2/rest"
|
||||||
"gopkg.in/ns1/ns1-go.v2/rest/model/dns"
|
"gopkg.in/ns1/ns1-go.v2/rest/model/dns"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -23,13 +23,14 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/mock"
|
"github.com/stretchr/testify/mock"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
api "gopkg.in/ns1/ns1-go.v2/rest"
|
api "gopkg.in/ns1/ns1-go.v2/rest"
|
||||||
"gopkg.in/ns1/ns1-go.v2/rest/model/dns"
|
"gopkg.in/ns1/ns1-go.v2/rest/model/dns"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MockNS1DomainClient struct {
|
type MockNS1DomainClient struct {
|
||||||
|
@ -27,8 +27,8 @@ import (
|
|||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
yaml "gopkg.in/yaml.v2"
|
yaml "gopkg.in/yaml.v2"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
const ociRecordTTL = 300
|
const ociRecordTTL = 300
|
||||||
|
@ -26,8 +26,8 @@ import (
|
|||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
type mockOCIDNSClient struct{}
|
type mockOCIDNSClient struct{}
|
||||||
|
@ -19,23 +19,22 @@ package provider
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
|
"crypto/tls"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"math"
|
"math"
|
||||||
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
pgo "github.com/ffledgling/pdns-go"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"crypto/tls"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"net"
|
"sigs.k8s.io/external-dns/pkg/tlsutils"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
pgo "github.com/ffledgling/pdns-go"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/pkg/tlsutils"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type pdnsChangeType string
|
type pdnsChangeType string
|
||||||
|
@ -19,17 +19,15 @@ package provider
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
//"fmt"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
pgo "github.com/ffledgling/pdns-go"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
|
|
||||||
pgo "github.com/ffledgling/pdns-go"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// FIXME: What do we do about labels?
|
// FIXME: What do we do about labels?
|
||||||
|
@ -21,8 +21,8 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Provider defines the interface DNS providers should implement.
|
// Provider defines the interface DNS providers should implement.
|
||||||
|
@ -23,10 +23,11 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
rc0 "github.com/nic-at/rc0go"
|
rc0 "github.com/nic-at/rc0go"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RcodeZeroProvider implements the DNS provider for RcodeZero Anycast DNS.
|
// RcodeZeroProvider implements the DNS provider for RcodeZero Anycast DNS.
|
||||||
|
@ -22,10 +22,11 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
rc0 "github.com/nic-at/rc0go"
|
rc0 "github.com/nic-at/rc0go"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -29,13 +29,12 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
|
||||||
|
|
||||||
"github.com/coreos/etcd/clientv3"
|
"github.com/coreos/etcd/clientv3"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -27,8 +27,8 @@ import (
|
|||||||
"github.com/coreos/etcd/mvcc/mvccpb"
|
"github.com/coreos/etcd/mvcc/mvccpb"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
type fakeEtcdv3Client struct {
|
type fakeEtcdv3Client struct {
|
||||||
|
@ -28,8 +28,8 @@ import (
|
|||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
// rfc2136 provider type
|
// rfc2136 provider type
|
||||||
|
@ -21,11 +21,12 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
"github.com/miekg/dns"
|
"github.com/miekg/dns"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
type rfc2136Stub struct {
|
type rfc2136Stub struct {
|
||||||
|
@ -6,11 +6,12 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"github.com/transip/gotransip"
|
"github.com/transip/gotransip"
|
||||||
transip "github.com/transip/gotransip/domain"
|
transip "github.com/transip/gotransip/domain"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -3,9 +3,10 @@ package provider
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
transip "github.com/transip/gotransip/domain"
|
transip "github.com/transip/gotransip/domain"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestTransIPDnsEntriesAreEqual(t *testing.T) {
|
func TestTransIPDnsEntriesAreEqual(t *testing.T) {
|
||||||
|
@ -22,10 +22,11 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"github.com/vinyldns/go-vinyldns/vinyldns"
|
"github.com/vinyldns/go-vinyldns/vinyldns"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -22,11 +22,12 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/mock"
|
"github.com/stretchr/testify/mock"
|
||||||
"github.com/vinyldns/go-vinyldns/vinyldns"
|
"github.com/vinyldns/go-vinyldns/vinyldns"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
type mockVinyldnsZoneInterface struct {
|
type mockVinyldnsZoneInterface struct {
|
||||||
|
@ -20,9 +20,9 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
"github.com/kubernetes-sigs/external-dns/provider"
|
"sigs.k8s.io/external-dns/provider"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AWSSDRegistry implements registry interface with ownership information associated via the Description field of SD Service
|
// AWSSDRegistry implements registry interface with ownership information associated via the Description field of SD Service
|
||||||
|
@ -20,11 +20,12 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/internal/testutils"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/internal/testutils"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
type inMemoryProvider struct {
|
type inMemoryProvider struct {
|
||||||
|
@ -19,9 +19,9 @@ package registry
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
"sigs.k8s.io/external-dns/plan"
|
||||||
"github.com/kubernetes-sigs/external-dns/provider"
|
"sigs.k8s.io/external-dns/provider"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NoopRegistry implements registry interface without ownership directly propagating changes to dns provider
|
// NoopRegistry implements registry interface without ownership directly propagating changes to dns provider
|
||||||
|
@ -20,13 +20,13 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/internal/testutils"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/provider"
|
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/internal/testutils"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
|
"sigs.k8s.io/external-dns/provider"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ Registry = &NoopRegistry{}
|
var _ Registry = &NoopRegistry{}
|
||||||
|
@ -19,9 +19,10 @@ package registry
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Registry is an interface which should enables ownership concept in external-dns
|
// Registry is an interface which should enables ownership concept in external-dns
|
||||||
|
@ -19,15 +19,15 @@ package registry
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"time"
|
|
||||||
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/provider"
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
|
"sigs.k8s.io/external-dns/provider"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TXTRegistry implements registry interface with ownership implemented via associated TXT records
|
// TXTRegistry implements registry interface with ownership implemented via associated TXT records
|
||||||
|
@ -22,13 +22,13 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/internal/testutils"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/plan"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/provider"
|
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/internal/testutils"
|
||||||
|
"sigs.k8s.io/external-dns/plan"
|
||||||
|
"sigs.k8s.io/external-dns/provider"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -20,7 +20,8 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
cfclient "github.com/cloudfoundry-community/go-cfclient"
|
cfclient "github.com/cloudfoundry-community/go-cfclient"
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
type cloudfoundrySource struct {
|
type cloudfoundrySource struct {
|
||||||
|
@ -19,8 +19,9 @@ package source
|
|||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -21,8 +21,9 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -21,9 +21,10 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ConnectorSuite struct {
|
type ConnectorSuite struct {
|
||||||
|
@ -21,7 +21,6 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
"k8s.io/apimachinery/pkg/runtime"
|
||||||
@ -30,6 +29,8 @@ import (
|
|||||||
"k8s.io/client-go/kubernetes"
|
"k8s.io/client-go/kubernetes"
|
||||||
"k8s.io/client-go/rest"
|
"k8s.io/client-go/rest"
|
||||||
"k8s.io/client-go/tools/clientcmd"
|
"k8s.io/client-go/tools/clientcmd"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
// crdSource is an implementation of Source that provides endpoints by listing
|
// crdSource is an implementation of Source that provides endpoints by listing
|
||||||
|
@ -26,7 +26,6 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
@ -35,6 +34,8 @@ import (
|
|||||||
"k8s.io/apimachinery/pkg/runtime/serializer"
|
"k8s.io/apimachinery/pkg/runtime/serializer"
|
||||||
"k8s.io/client-go/rest"
|
"k8s.io/client-go/rest"
|
||||||
"k8s.io/client-go/rest/fake"
|
"k8s.io/client-go/rest/fake"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CRDSuite struct {
|
type CRDSuite struct {
|
||||||
|
@ -19,7 +19,7 @@ package source
|
|||||||
import (
|
import (
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
// dedupSource is a Source that removes duplicate endpoints from its wrapped source.
|
// dedupSource is a Source that removes duplicate endpoints from its wrapped source.
|
||||||
|
@ -19,8 +19,8 @@ package source
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
"github.com/kubernetes-sigs/external-dns/internal/testutils"
|
"sigs.k8s.io/external-dns/internal/testutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Validates that dedupSource is a Source
|
// Validates that dedupSource is a Source
|
||||||
|
@ -16,7 +16,7 @@ limitations under the License.
|
|||||||
|
|
||||||
package source
|
package source
|
||||||
|
|
||||||
import "github.com/kubernetes-sigs/external-dns/endpoint"
|
import "sigs.k8s.io/external-dns/endpoint"
|
||||||
|
|
||||||
// emptySource is a Source that returns no endpoints.
|
// emptySource is a Source that returns no endpoints.
|
||||||
type emptySource struct{}
|
type emptySource struct{}
|
||||||
|
@ -26,7 +26,7 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
// fakeSource is an implementation of Source that provides dummy endpoints for
|
// fakeSource is an implementation of Source that provides dummy endpoints for
|
||||||
|
@ -21,7 +21,7 @@ import (
|
|||||||
"regexp"
|
"regexp"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
func generateTestEndpoints() []*endpoint.Endpoint {
|
func generateTestEndpoints() []*endpoint.Endpoint {
|
||||||
|
@ -24,20 +24,18 @@ import (
|
|||||||
"text/template"
|
"text/template"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
kubeinformers "k8s.io/client-go/informers"
|
|
||||||
coreinformers "k8s.io/client-go/informers/core/v1"
|
|
||||||
"k8s.io/client-go/tools/cache"
|
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
istionetworking "istio.io/api/networking/v1alpha3"
|
istionetworking "istio.io/api/networking/v1alpha3"
|
||||||
istiomodel "istio.io/istio/pilot/pkg/model"
|
istiomodel "istio.io/istio/pilot/pkg/model"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
"k8s.io/apimachinery/pkg/labels"
|
"k8s.io/apimachinery/pkg/labels"
|
||||||
"k8s.io/apimachinery/pkg/util/wait"
|
"k8s.io/apimachinery/pkg/util/wait"
|
||||||
|
kubeinformers "k8s.io/client-go/informers"
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
coreinformers "k8s.io/client-go/informers/core/v1"
|
||||||
"k8s.io/client-go/kubernetes"
|
"k8s.io/client-go/kubernetes"
|
||||||
|
"k8s.io/client-go/tools/cache"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
// gatewaySource is an implementation of Source for Istio Gateway objects.
|
// gatewaySource is an implementation of Source for Istio Gateway objects.
|
||||||
|
@ -17,23 +17,21 @@ limitations under the License.
|
|||||||
package source
|
package source
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
|
||||||
|
|
||||||
istionetworking "istio.io/api/networking/v1alpha3"
|
|
||||||
istiomodel "istio.io/istio/pilot/pkg/model"
|
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"sync"
|
"sync"
|
||||||
|
"testing"
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
|
istionetworking "istio.io/api/networking/v1alpha3"
|
||||||
|
istiomodel "istio.io/istio/pilot/pkg/model"
|
||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
"k8s.io/client-go/kubernetes/fake"
|
"k8s.io/client-go/kubernetes/fake"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
// This is a compile-time validation that gatewaySource is a Source.
|
// This is a compile-time validation that gatewaySource is a Source.
|
||||||
|
@ -22,10 +22,8 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"k8s.io/api/extensions/v1beta1"
|
"k8s.io/api/extensions/v1beta1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
@ -35,6 +33,8 @@ import (
|
|||||||
extinformers "k8s.io/client-go/informers/extensions/v1beta1"
|
extinformers "k8s.io/client-go/informers/extensions/v1beta1"
|
||||||
"k8s.io/client-go/kubernetes"
|
"k8s.io/client-go/kubernetes"
|
||||||
"k8s.io/client-go/tools/cache"
|
"k8s.io/client-go/tools/cache"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -20,17 +20,16 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/stretchr/testify/assert"
|
||||||
|
"github.com/stretchr/testify/require"
|
||||||
|
"github.com/stretchr/testify/suite"
|
||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
"k8s.io/api/extensions/v1beta1"
|
"k8s.io/api/extensions/v1beta1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
"k8s.io/apimachinery/pkg/util/wait"
|
"k8s.io/apimachinery/pkg/util/wait"
|
||||||
"k8s.io/client-go/kubernetes/fake"
|
"k8s.io/client-go/kubernetes/fake"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
|
||||||
"github.com/stretchr/testify/require"
|
|
||||||
"github.com/stretchr/testify/suite"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Validates that ingressSource is a Source
|
// Validates that ingressSource is a Source
|
||||||
|
@ -28,7 +28,6 @@ import (
|
|||||||
contour "github.com/heptio/contour/apis/generated/clientset/versioned"
|
contour "github.com/heptio/contour/apis/generated/clientset/versioned"
|
||||||
contourinformers "github.com/heptio/contour/apis/generated/informers/externalversions"
|
contourinformers "github.com/heptio/contour/apis/generated/informers/externalversions"
|
||||||
extinformers "github.com/heptio/contour/apis/generated/informers/externalversions/contour/v1beta1"
|
extinformers "github.com/heptio/contour/apis/generated/informers/externalversions/contour/v1beta1"
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
@ -36,6 +35,8 @@ import (
|
|||||||
"k8s.io/apimachinery/pkg/util/wait"
|
"k8s.io/apimachinery/pkg/util/wait"
|
||||||
"k8s.io/client-go/kubernetes"
|
"k8s.io/client-go/kubernetes"
|
||||||
"k8s.io/client-go/tools/cache"
|
"k8s.io/client-go/tools/cache"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ingressRouteSource is an implementation of Source for Heptio Contour IngressRoute objects.
|
// ingressRouteSource is an implementation of Source for Heptio Contour IngressRoute objects.
|
||||||
|
@ -29,7 +29,7 @@ import (
|
|||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
fakeKube "k8s.io/client-go/kubernetes/fake"
|
fakeKube "k8s.io/client-go/kubernetes/fake"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
// This is a compile-time validation that ingressRouteSource is a Source.
|
// This is a compile-time validation that ingressRouteSource is a Source.
|
||||||
|
@ -16,7 +16,7 @@ limitations under the License.
|
|||||||
|
|
||||||
package source
|
package source
|
||||||
|
|
||||||
import "github.com/kubernetes-sigs/external-dns/endpoint"
|
import "sigs.k8s.io/external-dns/endpoint"
|
||||||
|
|
||||||
// multiSource is a Source that merges the endpoints of its nested Sources.
|
// multiSource is a Source that merges the endpoints of its nested Sources.
|
||||||
type multiSource struct {
|
type multiSource struct {
|
||||||
|
@ -20,11 +20,11 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/kubernetes-sigs/external-dns/internal/testutils"
|
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
"sigs.k8s.io/external-dns/internal/testutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestMultiSource(t *testing.T) {
|
func TestMultiSource(t *testing.T) {
|
||||||
|
@ -33,7 +33,7 @@ import (
|
|||||||
"k8s.io/client-go/kubernetes"
|
"k8s.io/client-go/kubernetes"
|
||||||
"k8s.io/client-go/tools/cache"
|
"k8s.io/client-go/tools/cache"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
type nodeSource struct {
|
type nodeSource struct {
|
||||||
|
@ -3,12 +3,13 @@ package source
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
"k8s.io/client-go/kubernetes/fake"
|
"k8s.io/client-go/kubernetes/fake"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNodeSource(t *testing.T) {
|
func TestNodeSource(t *testing.T) {
|
||||||
|
@ -22,22 +22,19 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
"time"
|
||||||
kubeinformers "k8s.io/client-go/informers"
|
|
||||||
coreinformers "k8s.io/client-go/informers/core/v1"
|
|
||||||
"k8s.io/client-go/tools/cache"
|
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
"k8s.io/apimachinery/pkg/labels"
|
"k8s.io/apimachinery/pkg/labels"
|
||||||
"k8s.io/apimachinery/pkg/util/wait"
|
"k8s.io/apimachinery/pkg/util/wait"
|
||||||
|
kubeinformers "k8s.io/client-go/informers"
|
||||||
|
coreinformers "k8s.io/client-go/informers/core/v1"
|
||||||
"k8s.io/client-go/kubernetes"
|
"k8s.io/client-go/kubernetes"
|
||||||
|
"k8s.io/client-go/tools/cache"
|
||||||
|
|
||||||
"time"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -21,17 +21,15 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"k8s.io/apimachinery/pkg/util/wait"
|
|
||||||
|
|
||||||
v1 "k8s.io/api/core/v1"
|
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
"k8s.io/client-go/kubernetes/fake"
|
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
|
v1 "k8s.io/api/core/v1"
|
||||||
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
"k8s.io/apimachinery/pkg/util/wait"
|
||||||
|
"k8s.io/client-go/kubernetes/fake"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ServiceSuite struct {
|
type ServiceSuite struct {
|
||||||
|
@ -21,7 +21,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
// test helper functions
|
// test helper functions
|
||||||
|
@ -23,7 +23,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -20,8 +20,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/kubernetes-sigs/external-dns/endpoint"
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
||||||
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetTTLFromAnnotations(t *testing.T) {
|
func TestGetTTLFromAnnotations(t *testing.T) {
|
||||||
|
@ -21,9 +21,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
|
||||||
|
|
||||||
"sync"
|
"sync"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/cloudfoundry-community/go-cfclient"
|
"github.com/cloudfoundry-community/go-cfclient"
|
||||||
contour "github.com/heptio/contour/apis/generated/clientset/versioned"
|
contour "github.com/heptio/contour/apis/generated/clientset/versioned"
|
||||||
|
Loading…
Reference in New Issue
Block a user