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. 26 Aug, 2017 1 commit
  2. 25 Aug, 2017 4 commits
    • Miek Gieben's avatar
      core: block CH queries earlier (#973) · 55dafe6f
      Miek Gieben authored
      block chaos queries, unless the chaos or proxy middleware is loaded. We
      respond with REFUSED.
      
      This removes the need for each middleware to do this class != ClassINET
      if-then.
      
      Also make config.Registry non-public.
      55dafe6f
    • Miek Gieben's avatar
      Remove createTestServer (#981) · 932639ac
      Miek Gieben authored
      * Remove createTestServer
      
      * more cleanups
      
      * comment tweak
      
      * sort
      
      * sigh
      932639ac
    • Miek Gieben's avatar
      mw/kubernetes: split up tests cases (#971) · e06863d2
      Miek Gieben authored
      Split up the handler_test in four files that all tests their specific
      bits. Removed the CNAME sort as there was only 1 answer with a CNAME
      and that was a single one.
      
      See #942, this fixes (a bit) the tests in middleware.
      e06863d2
    • Thong Huynh's avatar
      Add set EDNS0 with variable substitution (#937) · 3f05f7e6
      Thong Huynh authored
      * Add set EDNS0 with variable substitution
      
      * Change variable from $ to {}. Un-export constants
      
      * Update README
      
      * Change getRuleData() to ruleData(); Change to use string match from regexp
      3f05f7e6
  3. 24 Aug, 2017 4 commits
  4. 23 Aug, 2017 6 commits
    • Miek Gieben's avatar
      mw/kubernetes: revert if-else for health (#970) · 10b72210
      Miek Gieben authored
      Do the return early and dedent the rest of the function.
      10b72210
    • Miek Gieben's avatar
      Parse fix (#974) · 4b105c76
      Miek Gieben authored
      * mw/kubernetes: add apex test
      
      This adds small test case for apex queries: SOA and HINFO.
      
      Fix (obvious) parse bug in parse.go.
      
      * Test Ns request also here
      4b105c76
    • Miek Gieben's avatar
      mw/kubernetes: remove kPod and kServices (#969) · 61fc672e
      Miek Gieben authored
      Based up on: #939, but redone in a new PR with some cherry-picked
      commits:
      aacb91ef0b927683b21d6ee39dbddbd001334854
      5dc34247b7d0136d9fe035f6b10d6b3e14ee7f2c
      
      This removes kPod and Kservice and creates []msg.Service from k.findPods
      and k.findServices.
      
      Updated few tests which I *think* are correct; they look correct to me.
      61fc672e
    • Miek Gieben's avatar
      mw/kubernetes: don't export Pod-mode constants. (#959) · 7f5086e9
      Miek Gieben authored
      * mw/kubernetes: don't export Pod-mode constants.
      
      * merged
      7f5086e9
    • Miek Gieben's avatar
      mw/kubernetes: resync to opts (#957) · 12db6618
      Miek Gieben authored
      * mw/kubernetes: resync to opts
      
      Only used to initialize the cache that already has a dnsControlopts, so
      remove it from the main kubernetes struct.
      
      * Fix test
      
      * mw/kubernetes: LabelSelector to options as well
      
      Labels select is also only used for init. Don't carry it in the main
      kubernetes struct.
      
      * remove this test: can't happen
      
      Caddyfile parser will only call setup when it sees kubernetes.
      
      * erge gone wrong
      12db6618
    • 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
  5. 22 Aug, 2017 3 commits
  6. 21 Aug, 2017 2 commits
  7. 20 Aug, 2017 8 commits
  8. 19 Aug, 2017 3 commits
  9. 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
  10. 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
  11. 15 Aug, 2017 1 commit
  12. 14 Aug, 2017 1 commit
    • 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