Chris O'Haver
f4f0d55dce
only create PTR records for endpoints with hostname defined ( #6898 )
...
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2024-09-30 10:32:13 -04:00
Manuel Rüger
ebbbb453be
kubernetes: Add useragent ( #6484 )
...
In kubernetes' audit logs you'll see:
"userAgent":"coredns/v0.0.0 (linux/amd64) kubernetes/$Format"
This change adds a userAgent to the requests made by CoreDNS against the kubernetes API:
"userAgent":"CoreDNS/v1.11.1 git_commit:ae2bbc29be1aaae0b3ded5d188968a6c97bb3144 (linux/amd64/go1.22)"
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2024-08-26 16:45:39 -04:00
Ben Kochie
0d6e113f90
Enable Prometheus native histograms ( #6524 )
...
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-11 16:09:09 -04:00
miles-to-go
92b7e658e3
add client labels to k8s plugin metadata ( #6475 )
...
Signed-off-by: Nolan Miles <nolanpmiles@gmail.com>
2024-03-07 14:34:09 -05:00
Zhizhen He
5de473da1c
fix: remove unnecessary conversion ( #6258 )
...
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-08-14 15:14:09 +02:00
Zhizhen He
2fe5890d8b
Fix typos ( #6235 )
...
* Fix typos and add todo to fix spelling of dnsutil.MaximumDefaulTTL
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-08-10 11:06:48 -04:00
rokkiter
6e1263d3d9
fix ports panic ( #6179 )
...
Signed-off-by: rokkiter <101091030+rokkiter@users.noreply.github.com>
2023-06-26 09:42:03 -04:00
Dan Wilson
5b5a6ac6ad
plugin/kubernetes: filter ExternalName services from matching double 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-19 08:42:17 -04:00
Chris O'Haver
06cd843918
plugin/kubernetes: Remove Endpoint and EndpointSlice v1beta Support ( #6147 )
...
* 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-12 08:22:57 -07:00
Ondřej Benkovský
8c489bd400
replace reviewdog fully by golangci-lint ( #6139 )
...
Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>
2023-06-09 18:08:23 +02:00
Chris O'Haver
6d3db023fe
plugin/kubernetes: fix headless/endpoint query panics when endpoints are 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-06-07 16:22:28 -04:00
Yashpal
1b95a6042d
plugin/kubernetes: rename client-go metrics label "url" to "host" ( #6040 )
2023-04-25 20:26:57 +02:00
cui fliter
ee3999303d
fix some comments ( #6052 )
...
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-04-25 11:25:07 -04:00
Yashpal
0862dd1cb5
plugin/kubernetes: expose client-go internal request metrics ( #5991 )
2023-04-22 18:38:49 +02:00
Chris O'Haver
68816a42a7
update informer for client-go 0.27 ( #6038 )
...
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2023-04-20 13:24:06 -04:00
Stephen Kitt
60b7161fee
Drop obsolete client-go auth plugins ( #5806 )
...
* 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-13 15:49:03 -05:00
LAMRobinson
c3228615e0
plugin/kubernetes: error NXDOMAIN for TXT lookups ( #5737 )
...
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-12-13 15:36:46 -05:00
Chris O'Haver
47c99dc73b
dont match external services when endpoint is specified ( #5734 )
...
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-11-04 09:54:57 -04:00
Miciah Dashiel Butler Masters
6cb5e10707
plugin/k8s_external: Fix rcode for headless services ( #5657 )
...
Signed-off-by: Miciah Masters <miciah.masters@gmail.com>
Signed-off-by: Miciah Masters <miciah.masters@gmail.com>
2022-10-20 16:30:12 -04:00
coredns[bot]
2fcc74b94e
auto go fmt
...
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
2022-09-05 10:29:36 +00:00
TomasKohout
6782b7fb42
plugin/k8s_external: Resolve headless services ( #5505 )
...
*add option for resolving headless Services without external IPs in k8s_external
Signed-off-by: Tomas Kohout <tomas.kohout1995@gmail.com>
2022-08-30 14:59:27 -04:00
Abirdcfly
b218b56063
chore: remove duplicate word in comments ( #5592 )
...
* 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-08-30 16:35:31 +02:00
Ondřej Benkovský
c2dbb7141a
add golangci-lint linter ( #5499 )
2022-07-10 11:06:33 -07:00
Chris O'Haver
e80d696502
plugin/k8s_external: Add support for PTR requests ( #5435 )
...
* 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-07-06 13:55:15 -04:00
Ondřej Benkovský
e0dead4aa2
plugin/kubernetes : make kubernetes client log in CoreDNS format ( #5461 )
...
Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>
2022-06-26 14:49:45 -07:00
Lorenz Brun
7a7b0a2b9b
Bump Kubernetes to 1.24 ( #5364 )
...
Signed-off-by: Lorenz Brun <lorenz@monogon.tech>
2022-05-04 13:38:21 -04:00
Chris O'Haver
c02cd52208
fix k8s start up timeout ticker ( #5361 )
...
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-05-03 10:06:36 -04:00
Chris O'Haver
3fe9d41a21
plugin/k8s_external: fix external nsAddrs when CoreDNS Service has no External IPs ( #4891 )
...
fix external nsAddrs; add tests;
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-03-07 12:18:23 -05:00
Chris O'Haver
7263808fe1
plugin/k8s_external: implement zone transfers ( #4977 )
...
Implement transfer for k8s_external. Notifies not supported.
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-03-07 12:16:24 -05:00
Chris O'Haver
967814161a
use tickers instead of time.After to avoid memory leak ( #5220 )
...
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-03-03 23:36:02 -08:00
Chris O'Haver
66dc74caeb
plugin/etcd+kubernetes: Persist truncated state to client if CNAME lookup 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-22 09:38:57 -05:00
Chris O'Haver
74d4e9bb1b
kubernetes: log server start delay and api connection failures ( #5044 )
...
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-02-22 09:21:45 -05:00
Yong Tang
b1d5d7c572
Replace deprecated NewDeltaFIFO with NewDeltaFIFOWithOptions ( #5200 )
...
Replace deprecated `cache.NewDeltaFIFO`
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2022-02-22 09:20:29 -05:00
coredns[bot]
b40f2a0a44
auto go fmt
...
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
2022-02-14 10:32:27 +00:00
Chris O'Haver
4693f40990
Revert "add wildcard warnings ( #5030 )" ( #5167 )
...
This reverts commit 744468ea78
.
2022-02-09 11:25:15 -08:00
Chris O'Haver
4349b6fa63
dont panic on empty SRV segments ( #5173 )
...
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-02-09 13:52:53 -05:00
Chris O'Haver
abaf938623
remove wildcard query functionality ( #5019 )
...
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-02-09 09:25:10 -05:00
Chris O'Haver
ca476cec30
add wildcard query deprection notice to kubernetes readme ( #5045 )
...
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-12-17 16:57:32 -05:00
Chris O'Haver
744468ea78
add wildcard warnings ( #5030 )
...
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-12-09 08:24:48 -08:00
xuweiwei
b7b62b38ef
plugin/kubernetes: clean code ( #5017 )
...
Signed-off-by: xuweiwei <xuweiwei_yewu@cmss.chinamobile.com>
2021-12-01 09:26:18 -05:00
xuweiwei
5f900b86f5
cleanup some code ( #4989 )
...
Automatically submitted.
2021-11-19 16:15:58 +00:00
Chris O'Haver
5534625c75
plugin/kubernetes: Don't use pod names longer than 63 characters as dns labels ( #4908 )
...
Automatically submitted.
2021-10-06 15:59:37 +00:00
Chris O'Haver
e742b5ee34
plugin/kubernetes: fix reload panic ( #4881 )
...
* 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-09-22 16:28:51 +02:00
Chris O'Haver
88d94dc148
plugin/kubernetes: Only answer transfer requests for authoritative zones ( #4802 )
...
* check for zone match
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-08-13 11:02:00 -04:00
Manuel Rüger
4758070425
plugins/kubernetes: Switch to klog/v2 ( #4778 )
...
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2021-08-03 20:22:36 -07:00
coredns[bot]
4c41c49a93
auto go fmt
...
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
2021-08-02 10:29:33 +00:00
Mat Lowery
9d5b8cd13d
kubernetes: Improve namespace usage ( #4767 )
...
* 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-29 23:27:25 -04:00
Jeongwook Park
faa10f61af
Fix typo on kubernetes plugin ( #4753 )
...
- modifed -> modified
Signed-off-by: jeongwook-park <jeongwook.park@navercorp.com>
2021-07-14 14:29:41 -04:00
mfleader
38e409b4b6
Correct newdnsController's documented function signature ( #4717 )
...
Signed-off-by: mleader <mleader@redhat.com>
2021-06-24 15:18:08 -04:00
Chris O'Haver
a1aafbf405
Add NS+hosts records to xfr response. Add coredns service to test data. ( #4696 )
...
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-06-14 16:39:40 +02:00