Age | Commit message (Collapse) | Author | Files | Lines |
|
Add log statement pointing to replacement.
remove cidr from README and use replacement syntax.
Fixes #851
|
|
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.
|
|
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.
|
|
* kubernetes/reverse: remove deadcode
* deadcode in errors and kubernetes removed
* unnecessary conversion
* constants
* proxy: time.Since()
* simplications
* static check
* Disable test/external_test
|
|
dedent code, use shorter names.
use strings.EqualFold instead ToLower to avoid create garbage.
|
|
|
|
Clean up some golint related issues.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
|
|
Did a `misspell . | grep -v ^vendor` and fixed
several typos.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
|
|
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).
|
|
* 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
|
|
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.
|
|
* Added Pod testing
* Cleanup
* fixed formatting
|
|
* mw/kubernete: small cleanup
Small cleanup, avoid pointer to []msg.Services and just returns the
msg.Service.
* Actually compile
* testss
|
|
|
|
Cleanup various READMEs to use the same naming scheme for certs, keys,
and cacerts.
Fixes #762
|
|
* fix aaaa response
* unit tests
|
|
* 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
|
|
|
|
|
|
* 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
|
|
* 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.
|
|
|
|
|
|
* 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.
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
This commit fixes some golint issues in `core/dnsserver`
and `middleware/kubernetes`.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
|
|
* 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
|
|
|
|
|
|
* 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
|
|
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*.
|
|
Set of small cleanups.
|
|
|
|
|
|
* linter fixes
* Golint and format code
* fmt
|
|
(#547)
This fix fixes import path from
`github.com/miekg/coredns`
->
`github.com/coredns/coredns`
|
|
|
|
* fix k8s next middleware chaining
* add chain to integration tests
* if nit
|
|
* check for no namespace filter
* integration test
|
|
* set zone for cidr based PTRs
* set zone to request
|
|
|
|
* 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
|