aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-03-11Enable Prometheus native histograms (#6524)Gravatar Ben Kochie 2-12/+15
Add a NativeHistogramBucketFactor parameter to the use of `NewHistogramVec` in order to enable use of Prometheus Native Histograms. This will store automatically computed sparse buckets in CoreDNS. If a compatible Prometeus requests native histograms this data will returned instead of the static buckets. The default factor of 1.05 should provide high quality resolution data. Signed-off-by: SuperQ <superq@gmail.com>
2024-03-07add client labels to k8s plugin metadata (#6475)Gravatar miles-to-go 5-5/+24
Signed-off-by: Nolan Miles <nolanpmiles@gmail.com>
2023-08-14fix: remove unnecessary conversion (#6258)Gravatar Zhizhen He 2-4/+4
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-08-10Fix typos (#6235)Gravatar Zhizhen He 1-1/+1
* Fix typos and add todo to fix spelling of dnsutil.MaximumDefaulTTL Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-06-26fix ports panic (#6179)Gravatar rokkiter 1-2/+13
Signed-off-by: rokkiter <101091030+rokkiter@users.noreply.github.com>
2023-06-19plugin/kubernetes: filter ExternalName services from matching double ↵Gravatar Dan Wilson 2-2/+10
subdomain wildcard (#6162) remove double subdomain reference from review feedback not subdoman Signed-off-by: emaildanwilson <dan@controlplane.com> Co-authored-by: emaildanwilson <dan@controlplane.com>
2023-06-12plugin/kubernetes: Remove Endpoint and EndpointSlice v1beta Support (#6147)Gravatar Chris O'Haver 4-276/+1
* remove endpoint and endpointslicev1beta watch support Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * adjust readme Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * informer object changes Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * remove unused funcs Signed-off-by: Chris O'Haver <cohaver@infoblox.com> --------- Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2023-06-09replace reviewdog fully by golangci-lint (#6139)Gravatar Ondřej Benkovský 1-1/+1
Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>
2023-06-07plugin/kubernetes: fix headless/endpoint query panics when endpoints are ↵Gravatar Chris O'Haver 2-50/+119
disabled (#6137) * always create listers, so we dont panic Signed-off-by: Chris O'Haver <cohaver@infoblox.com> --------- Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2023-04-25plugin/kubernetes: rename client-go metrics label "url" to "host" (#6040)Gravatar Yashpal 2-9/+9
2023-04-25fix some comments (#6052)Gravatar cui fliter 1-2/+2
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-04-22plugin/kubernetes: expose client-go internal request metrics (#5991)Gravatar Yashpal 2-0/+79
2023-04-20update informer for client-go 0.27 (#6038)Gravatar Chris O'Haver 3-7/+7
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
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>