Commit Graph

1555 Commits

Author SHA1 Message Date
Chris O'Haver
ad43346b58 Update README.md (#2215)
Automatically submitted.
2018-10-18 21:42:53 +00:00
Chris O'Haver
db92d5ecc3 Update README.md (#2213) 2018-10-18 15:19:22 +01:00
Andrey Meshkov
4215ef0279 Add AdGuard to the list of Adopters (#2212) 2018-10-18 09:47:29 +01:00
Miek Gieben
a8c38298f7 docs: run make Makefile.doc (#2210)
No other changes.

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-10-18 09:47:03 +01:00
Miek Gieben
7343c7012f Release: bump version to 1.2.4 (#2211)
Signed-off-by: Miek Gieben <miek@miek.nl>
v1.2.4
2018-10-17 22:53:01 +01:00
Miek Gieben
a044499545 kubernetes: fix the type (#2208)
client-go is a "empty interface" waste-land and we're missing an
integration test so we didn't catch. Try this.

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-10-17 19:35:00 +01:00
Miek Gieben
d9efa96374 Make every one an approver (#2201)
Automatically submitted.
2018-10-16 19:10:00 +00:00
Chris O'Haver
4a5641c379 plugin/cache: Set min TTL default to zero (#2199)
* set min ttl default to zero

* add short TTL test case
2018-10-16 06:24:40 -07:00
Miek Gieben
8cc8afa96a Bump version to 1.2.3 (#2200)
Signed-off-by: Miek Gieben <miek@miek.nl>
v1.2.3
2018-10-16 07:36:40 +01:00
Chris O'Haver
6beeabc47c plugin/federation: Add upstream option to federation (#2177)
* add upstream

* add upstream

* debug ci

* debug ci

* set context

* update readme

* update readme

* remove empty if
2018-10-15 12:43:03 -04:00
Tom Thorogood
1847ef6bd3 plugin/file: Fix memory leak in Parse (#2194)
For zone files with more than 10,000 records, the goroutines and memory
pinned by dns.ParseZone won't be released unless the tokens chan is
drained. As Parse is called by (*Zone).Reload very frequently, this
causes memory leaks and OOM conditions.

Updates miekg/dns#786
2018-10-13 18:56:42 +01:00
Manuel Stocker
3cef6674e9 plugin/dnssec: Add root support (#2195) 2018-10-13 18:49:55 +01:00
Chris O'Haver
6d2bc0a8f2 plugin/loop: tweak loop detected msg, add troubleshooting section (#2185)
Automatically submitted.
2018-10-12 17:24:40 +00:00
Miek Gieben
6ed88fab74 Revert "use keys (#2167)" (#2188)
This reverts commit 974ed086f2.
2018-10-11 16:59:50 -04:00
Miek Gieben
c8fb66f8cc Revert "plugin/log: Change time format to be consistent with pkg/log (#2135)" (#2179)
This reverts commit ae2a0c62b7.
2018-10-10 22:32:19 +01:00
Chris O'Haver
974ed086f2 use keys (#2167) 2018-10-10 12:28:45 -07:00
Can Yucel
8432f14207 plugin/route53: add split zone support (#2160)
Automatically submitted.
2018-10-10 17:55:54 +00:00
Chris O'Haver
49c776df4c rename VERBOSE to be more generic (#2172) 2018-10-10 09:39:31 -04:00
Miek Gieben
288aef5f2b OWNERS: add aliases (#2175)
add /approve and /wai as aliases.

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-10-10 06:16:32 -07:00
Miek Gieben
281c246117 release: drop release/ (#2173)
Drop the release/ dir prefix form the uploaded files.

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-10-09 21:56:28 +01:00
Miek Gieben
830e97f800 plugin/kubernetes: allow trimming down of cached items. (#2128)
* Convert to runtime.Object to smaller structs

This adds conversion for all the objects we want to keep in the cache.
It keeps the minimum for CoreDNS to function and throws away the rest.

The conversion:
api.Endpoints -> object.Endpoints
api.Pod       -> object.Pod
api.Serivce   -> object.Service

We needed to copy some client-go stuff to insert a conversion function
into NewIndexInformers.

Some unrelated cleanups in the watch functionality as that needed to be
touched because of the above translation of objects.

Signed-off-by: Miek Gieben <miek@miek.nl>

* Reduce test line-count

Signed-off-by: Miek Gieben <miek@miek.nl>

* ....and fix test

Signed-off-by: Miek Gieben <miek@miek.nl>

* Drop use of append

Signed-off-by: Miek Gieben <miek@miek.nl>

* cosmetic changes

Signed-off-by: Miek Gieben <miek@miek.nl>

* that was a typo

Signed-off-by: Miek Gieben <miek@miek.nl>

* re-introduce append here

We can't really use len() here because we don't know the number before
hand.

Signed-off-by: Miek Gieben <miek@miek.nl>

* comment in better place

Signed-off-by: Miek Gieben <miek@miek.nl>

* Make the timestamp a bool; thats where it is used for

Signed-off-by: Miek Gieben <miek@miek.nl>

* Set incoming object to nil

Explicataliy discard the converted object; we did a deep copy it's
not needed anymore.

Signed-off-by: Miek Gieben <miek@miek.nl>

* Per Chris's comment

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-10-09 21:56:09 +01:00
Ruslan Drozhdzh
298b860a97 plugin/forward: fix healthchecker crash (#2165) 2018-10-09 20:50:30 +01:00
Chris O'Haver
cbcc38bcb5 add cgo option to Makefile (#2171) 2018-10-09 14:36:42 -04:00
Nic Cope
8a9c6174fc Add request and response context to traces (#2162)
Automatically submitted.
2018-10-05 20:13:16 +00:00
John Belamaric
1018a8267a Add Kubernetes auth providers (#2147)
* Import auth providers for K8s

* Vendor updates for K8s auth providers

* Remove Azure since it is not compiling

* Update vendor to remove Azure dependencies
2018-10-02 18:50:35 +01:00
Miek Gieben
fb971ffff3 Core: Support REUSE_PORT (#2149)
Automatically submitted.
2018-10-01 17:05:24 +00:00
Billie Cleek
e197830245 update Caddy to v0.10.13 (#2154)
Update Caddy to v0.10.13 so that environment variables may be used after
Go template (e.g. in template's answer). v0.11.0 has been released, but
v0.10.13 is a smaller set of changes and has the necessary fix.

Fixes #2153
2018-09-29 23:48:12 +01:00
Manuel Alejandro de Brito Fontes
0e8977761d Dep helper (#2151)
* Add dep task to update go dependencies

* Update go dependencies
2018-09-29 23:47:07 +01:00
Miek Gieben
8f8b81f56b Update to new version (#2150)
Signed-off-by: Miek Gieben <miek@miek.nl>
2018-09-29 18:18:16 +01:00
marqc
552aab723c Configurable zone reload interval in file plugin (#2110)
* Configurable zone reload interval in file plugin

* passing reload config from auto plugin to file plugin. removed noReload property from Zone struct. fixed tests based on short file reload hack
2018-09-29 16:50:49 +01:00
Brad Beam
a80ec6096f Benchmark for k8s services (#2107)
* Benchmark for k8s services

* Adding k8s.io/client-go/kubernetes/fake dep
2018-09-29 16:43:09 +01:00
John Belamaric
57197a49a4 Add strange dependency included in #2050 by reverting Gopkg.lock change (#2146) 2018-09-28 22:27:06 +01:00
Zach Eddy
fe5c731047 Support for kubeconfig files (#2053)
* Add support for authentication with kubeconfig files

* Update k8s plugin documentation

* Fix whitespace in README and tests

* Use clientcmd package to load kubeconfig file
2018-09-28 12:18:55 -07:00
Miek Gieben
2fc3f5e0b1 benchmark are spammy (#2144)
This is indeed (as Chris said) too spammy; disable the ping back of the
results for now - and rethink it a bit.

See #2109

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-09-27 22:04:04 +01:00
Brad Beam
1c95ede2ac Fixing benchmark code block (#2141) 2018-09-27 16:41:02 +01:00
Brad Beam
f9526742af Add code block in benchcmp output (#2140) 2018-09-27 16:05:05 +01:00
Eugen Kleiner
ae2a0c62b7 plugin/log: Change time format to be consistent with pkg/log (#2135) 2018-09-27 07:52:08 +01:00
Can Yucel
8148408301 plugins/route53: add AWS credentials file support (#2118)
Automatically submitted.
2018-09-25 22:57:16 +00:00
Yong Tang
a0396e2673 Add benchmark result to GitHub PR (#2123)
* Add benchmark result to GitHub PR

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Post benchmark to comments

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Test Stuff

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Update using jq.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Update

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2018-09-25 15:04:27 -07:00
Can Yucel
8d4378d712 plugin/route53: add fallthrough (#2132)
Automatically submitted.
2018-09-25 18:41:05 +00:00
Miek Gieben
b89006dda1 Use miekg/dns 1.0.10 (#2127)
Update to latest version.

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-09-22 12:03:39 -07:00
Miek Gieben
6f966eed41 plugin/kubernetes: use struct{} was map values (#2125)
This takes less space than a bool, the value isn't used for anything
else than "present in map" any way.

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-09-22 18:13:33 +01:00
Miek Gieben
f98db6b637 plugin/kubernetes: remove unnecessary checks (#2124)
These checks are not needed and also use a var for all obj errors.

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-09-22 08:54:06 -07:00
Miek Gieben
79eec38afd plugin/kubernetes: remove var namespace (#2122)
* WIP: trying stuff out

Signed-off-by: Miek Gieben <miek@miek.nl>

* Fixes

Signed-off-by: Miek Gieben <miek@miek.nl>

* Revert "WIP: trying stuff out"

This reverts commit a18a6ae123.
2018-09-22 16:08:21 +01:00
Miek Gieben
7b078a885f plugin/rewrite: silence these tests (#2120)
* plugin/rewrite: silence these tests

The old Unix saying: no news, is good news.

Signed-off-by: Miek Gieben <miek@miek.nl>

* Fix da tests

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-09-22 15:28:13 +01:00
Miek Gieben
7b40b14e96 Benching (#2121)
* Benchmark stuff

Signed-off-by: Miek Gieben <miek@miek.nl>

* Makefile changes

Signed-off-by: Miek Gieben <miek@miek.nl>

* Fixes

Signed-off-by: Miek Gieben <miek@miek.nl>

* fix

Signed-off-by: Miek Gieben <miek@miek.nl>

* Add benchmark test

Signed-off-by: Miek Gieben <miek@miek.nl>

* Add master branch

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-09-22 07:17:17 -07:00
Miek Gieben
9546b606cb K8s remove string ops (#2119)
* plugin/kubernetes: remove bunch a string ops

This removes a bunch of appends to where not needed, makes dnsutil.Join
take variadic args which removes the need to wrap in a new string slice.

Signed-off-by: Miek Gieben <miek@miek.nl>

* Fix calls to dnsutil.Join

Signed-off-by: Miek Gieben <miek@miek.nl>

* Revert these

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-09-22 15:12:02 +01:00
Can Yucel
b3d69f1c7f plugin/route53: fix multiple route 53 zones issue (#2117) 2018-09-22 13:26:17 +01:00
Miek Gieben
1697ab359d Add test for #2003 (#2115)
This adds a test for cleanup in c349446a

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-09-22 13:25:31 +01:00
Miek Gieben
aea2e9f62e plugin/health: close codeblock
Codeblock wasn't properly closed in the README.

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-09-19 10:36:41 -04:00