mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 09:36:58 +02:00
remove kubernetes dependency
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
c88486e9c7
commit
376d4653d8
1
go.mod
1
go.mod
@ -70,7 +70,6 @@ require (
|
|||||||
k8s.io/api v0.18.8
|
k8s.io/api v0.18.8
|
||||||
k8s.io/apimachinery v0.18.8
|
k8s.io/apimachinery v0.18.8
|
||||||
k8s.io/client-go v0.18.8
|
k8s.io/client-go v0.18.8
|
||||||
k8s.io/kubernetes v1.13.0
|
|
||||||
)
|
)
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
|
@ -38,7 +38,6 @@ import (
|
|||||||
"k8s.io/client-go/kubernetes"
|
"k8s.io/client-go/kubernetes"
|
||||||
"k8s.io/client-go/kubernetes/scheme"
|
"k8s.io/client-go/kubernetes/scheme"
|
||||||
"k8s.io/client-go/tools/cache"
|
"k8s.io/client-go/tools/cache"
|
||||||
api "k8s.io/kubernetes/pkg/apis/core"
|
|
||||||
|
|
||||||
"sigs.k8s.io/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
@ -240,7 +239,7 @@ func parseAmbLoadBalancerService(service string) (namespace, name string, err er
|
|||||||
// If here, we have no separator, so the whole string is the service, and
|
// If here, we have no separator, so the whole string is the service, and
|
||||||
// we can assume the default namespace.
|
// we can assume the default namespace.
|
||||||
name := service
|
name := service
|
||||||
namespace := api.NamespaceDefault
|
namespace := "default"
|
||||||
|
|
||||||
return namespace, name, nil
|
return namespace, name, nil
|
||||||
} else if len(parts) == 2 {
|
} else if len(parts) == 2 {
|
||||||
|
Loading…
Reference in New Issue
Block a user