Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Coredns
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
Coredns
Commits
8bbfa192
Commit
8bbfa192
authored
Mar 31, 2020
by
Zou Nengren
Committed by
GitHub
Mar 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove federation (#3794)
Signed-off-by:
zounengren
<
zounengren@cmss.chinamobile.com
>
parent
021f7612
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
0 additions
and
63 deletions
+0
-63
core/dnsserver/zdirectives.go
core/dnsserver/zdirectives.go
+0
-1
core/plugin/zplugin.go
core/plugin/zplugin.go
+0
-1
go.mod
go.mod
+0
-1
go.sum
go.sum
+0
-2
man/coredns-kubernetes.7
man/coredns-kubernetes.7
+0
-20
plugin.cfg
plugin.cfg
+0
-1
plugin/kubernetes/README.md
plugin/kubernetes/README.md
+0
-14
plugin/kubernetes/local.go
plugin/kubernetes/local.go
+0
-21
plugin/kubernetes/parse.go
plugin/kubernetes/parse.go
+0
-2
No files found.
core/dnsserver/zdirectives.go
View file @
8bbfa192
...
...
@@ -42,7 +42,6 @@ var Directives = []string{
"route53"
,
"azure"
,
"clouddns"
,
"federation"
,
"k8s_external"
,
"kubernetes"
,
"file"
,
...
...
core/plugin/zplugin.go
View file @
8bbfa192
...
...
@@ -49,5 +49,4 @@ import (
_
"github.com/coredns/coredns/plugin/trace"
_
"github.com/coredns/coredns/plugin/transfer"
_
"github.com/coredns/coredns/plugin/whoami"
_
"github.com/coredns/federation"
)
go.mod
View file @
8bbfa192
...
...
@@ -13,7 +13,6 @@ require (
github.com/aws/aws-sdk-go v1.29.34
github.com/caddyserver/caddy v1.0.5
github.com/cenkalti/backoff/v4 v4.0.0
github.com/coredns/federation v0.0.0-20190818181423-e032b096babe
github.com/dnstap/golang-dnstap v0.0.0-20170829151710-2cf77a2b5e11
github.com/farsightsec/golang-framestream v0.0.0-20181102145529-8a0cb8ba8710
github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef // indirect
...
...
go.sum
View file @
8bbfa192
...
...
@@ -91,8 +91,6 @@ github.com/cloudflare/cloudflare-go v0.10.2/go.mod h1:qhVI5MKwBGhdNU89ZRz2plgYut
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa h1:OaNxuTZr7kxeODyLWsRMC+OD03aFUH+mW6r2d+MWa5Y=
github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8=
github.com/coredns/federation v0.0.0-20190818181423-e032b096babe h1:ND08lR/TclI9W4dScCwdRESOacCCdF3FkuB5pBIOv1U=
github.com/coredns/federation v0.0.0-20190818181423-e032b096babe/go.mod h1:MoqTEFX8GlnKkyq8eBCF94VzkNAOgjdlCJ+Pz/oCLPk=
github.com/coreos/go-semver v0.2.0 h1:3Jm3tLmsgAYcjC+4Up7hJrFBPr+n7rAqYeSw/SZazuY=
github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
github.com/coreos/go-systemd/v22 v22.0.0 h1:XJIw/+VlJ+87J+doOxznsAWIdmWuViOVhkQamW5YV28=
...
...
man/coredns-kubernetes.7
View file @
8bbfa192
...
...
@@ -257,26 +257,6 @@ cluster.local {
.fi
.RE
.SH "FEDERATION"
.PP
The \fIkubernetes\fP plugin can be used in conjunction with the \fIfederation\fP plugin. Using this
feature enables serving federated domains from the Kubernetes clusters.
.PP
.RS
.nf
cluster.local {
federation {
prod prod.example.org
staging staging.example.org
}
kubernetes
}
.fi
.RE
.SH "WILDCARDS"
.PP
Some query labels accept a wildcard value to match any value. If a label is a valid wildcard (*,
...
...
plugin.cfg
View file @
8bbfa192
...
...
@@ -51,7 +51,6 @@ hosts:hosts
route53:route53
azure:azure
clouddns:clouddns
federation:github.com/coredns/federation
k8s_external:k8s_external
kubernetes:kubernetes
file:file
...
...
plugin/kubernetes/README.md
View file @
8bbfa192
...
...
@@ -182,20 +182,6 @@ be set to `verified` for this to function properly.
}
}
## Federation
The
*kubernetes*
plugin can be used in conjunction with the
*federation*
plugin. Using this
feature enables serving federated domains from the Kubernetes clusters.
cluster.local {
federation {
prod prod.example.org
staging staging.example.org
}
kubernetes
}
## Wildcards
Some query labels accept a wildcard value to match any value. If a label is a valid wildcard (
\*
,
...
...
plugin/kubernetes/local.go
View file @
8bbfa192
...
...
@@ -35,24 +35,3 @@ func boundIPs(c *caddy.Controller) (ips []net.IP) {
}
return
ips
}
// LocalNodeName is exclusively used in federation plugin, will be deprecated later.
func
(
k
*
Kubernetes
)
LocalNodeName
()
string
{
if
len
(
k
.
localIPs
)
==
0
{
return
""
}
// Find fist endpoint matching any localIP
for
_
,
localIP
:=
range
k
.
localIPs
{
for
_
,
ep
:=
range
k
.
APIConn
.
EpIndexReverse
(
localIP
.
String
())
{
for
_
,
eps
:=
range
ep
.
Subsets
{
for
_
,
addr
:=
range
eps
.
Addresses
{
if
localIP
.
Equal
(
net
.
ParseIP
(
addr
.
IP
))
{
return
addr
.
NodeName
}
}
}
}
}
return
""
}
plugin/kubernetes/parse.go
View file @
8bbfa192
...
...
@@ -29,8 +29,6 @@ func parseRequest(name, zone string) (r recordRequest, err error) {
// 1. _port._protocol.service.namespace.pod|svc.zone
// 2. (endpoint): endpoint.service.namespace.pod|svc.zone
// 3. (service): service.namespace.pod|svc.zone
//
// Federations are handled in the federation plugin. And aren't parsed here.
base
,
_
:=
dnsutil
.
TrimZone
(
name
,
zone
)
// return NODATA for apex queries
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment