Commit graph

8 commits

Author SHA1 Message Date
Miek Gieben
9c62ddaa01 Small golint cleanup (#977)
* Small golint cleanup

Mostly docs in autopath.

* duh
2017-08-24 08:56:48 +01:00
Miek Gieben
87eb0d39a4 Move nonwriter to mw/pkg/nonwriter (#948)
Make it its own package as shared between autopath and federation.

Fixes #933
2017-08-19 17:28:42 +01:00
Miek Gieben
f96cf27193 mw/federation: add federation back as separate mw for k8s (#929)
* 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
2017-08-18 14:45:20 +01:00
Miek Gieben
cc4e4a0626 mw/autopath: integration test with erratic (#930)
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.
2017-08-18 12:57:23 +01:00
Yong Tang
a6d2d7b5f7 go lint cleanup (#904)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-08-11 19:48:11 -07:00
Miek Gieben
4d0dae8deb middleware/autopath: some fixes (#883)
* middleware/autopath: some fixes

This fix a small issue in autopath, but unearthed a bigger one.
See #881.

* Fix test
2017-08-10 19:27:54 +01:00
Miek Gieben
6cc3f47d46 middleware/authpath: Fix return from k8s mw (#871)
* middleware/authpath: Fix return from k8s mw

Return the correct search path from the kubernetes' AutoPath function.
Based on preliminary discussion in #870

* PodWithIP can be private

Fix and add docs to functions.

* CR: remove the error from AutoPathFunc
2017-08-10 19:26:31 +01:00
Miek Gieben
b46b9880bd WIP: autopath as middleware (#859)
autopath as middleware
2017-08-09 03:13:38 -07:00