aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-12-13Drop obsolete client-go auth plugins (#5806)Gravatar Stephen Kitt 1-3/+1
* Drop obsolete client-go auth plugins The OpenStack plugin is no longer available, even in version 0.24.4 of client-go; see https://github.com/kubernetes/client-go/blob/v0.24.4/plugin/pkg/client/auth/openstack/openstack_stub.go It is replaced by the client-keystone-auth credential plugin. The plugin has been entirely removed in client-go 0.26.0, which breaks the build when any other dependency pulls in client-go 0.26.0 or later. The GCP plugin is deprecated in K8s 1.22+ and unavailable in 1.26+ (although it is still stubbed in client-go 0.26.0). Is it replaced by the gke-gcloud-auth-plugin credential plugin. Signed-off-by: Stephen Kitt <skitt@redhat.com> * Update plugin/kubernetes/setup.go Signed-off-by: Stephen Kitt <skitt@redhat.com> Co-authored-by: Chris O'Haver <cohaver@infoblox.com>
2022-12-13plugin/kubernetes: error NXDOMAIN for TXT lookups (#5737)Gravatar LAMRobinson 2-5/+29
plugin/kubernetes: fix NXDOMAIN/NOERROR responses for TXT queries Signed-off-by: Laurence Robinson <laurence_robinson@live.co.uk> Co-authored-by: Laurence Robinson <laurence.robinson@deshaw.com>
2022-11-04dont match external services when endpoint is specified (#5734)Gravatar Chris O'Haver 2-8/+20
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-10-20plugin/k8s_external: Fix rcode for headless services (#5657)Gravatar Miciah Dashiel Butler Masters 2-6/+6
Signed-off-by: Miciah Masters <miciah.masters@gmail.com> Signed-off-by: Miciah Masters <miciah.masters@gmail.com>
2022-09-05auto go fmtGravatar coredns[bot] 1-1/+1
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
2022-08-30plugin/k8s_external: Resolve headless services (#5505)Gravatar TomasKohout 6-48/+264
*add option for resolving headless Services without external IPs in k8s_external Signed-off-by: Tomas Kohout <tomas.kohout1995@gmail.com>
2022-08-30chore: remove duplicate word in comments (#5592)Gravatar Abirdcfly 1-1/+1
* chore: remove duplicate word in comments Signed-off-by: Abirdcfly <fp544037857@gmail.com> * auto go mod tidy Signed-off-by: coredns[bot] <bot@bot.coredns.io> Signed-off-by: Abirdcfly <fp544037857@gmail.com> Signed-off-by: coredns[bot] <bot@bot.coredns.io> Co-authored-by: coredns[bot] <bot@bot.coredns.io>
2022-07-10add golangci-lint linter (#5499)Gravatar Ondřej Benkovský 15-24/+0
2022-07-06plugin/k8s_external: Add support for PTR requests (#5435)Gravatar Chris O'Haver 7-34/+100
* Exclude External IP addresses from being added to the existing kubernetes' plugin IP->Service index * Add support for PTR requests on External IPs of Services to the k8s_external plugin Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-06-26plugin/kubernetes : make kubernetes client log in CoreDNS format (#5461)Gravatar Ondřej Benkovský 2-2/+40
Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>
2022-05-04Bump Kubernetes to 1.24 (#5364)Gravatar Lorenz Brun 1-4/+4
Signed-off-by: Lorenz Brun <lorenz@monogon.tech>
2022-05-03fix k8s start up timeout ticker (#5361)Gravatar Chris O'Haver 1-2/+0
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-03-07plugin/k8s_external: fix external nsAddrs when CoreDNS Service has no ↵Gravatar Chris O'Haver 2-21/+58
External IPs (#4891) fix external nsAddrs; add tests; Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-03-07plugin/k8s_external: implement zone transfers (#4977)Gravatar Chris O'Haver 9-13/+175
Implement transfer for k8s_external. Notifies not supported. Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-03-03use tickers instead of time.After to avoid memory leak (#5220)Gravatar Chris O'Haver 1-7/+13
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-02-22plugin/etcd+kubernetes: Persist truncated state to client if CNAME lookup ↵Gravatar Chris O'Haver 3-90/+170
response is truncated (#4715) Persist the TC bit to client response for truncated CNAME lookups. Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-02-22kubernetes: log server start delay and api connection failures (#5044)Gravatar Chris O'Haver 1-0/+14
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-02-22Replace deprecated NewDeltaFIFO with NewDeltaFIFOWithOptions (#5200)Gravatar Yong Tang 1-1/+1
Replace deprecated `cache.NewDeltaFIFO` Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2022-02-14auto go fmtGravatar coredns[bot] 2-4/+2
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
2022-02-09Revert "add wildcard warnings (#5030)" (#5167)Gravatar Chris O'Haver 3-33/+0
This reverts commit 744468ea78e278bb59c1e50673ff5028ebea539c.
2022-02-09dont panic on empty SRV segments (#5173)Gravatar Chris O'Haver 2-0/+5
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-02-09remove wildcard query functionality (#5019)Gravatar Chris O'Haver 9-178/+30
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-12-17add wildcard query deprection notice to kubernetes readme (#5045)Gravatar Chris O'Haver 1-0/+2
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-12-09add wildcard warnings (#5030)Gravatar Chris O'Haver 3-0/+33
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-12-01plugin/kubernetes: clean code (#5017)Gravatar xuweiwei 1-5/+5
Signed-off-by: xuweiwei <xuweiwei_yewu@cmss.chinamobile.com>
2021-11-19cleanup some code (#4989)Gravatar xuweiwei 1-4/+1
Automatically submitted.
2021-10-06plugin/kubernetes: Don't use pod names longer than 63 characters as dns ↵Gravatar Chris O'Haver 2-3/+5
labels (#4908) Automatically submitted.
2021-09-22plugin/kubernetes: fix reload panic (#4881)Gravatar Chris O'Haver 1-1/+1
* fix reload panic Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * add comment Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * o import ordering Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-08-13plugin/kubernetes: Only answer transfer requests for authoritative zones (#4802)Gravatar Chris O'Haver 2-0/+21
* check for zone match Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-08-03plugins/kubernetes: Switch to klog/v2 (#4778)Gravatar Manuel Rüger 1-1/+2
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2021-08-02auto go fmtGravatar coredns[bot] 1-2/+2
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
2021-07-29kubernetes: Improve namespace usage (#4767)Gravatar Mat Lowery 8-41/+97
* Use GetByKey instead of List in GetNamespaceByName. * Add ToNamespace to reduce memory for namespace cache. Signed-off-by: Mat Lowery <mlowery@ebay.com>
2021-07-14Fix typo on kubernetes plugin (#4753)Gravatar Jeongwook Park 1-6/+6
- modifed -> modified Signed-off-by: jeongwook-park <jeongwook.park@navercorp.com>
2021-06-24Correct newdnsController's documented function signature (#4717)Gravatar mfleader 1-1/+1
Signed-off-by: mleader <mleader@redhat.com>
2021-06-14Add NS+hosts records to xfr response. Add coredns service to test data. (#4696)Gravatar Chris O'Haver 3-3/+49
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-05-27plugin/kubernetes: consistently choose EndpointSlices or Endpoints for ↵Gravatar uesyn 1-13/+23
unstable API (#4647) * confirm endpointslices is served or not Signed-off-by: uesyn <suemura@zlab.co.jp> * Apply suggestions Signed-off-by: uesyn <suemura@zlab.co.jp>
2021-05-17reverse zone: fix Normalize (#4621)Gravatar Miek Gieben 2-49/+1
Make normalize return multiple "hosts" (= reverse zones) when a non-octet boundary cidr is given. Added pkg/cidr package that holds the cidr calculation routines; felt they didn't really fit dnsutil. This change means the IPNet return parameter isn't needed, the hosts are all correct. The tests that tests this is also removed: TestSplitHostPortReverse The fallout was that zoneAddr _also_ doesn't need the IPNet member, that in turn make it visible that zoneAddr in address.go duplicated a bunch of stuff from register.go; removed/refactored that too. Created a plugin.OriginsFromArgsOrServerBlock to help plugins do the right things, by consuming ZONE arguments; this now expands reverse zones correctly. This is mostly mechanical. Remove the reverse test in plugin/kubernetes which is a copy-paste from a core test (which has since been fixed). Remove MustNormalize as it has no plugin users. This change is not backwards compatible to plugins that have a ZONE argument that they parse in the setup util. All in-tree plugins have been updated. Signed-off-by: Miek Gieben <miek@miek.nl>
2021-05-17consider nil ready as ready (#4632)Gravatar Chris O'Haver 1-2/+11
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-05-10copy unready exclusion to v1beta1 func (#4616)Gravatar Chris O'Haver 1-0/+3
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-05-10plugin/kubernetes: Support both v1 and v1beta1 EndpointSlices (#4570)Gravatar Chris O'Haver 3-12/+106
* support v1 and v1beta1 endpointslice Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * update comments Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-05-04plugin/kubernetes: fix SOA response for non-apex queries (#4592)Gravatar Chris O'Haver 3-2/+17
* fix SOA response for non-apex queries Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * handle mixed case Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * do full string compare Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-05-04collect endpoint node name from endopintslices (#4581)Gravatar Chris O'Haver 1-1/+3
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-04-27exclude unready endpoints from endpointslices (#4580)Gravatar Chris O'Haver 1-0/+3
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-03-26plugin/kubernetes: do endpoint/slice check in retry loop (#4492)Gravatar Chris O'Haver 4-73/+140
* do endpoint/slice check in retry loop Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-03-09transfer: reply with refused (#4510)Gravatar Miek Gieben 1-0/+2
* transfer: reply with refused When the *transfer* plugin is not loaded and of the handlers will still see the AXFR/IXFR request because it is not intercepted. They need to reply with REFUSED in that case. Update file, auto and k8s to do this. Add testcase in the file plugin. Ideally *erratic* should be moved over as well, but maybe that's *erratic* This is a bug fix. Signed-off-by: Miek Gieben <miek@miek.nl> * import path Signed-off-by: Miek Gieben <miek@miek.nl>
2021-02-25plugin/kubernetes: don't return when ServerVersion return an error (#4490)Gravatar Miek Gieben 1-9/+8
When err=nil try to determine the version of the k8s cluster and disable endpoint slices. Don't return from connecting to the cluster. In the future we should just default to true, and delete all this code. Signed-off-by: Miek Gieben <miek@miek.nl>
2021-02-09make kubernetes plugin kubeconfig argument 'context' optional (#4451)Gravatar Jun Chen 3-9/+28
Signed-off-by: answer1991 <answer1991.chen@gmail.com>
2021-01-26Corrected detection of K8s minor version (#4430)Gravatar Lars Ekman 1-1/+1
Fixes #4428 Signed-off-by: Lars Ekman <lars.g.ekman@est.tech>
2021-01-24Fix import ordering presubmit test (#4422)Gravatar Miek Gieben 1-0/+1
Automatically submitted.
2021-01-06Fix golint issue caused by typo (#4365)Gravatar Guangwen Feng 1-1/+1
Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>