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 .
  1. 23 Aug, 2017 1 commit
    • Miek Gieben's avatar
      mw/kubernetes: Rewrite parseRequest and Readability improvements (#939) · 6a4e69eb
      Miek Gieben authored
      * mw/kubernetes: rewrite parseRequest
      
      Stop looking at the qtype in parseRequest and make k.Namespace a map.
      Fallout from this is that pkg/strings as it is not used anymore. Also
      add a few helper functions to make unexposed namespaces easier to see in
      the code.
      
      Add wildcard tests to the middleware tests.
      
      * Fix tests
      
      Add a whole bunch of comments to document what we are trying to do.
      
      * This is now answered
      
      * up coverage
      
      * duh
      
      * Update testcase
      
      * Make it nodata
      6a4e69eb
  2. 22 Aug, 2017 3 commits
  3. 21 Aug, 2017 2 commits
  4. 20 Aug, 2017 8 commits
  5. 19 Aug, 2017 3 commits
  6. 18 Aug, 2017 3 commits
    • Miek Gieben's avatar
      mw/federation: add federation back as separate mw for k8s (#929) · f96cf271
      Miek Gieben authored
      * mw/federaration
      
      This PR add the federation back as a middleware to keep it more
      contained from the main kubernetes code.
      
      It also makes parseRequest less import and pushes this functionlity down
      in the k.Entries. This minimizes (or tries to) the importance for the
      qtype in the query. In the end the qtype checking should only happen
      in ServeDNS - but for k8s this might proof difficult.
      
      Numerous other cleanup in code and kubernetes tests.
      
      * up test coverage
      f96cf271
    • Miek Gieben's avatar
      mw/autopath: integration test with erratic (#930) · cc4e4a06
      Miek Gieben authored
      Add integration test with erratic. For this erratic now also returns an
      autopath searchpath. This tests the whole chain; i.e registring a
      searchfunction and calling that from autopath.
      
      This tests does a autopathing domain and a non-autopathing one.
      cc4e4a06
    • Miek Gieben's avatar
      mw/kubernetes: add reverse test case (#932) · 5a187512
      Miek Gieben authored
      Add a non-arpa testcase to the reverse test.
      5a187512
  7. 16 Aug, 2017 4 commits
    • Miek Gieben's avatar
      tests: add SortAndCheck helper (#926) · 7f46df6d
      Miek Gieben authored
      There was quite some code duplication in a lot of tests to check if
      an answer was considered Ok. Created a test.SortAndCheck helper function
      that takes care of this.
      7f46df6d
    • John Belamaric's avatar
      Remove use of hostnames in upstreams (#927) · 65b56248
      John Belamaric authored
      Only IP:Port or file name is allowed.
      65b56248
    • Miek Gieben's avatar
      mw/kubernetes: add reverse_test.go (#922) · 06644c28
      Miek Gieben authored
      This PR adds a reverse tests that copies some of it from the main
      integration test. This aids in local testing because you don't need
      a full k8s setup running.
      
      It does the most minimal testing, a successful return and a nodata
      response that includes the SOA for in-addr.arpa.
      06644c28
    • Miek Gieben's avatar
      Reverse in k8s (#923) · 479c8bba
      Miek Gieben authored
      * mw/kubernetes: reverse zone in ZONE stanza not parsed
      
      Properly parse the reverse zone syntax in the ZONES stanza as promised
      in the README.
      
      As short test case to test.
      
      * add test
      479c8bba
  8. 15 Aug, 2017 1 commit
  9. 14 Aug, 2017 3 commits
    • Miek Gieben's avatar
      mw/kubernetes: remove federation and cidr (#916) · 00f5c779
      Miek Gieben authored
      * mw/kubernetes: remove federation and cidr
      
      Remove both as we have a corefile syntax change that handles cidr and
      remove federation because that is going to be its own middleware.
      
      * backwards incompat changes
      
      This PR:
      * removes cidr from kubernetes (core Corefile feature now)
      * removes federation from kubernets (comes back as new middleware)
      * [remove autopath - which was already gone, so that already was
        backwards incompat]
      * adds `fallthrough` to the *etcd* middleware and makes you enable it.
      * Fail on unknown properties
      * documentation
      * Disable TestHealthCheck as it uses realtime and fails
      00f5c779
    • Miek Gieben's avatar
      cidr everywhere: check all middleware (#915) · 818d2b10
      Miek Gieben authored
      * cidr everywhere: check all middleware
      
      Add tests for cidr in only that middleware that already tests for this.
      Check the other ones manually (and put reverse in the tests cases
      anyway).
      
      Make etcd setup_test run without +build etcd tag - it is not needed
      for this test - move rest of the code to lookup_test.go.
      
      Cleanup proxy test a bit and remove TempDir as there is test.TempFile
      that does the same thing.
      
      Fixes #909
      
      * coredns package
      
      * Fix test compile
      818d2b10
    • Yong Tang's avatar
      Consolidation of Makefile and Makefile.release (#912) · 0c02708d
      Yong Tang authored
      * Consolidation of Makefile and Makefile.release
      
      Several changes:
      1. All go specific target like `go generate`, etc. has
      been moved to Makefile. Now Makefile.release does not
      repeat go build, etc. related rules.
      2. In Makefile.release, the binary build is done through
      `docker run` and with a fixed specific go version (currently 1.8.3).
      This will help making sure build process could be reproduced
      on any dev platform, with no dependency to the golang version
      installed on the platform.
      3. Platform related flags (e.g., "GOOS=darwin") are passed through
      Makefile (not Makefile.release).
      Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
      
      * Update to only use `make` without running inside `docker run`
      Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
      0c02708d
  10. 13 Aug, 2017 2 commits
  11. 12 Aug, 2017 3 commits
  12. 11 Aug, 2017 7 commits
    • Chris O'Haver's avatar
      Add Autopath section to k8s readme (#898) · ebcbe66b
      Chris O'Haver authored
      The primary driver for autopath was kubernetes.  It addresses a specific need in kubernetes, so it deserves a mention in the K8s README, with an example.
      ebcbe66b
    • Miek Gieben's avatar
      mw/k8s: cleanups (#893) · 241e3dbc
      Miek Gieben authored
      * mw/k8s: cleanups
      
      Remove some constants that aren't used any more. Make PrimaryZone
      private because it doesn't need to be exported. Remove test that
      did not cover corner case as expressed in setup.go
      
      * cleanup this as well
      241e3dbc
    • Chris O'Haver's avatar
      README Typos (#897) · 028a6db4
      Chris O'Haver authored
      Found a few typos, spelling, and grammar errors.
      028a6db4
    • Chris O'Haver's avatar
      Fix some typos in README (#896) · 5468a6e1
      Chris O'Haver authored
      remove extraneous "]"s from the syntax def...
      5468a6e1
    • Miek Gieben's avatar
      Use server block defaults (#894) · 28b8a092
      Miek Gieben authored
      * mw/k8s: Test Federation parsing
      
      The test case was there, but there was nothing testing it?!?!?!
      Add it and split it out of the main setup test which is too long
      already.
      
      Also allow kubernetes a not have a ZONE, just default to the serverblock
      in that case. Remove test that was blocking that.
      
      Cleanup up the readme more.
      
      * rewrite README
      28b8a092
    • Miek Gieben's avatar
      mw/k8s: use request.Request in parseRequest · 6e91408f
      Miek Gieben authored
      6e91408f
    • Miek Gieben's avatar
      mw/k8s: remove k.defaultNsMsg() (#892) · b5d2a82e
      Miek Gieben authored
      Remove k.defaultNSMsg() it is just one line of getting the service and
      it is another method that needlessly uses recordRequest.
      b5d2a82e