aboutsummaryrefslogtreecommitdiff
path: root/middleware/kubernetes (follow)
AgeCommit message (Collapse)AuthorFilesLines
2017-08-08mw/kubernetes: warn about deprecating cidr (#858)Gravatar Miek Gieben 2-70/+66
Add log statement pointing to replacement. remove cidr from README and use replacement syntax. Fixes #851
2017-08-07mw/kubernetes: autopath refactors (#850)Gravatar Miek Gieben 7-210/+226
Factor out as much of autopath into a subpackage as possible right now. apw.Sent is not needed, we should see this from the rcode returned by the middleware. See #852 on why this was needed. Disable the tests for now as to not break the main build.
2017-08-07middleware/kubernetes: autopath in sub package (#848)Gravatar Miek Gieben 7-95/+103
Put the autopath stuff in a separate sub package. Tests are still included in the main kubernetes directory. Next steps (after this is merged), is pulling the autopath handling into the subpackage and fixing the tests.
2017-08-06all: gometalinter (#843)Gravatar Miek Gieben 6-79/+52
* kubernetes/reverse: remove deadcode * deadcode in errors and kubernetes removed * unnecessary conversion * constants * proxy: time.Since() * simplications * static check * Disable test/external_test
2017-08-05middleware/kubernetes: fixes (#837)Gravatar Miek Gieben 2-48/+48
dedent code, use shorter names. use strings.EqualFold instead ToLower to avoid create garbage.
2017-08-04not used anymore (#832)Gravatar Miek Gieben 1-10/+0
2017-08-04golint cleanup (#828)Gravatar Yong Tang 2-1/+3
Clean up some golint related issues. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-08-04Misspell correction (#826)Gravatar Yong Tang 2-2/+2
Did a `misspell . | grep -v ^vendor` and fixed several typos. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-08-04middleware/kubernetes: define consts (#824)Gravatar Miek Gieben 3-17/+22
Define two consts Pod and Svc, makes it stand out a little more when used in switches in case. We have opted for a new type, but then you need to convert them all the time with string(Foo).
2017-08-04Kubernetes srv (#823)Gravatar Markus Sommer 2-22/+29
* Treat absence of port/service in SRV as wildcard Normally, a SRV-request should have the form _<service>._<port>.<name>.<zone>. The k8s peer-finder which is used for bootstrapping by some applications will however query for SRV at <name>.<zone>. To compensate for this behaviour, treat the absence of _<service> and _<port> as wildcards. * Modified tests with new SRV behaviour Added a testcase for a SRV request without port & service Removed now valid query from invalidSRVQueries * Forgot to run gofmt on test/kubernetes_test.go
2017-08-03middleware/kubernetes: cleanup (#818)Gravatar Miek Gieben 8-53/+25
Drop the interfaceAddr interfaces and just use a function. Cleanup all fallout from that. Remove the use of global variables and cleanup the tests a bit.
2017-08-03Middleware/k8s: Add unit tests for Pods (#815)Gravatar Sandeep Rajan 1-2/+76
* Added Pod testing * Cleanup * fixed formatting
2017-08-03mw/kubernete: small cleanup (#810)Gravatar Miek Gieben 4-45/+36
* mw/kubernete: small cleanup Small cleanup, avoid pointer to []msg.Services and just returns the msg.Service. * Actually compile * testss
2017-08-02Add TXT coverage (#807)Gravatar Sandeep Rajan 1-0/+7
2017-07-29README.md: clean TLS cert language (#797)Gravatar Miek Gieben 1-2/+2
Cleanup various READMEs to use the same naming scheme for certs, keys, and cacerts. Fixes #762
2017-07-20middleware/kubernetes: fix aaaa response (#780)Gravatar Chris O'Haver 3-8/+25
* fix aaaa response * unit tests
2017-07-11k8s/autopath: Add CNAMES (#771)Gravatar Chris O'Haver 6-27/+585
* Add unit tests & cnames * more progress * fix * next mw dependent unit tests * add tests for OnNXDOMAIN * Add AAAA and ndots unit tests; fix request.NewWithQuestion * Correct default value in README * add CNAMEs to readme * review * fix autopath examples * fix and test CNAME response order
2017-07-07remove unused code (#774)Gravatar Chris O'Haver 1-54/+0
2017-07-01middleware/backend: add Records() to ServiceBackend interface (#770)Gravatar Mia Boulay 2-5/+10
2017-07-01middleware/kubernetes: Rewrite/expand readme (#764)Gravatar Chris O'Haver 1-182/+242
* rewrite readme * remove breaks * missed a break * nits * show options as optional * add note to pods insecure * add minimal configuration example. * add a note about replacing kube-dns in the summary * move deployment section into summary. * Update README.md * replace options sections with bullets and indent all sub sections to match bullet indentation. not sure if this will render in github properly - it doesn't in the in-line editor preview. * fix indentation Contrary to various on-line guides and editors, github now requires 2 spaces to indent paragraphs with bulleted sections above (not just 1). * Update README.md * Update README.md * Update README.md * fix label syntax It's just a single EXPRESSION. The EXPRESSION itself has its own kubernetes label expression format. * Update README.md * Update README.md
2017-06-28middleware/kubernetes: Server side path lookups (#750)Gravatar Chris O'Haver 6-51/+407
* initial commit * add config options * add readme * rewording * revert unlreated change * normalize host domain path * add ndots opt, allow > 1 host domains, pull host domains from resolv.conf * implementing review feedback * update readme * use dns lib, config format, defaults * Correct autopath example.
2017-06-23dont load default vals from env (#751)Gravatar Chris O'Haver 1-3/+1
2017-06-16compress empty implementations to single line (#740)Gravatar Chris O'Haver 2-22/+7
2017-06-14cleanup: go vet and golint run (#736)Gravatar Miek Gieben 6-31/+30
* cleanup: go vet and golint run Various cleanups trickered by go vet and golint. * Fix tests and lowercase all errors Lowercase all errors, some tests in kubernetes use errors from kubernetes which do start with a capital letter.
2017-06-14handle clusterIP endpoint queries (#730)Gravatar Chris O'Haver 2-33/+41
2017-06-14middleware/kubernetes: Implement current federation beta (#723)Gravatar Chris O'Haver 9-17/+420
* federation initial commit * UTs/bugfixes * federation bits * polish, cover UT gaps * add TODO * go fmt & todo note * remove unrelated change * pr changes * start node watcher * get real node name * remove unused case
2017-06-09remove unused funcs (#724)Gravatar Chris O'Haver 1-24/+0
2017-06-03add more coverage (#702)Gravatar Chris O'Haver 1-1/+97
2017-06-02unexpose items per lint (#701)Gravatar Chris O'Haver 2-8/+8
2017-06-02unexpose InterfaceAddrser (#693)Gravatar Chris O'Haver 4-10/+10
2017-06-01fix typo (#692)Gravatar Chris O'Haver 1-1/+1
2017-05-30Add k8s external service CNAMEs (#677)Gravatar Chris O'Haver 5-4/+216
* Add external service cnames * remove cruft * update CI k8s version * change CI k8s version * min k8s ver for ext services * trying k8s 1.5 * k8s 1.5 requires ports spec * remove kruft * update dns schema version
2017-05-25Check that all the controllers are synced agains api server (#671)Gravatar Manuel Alejandro de Brito Fontes 1-1/+9
2017-05-25Some golint cleanup (#674)Gravatar Yong Tang 1-3/+2
This commit fixes some golint issues in `core/dnsserver` and `middleware/kubernetes`. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-05-22Handle K8s middleware NS record (#662)Gravatar Chris O'Haver 8-98/+531
* commit for testing in cluster * commit for testing in cluster * refactor and add ns.dns record * Release 007 * reduce heap allocations * gofmt * revert accidental Makefile commits * restore prior rcode for disabled pod mode * revert Makefile deltas * add unit tests * more unit tests * make isRequestInReverseRange easier to test * more unit tests * addressing review feedback * commit setup.go
2017-04-30Remove annoying INFO from k8s middleware (#655)Gravatar John Belamaric 1-3/+1
2017-04-19Update the various Kubernetes middleware README files. (#630)Gravatar John Belamaric 3-174/+21
2017-04-19Add fallthrough support for Kubernetes (#626)Gravatar John Belamaric 4-0/+60
* Add fallthrough support for Kubernetes This enables registering other services in the same zone as Kubernetes services. This also re-orders the middleware chain so that Kubernetes comes before other types, in order to make this work out-of-the-box. * Remove extra line
2017-03-06Don't error log NXDOMAIN (#572)Gravatar Miek Gieben 1-1/+2
In both etcd and k8s don't error log NXDOMAIN as this log spams the logs for no good reason. Fixes #568 Better long term solution is log rate limiting for both *log* and *error*.
2017-03-06middleware/kubernetes: doc cleanup (#571)Gravatar Miek Gieben 4-29/+22
Set of small cleanups.
2017-02-22Remove deployment helpers that are now in coredns/deployment/kubernetes (#554)Gravatar John Belamaric 3-122/+3
2017-02-22Fix test (#549)Gravatar Miek Gieben 1-1/+1
2017-02-22Golint (#548)Gravatar Miek Gieben 3-4/+4
* linter fixes * Golint and format code * fmt
2017-02-22Fix import path `github.com/miekg/coredns` -> `github.com/coredns/coredns` ↵Gravatar Yong Tang 4-14/+14
(#547) This fix fixes import path from `github.com/miekg/coredns` -> `github.com/coredns/coredns`
2017-02-09Update to point to coredns/coredns image (#517)Gravatar John Belamaric 1-1/+1
2017-02-08Fix k8s chaining (#510)Gravatar Chris O'Haver 1-9/+10
* fix k8s next middleware chaining * add chain to integration tests * if nit
2017-02-07Fix k8s PTR when all namespaces exposed (#507)Gravatar Chris O'Haver 1-2/+2
* check for no namespace filter * integration test
2017-02-07Fix no PTR records response for cidr ranges (#506)Gravatar Chris O'Haver 1-5/+9
* set zone for cidr based PTRs * set zone to request
2017-02-07 * Add script to generate manifest (#504)Gravatar John Belamaric 3-0/+122
2017-02-02k8s middleware add tests and docs update (#501)Gravatar Chris O'Haver 4-325/+431
* add cidrs opt * remove state data from middleware object * update k8s docs * Add integration tests * add unit tests for cidr and pods config * more README fixes, separate dev notes * adjust section headers * fix typo