This project is mirrored from https://github.com/coredns/coredns.git.
The repository failed to update .
Repository mirroring has been paused due to too many failed attempts, and can be resumed by a project maintainer.
Last successful update .
Repository mirroring has been paused due to too many failed attempts, and can be resumed by a project maintainer.
Last successful update .
- 04 Oct, 2016 1 commit
-
-
Miek Gieben authored
Make the methods that handle Metrics all use pointer receivers to fix sync.Once not being initialized. Finish the setup_test to test for failures. And make the check for the address more strict and return an error when it does not have a port number. Add a toplevel test that starts a CoreDNS server with metrics enabled so we catch these errors in the future.
-
- 03 Oct, 2016 3 commits
-
-
Yong Tang authored
This fix fixes a typo in middle/cache/README.md: `1 hours` => `1 hour` Signed-off-by:Yong Tang <yong.tang.github@outlook.com>
-
Miek Gieben authored
Make it return an error when you use `transfer from` when you're not a secondary. Add tests as well. Fixes #310
-
Miek Gieben authored
Fix the unknown flags handling when receiving such message. We should zero out all of the Z bits in the OPT record before returning. Current behavior: dig +norec +noad +ednsflags=0x80 soa miek.nl @deb.atoom.net ... ; EDNS: version: 0, flags:; MBZ: 0080 , udp: 4096 New: dig +norec +noad +ednsflags=0x80 soa miek.nl @localhost -p 2053 ... ; EDNS: version: 0, flags:; udp: 4096 Take care no to overwrite the Do bit. We still accept *all* EDNS option; I do not consider that a bug in itself. Fixes #306
-
- 02 Oct, 2016 2 commits
-
-
Miek Gieben authored
* Add a setup test for middleware/file This fix adds a setup test for middleware/file so that there is a basic coverage for the Corefile processing of middleware/file. This fix is related to 308 (Will look into it). Signed-off-by:Yong Tang <yong.tang.github@outlook.com> * middleware/file: use helper function for test Fixup setup_test.go and use the test.TempFile function to make things somewhat shorter. Use clean up the use of testing.T in TempFile - it is not used.
-
Miek Gieben authored
Make the cache memory bounded, by using a LRU cache. Also split the cache in a positive and negative one - each with its own controls. Extend the cache stanza to allow for this: cache { positive limit [ttl] negative limit [ttl] } is now possible. This also add a cache_test.go in the toplevel test/ directory that exercises the caching path. Fixes #260
-
- 27 Sep, 2016 1 commit
-
-
Yong Tang authored
This fix updates .travis.yml and Makefile for several places: - Remove unneeded `docker pull gcr.io/google_containers/hyperkube-amd64:v1.2.4` (only v1.3.7 was used) - Use docker to deploy etcd (insteadof downloading etcd binary). - Merge `make testk8s` and `make testk8s-setup` (no need to have multiple targets for a couple of tests) - Set version of etcd and kubernetes in .travis.yml (so that it is easy to update new version in the future) Signed-off-by:Yong Tang <yong.tang.github@outlook.com>
-
- 26 Sep, 2016 5 commits
-
-
Miek Gieben authored
Add tests for parsing etcd Corefile stanza. Discover a bug in the code, fix that as well.
-
Yong Tang authored
This fix moves the content of `.coverage.sh` to the Makefile and creates a target of `make coverage`. This cleans up as there is really no need to have a redundant script for simple coverage test. Signed-off-by:Yong Tang <yong.tang.github@outlook.com>
-
Yong Tang authored
This fix cleans up `.travis.yml` and use `go_import_path` to replace the customerized script for go import path (in case the build is from a forked repo). Signed-off-by:Yong Tang <yong.tang.github@outlook.com>
-
Miek Gieben authored
Avoid clashing with other server types.
-
Miek Gieben authored
This clashes to Caddy, which also has its own quiet flag. Move stuff around a bit, also to prevent cyclic imports.
-
- 25 Sep, 2016 3 commits
-
-
Miek Gieben authored
* Doc: add package docs Add short package level docs to make godoc looks nicer. Add some badges to the README. * correct url
-
Miek Gieben authored
Fix the crash and add `setup_test.go` to catch this in the future. Fixes #292
-
Miek Gieben authored
Fixes #293
-
- 24 Sep, 2016 3 commits
-
-
Silas Baronda authored
-
Chris O'Haver authored
* Added TLS to k8s client Added options for TLS kubernetes client connection. * Fix k8s TLS config option parsing Brings config option parsing for kubernetes TLS in line with recent changes. * Put TLS config on one line Put kubernetes tls config on one line to match style established in etcd tls config. * Add tls option to README
-
Yong Tang authored
While looking into the proxy middleware it appears that there are several golint messages: ``` ubuntu@ubuntu:~/coredns$ golint middleware/proxy/ middleware/proxy/lookup.go:66:1: exported method Proxy.Forward should have comment or be unexported middleware/proxy/proxy.go:24:6: exported type Client should have comment or be unexported middleware/proxy/proxy.go:107:1: exported function Clients should have comment or be unexported middleware/proxy/reverseproxy.go:10:6: exported type ReverseProxy should have comment or be unexported middleware/proxy/reverseproxy.go:16:1: exported method ReverseProxy.ServeDNS should have comment or be unexported middleware/proxy/upstream.go:42:6: exported type Options should have comment or be unexported ``` This fix addressed the above golint messages. Signed-off-by:Yong Tang <yong.tang.github@outlook.com>
-
- 23 Sep, 2016 7 commits
-
-
Manuel Alejandro de Brito Fontes authored
Lint k8s middleware
-
Manuel de Brito Fontes authored
-
Manuel Alejandro de Brito Fontes authored
Refactoring of k8s helpers
-
Manuel de Brito Fontes authored
-
Manuel de Brito Fontes authored
-
Manuel de Brito Fontes authored
-
Miek Gieben authored
* Fix linter errors * More linting fixes * More docs and making members private that dont need to be public * Fix linter errors * More linting fixes * More docs and making members private that dont need to be public * More lint fixes This leaves: ~~~ middleware/kubernetes/nametemplate/nametemplate.go:64:6: exported type NameTemplate should have comment or be unexported middleware/kubernetes/nametemplate/nametemplate.go:71:1: exported method NameTemplate.SetTemplate should have comment or be unexported middleware/kubernetes/nametemplate/nametemplate.go:108:1: exported method NameTemplate.GetZoneFromSegmentArray should have comment or be unexported middleware/kubernetes/nametemplate/nametemplate.go:116:1: exported method NameTemplate.GetNamespaceFromSegmentArray should have comment or be unexported middleware/kubernetes/nametemplate/nametemplate.go:120:1: exported method NameTemplate.GetServiceFromSegmentArray should have comment or be unexported middleware/kubernetes/nametemplate/nametemplate.go:124:1: exported method NameTemplate.GetTypeFromSegmentArray should have comment or be unexported middleware/kubernetes/nametemplate/nametemplate.go:135:1: exported method NameTemplate.GetSymbolFromSegmentArray should have comment or be unexported middleware/kubernetes/nametemplate/nametemplate.go:167:1: exported method NameTemplate.IsValid should have comment or be unexported middleware/kubernetes/nametemplate/nametemplate.go:182:6: exported type NameValues should have comment or be unexported middleware/kubernetes/util/util.go:1:1: package comment should be of the form "Package util ..." middleware/kubernetes/util/util.go:27:2: exported const WildcardStar should have comment (or a comment on this block) or be unexported middleware/proxy/lookup.go:66:1: exported method Proxy.Forward should have comment or be unexported middleware/proxy/proxy.go:24:6: exported type Client should have comment or be unexported middleware/proxy/proxy.go:107:1: exported function Clients should have comment or be unexported middleware/proxy/reverseproxy.go:10:6: exported type ReverseProxy should have comment or be unexported middleware/proxy/reverseproxy.go:16:1: exported method ReverseProxy.ServeDNS should have comment or be unexported middleware/proxy/upstream.go:42:6: exported type Options should have comment or be unexported ~~~ I plan on reworking the proxy anyway, so I'll leave that be.
-
- 22 Sep, 2016 5 commits
-
-
Manuel Alejandro de Brito Fontes authored
Revert k8s changes
-
Manuel de Brito Fontes authored
-
Miek Gieben authored
-
Manuel Alejandro de Brito Fontes authored
-
Miek Gieben authored
Cleanup the errors and removed deadcode along the way. The leaves some error laying around, mostly about commenting exported identifier. We should look hard if those really are needed.
-
- 20 Sep, 2016 1 commit
-
-
Zhipeng JIANG authored
-
- 19 Sep, 2016 3 commits
-
-
Miek Gieben authored
For some reasons there was a dnsserver/middleware.go that defined the middleware handlers. This code was a repeat from middleware/middleware.go. Removed dnsserver/middleware.go and replaced all uses of dnsserver.Middleware with middleware.Middleware. Added dnsserver/address_test.go to test the zone normalization (and to improve the test coverage). The deleted file will also improve the test coverage :)
-
Miek Gieben authored
This is "infrastructure/meta" code, don't need to see it.
-
Yong Tang authored
This fix adds the codecov.io process with travis-ci integration, so that code coverage could be processed and displayed with codecov.io. Since go cannot use test profile flag with multiple packages, we have to iterate through packages with `coverage.sh`. Some consolidation could be done by combining them into one `make test`. Will do some consolidation in a follow up PR. Signed-off-by:Yong Tang <yong.tang.github@outlook.com>
-
- 18 Sep, 2016 6 commits
-
-
Shawn Smith authored
-
Miek Gieben authored
Do linux last, so my go install isn't messed up. Use gh-release from PATH.
-
Miek Gieben authored
Document the release process and encode it in Makefile.release. We use gh-release to minimize the amount of effort required.
-
Miek Gieben authored
Some small additions to the documentation.
-
Miek Gieben authored
-
Miek Gieben authored
When no Corefile is given, default to loading the whoami middleware on the default port (2053). Also add back the -port flag that allows you to override the default port. Further cleanup the startup messages and use caddy's OnStartupComplete() to blurp out which zones and ports we have. These can be suppressed with the -quiet flag. Normal startup: miek.nl.:1053 miek.nl2.:1053 example.org.:1054 2016/09/17 20:41:19 [INFO] CoreDNS-001 starting CoreDNS-001 starting with the -quiet flag: 2016/09/17 20:41:34 [INFO] CoreDNS-001 starting
-